.storefront-page,
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.storefront-page > #pjax-container,
.auth-page > .auth-wrapper,
.uc-body .bg-content.uc-bg > #pjax-container {
    flex: 1 0 auto;
}

.auth-page > .auth-wrapper {
    min-height: 0;
}

.uc-body .bg-content.uc-bg {
    display: flex;
    flex-direction: column;
}

.site-footer {
    flex: 0 0 auto;
    display: block;
    width: 100%;
    margin: 22px 0 0;
    padding: 0 16px calc(18px + env(safe-area-inset-bottom));
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.site-footer__inner {
    width: min(100%, 980px);
    min-height: 52px;
    margin: 0 auto;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.48));
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(31, 41, 55, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: saturate(120%) blur(16px);
    backdrop-filter: saturate(120%) blur(16px);
    text-align: center;
}

.site-footer__company {
    max-width: 100%;
    color: #374151;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.site-footer__divider {
    color: #a3aab5;
}

.site-footer__icp {
    max-width: 100%;
    color: #6b7280;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.18s ease;
}

.site-footer__icp:hover {
    color: #374151;
    text-decoration: none;
}

.site-footer__icp:focus-visible {
    outline: 2px solid rgba(76, 150, 224, 0.7);
    outline-offset: 3px;
    border-radius: 4px;
}

html[data-theme="dark"] .site-footer__inner {
    background: linear-gradient(135deg, rgba(31, 36, 46, 0.76), rgba(31, 36, 46, 0.52));
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 9px 28px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .site-footer__company {
    color: #e6e8ec;
}

html[data-theme="dark"] .site-footer__divider,
html[data-theme="dark"] .site-footer__icp {
    color: #9aa0ab;
}

html[data-theme="dark"] .site-footer__icp:hover {
    color: #e6e8ec;
}

@media (max-width: 576px) {
    .site-footer {
        margin-top: 16px;
        padding: 0 12px calc(14px + env(safe-area-inset-bottom));
        font-size: 12px;
    }

    .site-footer__inner {
        min-height: 0;
        padding: 11px 14px;
        flex-direction: column;
        gap: 2px;
        border-radius: 14px;
    }

    .site-footer__company,
    .site-footer__icp {
        display: block;
        width: 100%;
    }

    .site-footer__divider {
        display: none;
    }
}
