@media (max-width: 760px) {
    .site-header {
        top: 0 !important;
    }

    .customer-account-content {
        padding-top: 22px;
        padding-bottom: 44px;
    }

    .customer-account-compact-orders > a {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 14px;
    }

    .customer-account-compact-orders > a > div:last-child {
        justify-items: end;
        text-align: end;
    }

    html[dir="rtl"] .customer-account-compact-orders > a > div:last-child {
        justify-items: start;
        text-align: start;
    }
}

@media (max-width: 520px) {
    .site-footer .site-footer-v5-bottom {
        grid-template-columns: minmax(0, 1fr) 34px;
        grid-template-areas:
            "trust trust"
            "copy arrow";
        align-items: center;
        column-gap: 10px;
        row-gap: 12px;
    }

    .site-footer .site-footer-v5-trust {
        display: flex;
        grid-area: trust;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    html[dir="rtl"] .site-footer .site-footer-v5-trust {
        justify-content: space-between;
    }

    .site-footer .site-footer-v5-trust > span.site-footer-v5-chip,
    .site-footer .site-footer-v5-trust > a.site-footer-v5-chip {
        grid-area: auto !important;
        justify-self: auto !important;
    }

    .site-footer .site-footer-v5-bottom > p {
        grid-area: copy;
        justify-self: start;
    }

    .site-footer .site-footer-v5-backtop {
        grid-area: arrow;
    }
}

@media (max-width: 390px) {
    .customer-account-compact-orders > a {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .customer-account-compact-orders > a > div:last-child,
    html[dir="rtl"] .customer-account-compact-orders > a > div:last-child {
        justify-items: start;
        text-align: start;
    }

    .site-footer .site-footer-v5-trust {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .site-footer .site-footer-v5-bottom {
        grid-template-columns: auto 34px auto;
        grid-template-areas:
            "left arrow right"
            "copy copy copy";
        direction: ltr;
        column-gap: 8px;
        row-gap: 10px;
    }

    .site-footer .site-footer-v5-trust {
        display: contents;
    }

    .site-footer .site-footer-v5-trust > span.site-footer-v5-chip {
        grid-area: left !important;
        justify-self: start !important;
        align-self: center;
    }

    .site-footer .site-footer-v5-trust > a.site-footer-v5-chip {
        grid-area: right !important;
        justify-self: end !important;
        align-self: center;
    }

    .site-footer .site-footer-v5-backtop {
        grid-area: arrow;
        align-self: center;
    }

    .site-footer .site-footer-v5-bottom > p {
        grid-area: copy;
        justify-self: start;
    }

    html[dir="rtl"] .site-footer .site-footer-v5-trust > *.site-footer-v5-chip,
    html[dir="rtl"] .site-footer .site-footer-v5-bottom > p {
        direction: rtl;
    }

    html[dir="rtl"] .site-footer .site-footer-v5-bottom > p {
        justify-self: end;
        text-align: right;
    }
}


/* ROCOSHOP_STAGE8_ORDERS_MOBILE_HEADER_V1 */
@media (max-width: 760px) {
    .site-header {
        top: calc(env(safe-area-inset-top, 0px) + 14px) !important;
    }
}

@media (min-width: 621px) {
    .home-branding-product-card {
        grid-template-rows: auto minmax(0, 1fr);
    }

    .home-branding-product-body {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .home-branding-product-footer {
        margin-top: auto;
    }
}

.roco-product-card-title {
    min-height: 0;
    max-height: 3.4em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* ROCOSHOP_CUSTOMER_PROJECT_DETAIL_V1 */
.customer-project-status-banner {
    width: 100%;
    min-height: 92px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.09), rgba(15, 23, 42, 0.38)),
        rgba(2, 6, 23, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 16px 38px rgba(2, 6, 23, 0.18);
}

.customer-project-status-banner .customer-account-info-strip-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.11);
    border: 1px solid rgba(125, 211, 252, 0.18);
}

.customer-project-status-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.customer-project-status-copy > strong {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.7;
    white-space: nowrap;
}

.customer-project-status-copy > p {
    margin: 0;
    color: var(--color-text-main);
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -0.35px;
}

.customer-project-invoices {
    overflow: visible;
}

.customer-project-invoice-card {
    padding: 24px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start !important;
    gap: 20px 28px !important;
    border-radius: 18px !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 60%),
        rgba(2, 6, 23, 0.24);
}

.customer-project-invoice-main {
    min-width: 0;
}

.customer-project-invoice-heading {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-project-invoice-heading > span {
    color: var(--color-text-main);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.6;
}

.customer-project-invoice-heading > strong {
    padding: 4px 9px;
    border-radius: 999px;
    color: #7dd3fc;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.4;
    background: rgba(56, 189, 248, 0.09);
    border: 1px solid rgba(125, 211, 252, 0.14);
}

.customer-project-invoice-main > h2 {
    margin: 0;
    color: var(--color-text-main);
    font-size: 17px;
    font-weight: 720;
    line-height: 1.75;
}

.customer-project-invoice-facts {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.customer-project-invoice-facts > div {
    min-height: 42px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(148, 163, 184, 0.11);
}

.customer-project-invoice-facts span {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
}

.customer-project-invoice-facts strong {
    color: var(--color-text-main);
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.6;
}

.customer-project-payment-status {
    min-width: 128px;
    padding: 12px 14px;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 7px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.customer-project-payment-status > span:first-child {
    color: var(--color-text-muted);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.5;
}

.customer-project-payment-status .customer-account-status {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 800;
}

.customer-project-payment-status .customer-account-status.is-fulfilled {
    color: #4ade80 !important;
}

.customer-project-invoice-action {
    grid-column: 1 / -1;
    justify-self: start;
}

html[dir="rtl"] .customer-project-invoice-action {
    justify-self: start;
}

@media (max-width: 760px) {
    .customer-project-status-banner {
        min-height: 82px;
        padding: 16px;
        gap: 12px;
        border-radius: 15px;
    }

    .customer-project-status-banner .customer-account-info-strip-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 12px;
    }

    .customer-project-status-copy {
        align-items: flex-start;
        flex-direction: column;
        gap: 1px;
    }

    .customer-project-status-copy > p {
        font-size: 21px;
    }

    .customer-project-invoice-card {
        padding: 18px !important;
        grid-template-columns: 1fr;
        gap: 16px !important;
    }

    .customer-project-payment-status {
        min-width: 0;
        width: 100%;
        flex-direction: row;
        align-items: center !important;
        justify-content: space-between;
    }

    .customer-project-invoice-facts {
        display: grid;
        grid-template-columns: 1fr;
    }

    .customer-project-invoice-facts > div {
        justify-content: space-between;
    }

    .customer-project-invoice-action {
        grid-column: 1;
    }
}

@media (max-width: 390px) {
    .customer-project-invoice-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .customer-project-invoice-heading > span {
        font-size: 16px;
    }
}
