.sfv2,
.sfv2 * {
    box-sizing: border-box;
}

.stn-footer--legacy-obsolete,
.shop-footer--legacy-obsolete {
    display: none !important;
}

.sfv2 {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    background: #fff !important;
    color: #263244;
    border-top: 1px solid #e5eaf1;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.sfv2__inner {
    width: min(100%, 1280px);
    margin-inline: auto;
    padding-inline: 24px;
}

.sfv2__grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.45fr) minmax(150px, .8fr) minmax(170px, .9fr) minmax(250px, 1.15fr);
    gap: 44px;
    padding-block: 48px 42px;
}

.sfv2__column {
    min-width: 0;
}

.sfv2__logo {
    display: block;
    width: auto;
    max-width: min(220px, 100%);
    height: auto;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
    margin: 0 0 14px;
}

.sfv2__brand-title,
.sfv2__heading {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.sfv2__brand-title {
    margin-bottom: 10px;
    color: #d90418;
    font-size: 18px;
}

.sfv2__heading::after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    margin-top: 10px;
    border-radius: 99px;
    background: #e2001a;
}

.sfv2__description {
    max-width: 440px;
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.sfv2__links,
.sfv2__contact-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.sfv2__links li + li,
.sfv2__contact-list li + li {
    margin-top: 9px;
}

.sfv2__links a,
.sfv2__links li > span {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    min-height: 30px;
    color: #3f4b5d !important;
    font-size: 14px;
    line-height: 1.55;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color .18s ease, transform .18s ease;
}

.sfv2__links a > span:first-child,
.sfv2__links li > span > span:first-child {
    color: #e2001a;
    font-size: 20px;
    line-height: 20px;
}

.sfv2__links a:hover {
    color: #d90418 !important;
    transform: translateX(2px);
}

.sfv2__account-menu {
    width: 100%;
}

.sfv2__account-menu > summary {
    display: inline-flex;
    min-height: 30px;
    align-items: flex-start;
    gap: 8px;
    color: #3f4b5d;
    font-size: 14px;
    line-height: 1.55;
    list-style: none;
    cursor: pointer;
    transition: color .18s ease;
}

.sfv2__account-menu > summary::-webkit-details-marker {
    display: none;
}

.sfv2__link-caret {
    color: #e2001a;
    font-size: 20px;
    line-height: 20px;
    transform-origin: center;
    transition: transform .18s ease;
}

.sfv2__account-menu[open] > summary .sfv2__link-caret {
    transform: rotate(90deg);
}

.sfv2__account-menu > summary:hover {
    color: #d90418;
}

.sfv2__account-submenu {
    margin: 5px 0 3px 10px;
    padding: 3px 0 3px 14px;
    border-left: 1px solid #e3e7ed;
    list-style: none;
}

.sfv2__account-submenu li + li {
    margin-top: 3px;
}

.sfv2__account-submenu a {
    min-height: 27px;
    color: #5b6676 !important;
    font-size: 13px;
    line-height: 1.45;
}

.sfv2__link-disabled {
    color: #8a94a3 !important;
    cursor: default;
}

.sfv2__links a:focus-visible,
.sfv2__account-menu > summary:focus-visible,
.sfv2__contact a:focus-visible,
.sfv2__social:focus-visible,
.sfv2__float-button:focus-visible {
    outline: 3px solid rgba(226, 0, 26, .25);
    outline-offset: 3px;
}

.sfv2__contact-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.sfv2__contact-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: #d90418;
    border: 1px solid #f1c7cc;
    border-radius: 10px;
    background: #fff7f8;
}

.sfv2__contact-icon svg,
.sfv2__social svg,
.sfv2__float-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sfv2__contact-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding-top: 1px;
}

.sfv2__contact-copy strong {
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.35;
    text-transform: uppercase;
}

.sfv2__contact-copy a,
.sfv2__contact-copy > span {
    color: #263244 !important;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.sfv2__contact-copy a:hover {
    color: #d90418 !important;
}

.sfv2__social-title {
    margin: 22px 0 10px;
    color: #4b5563;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .075em;
    line-height: 1.35;
    text-transform: uppercase;
}

.sfv2__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sfv2__social {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #374151 !important;
    border: 1px solid #dce2ea;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.sfv2__social:hover {
    color: #d90418 !important;
    border-color: #ef9ba5;
    box-shadow: 0 7px 18px rgba(226, 0, 26, .09);
}

.sfv2__bottom {
    border-top: 1px solid #edf0f4;
    background: #fbfcfd;
}

.sfv2__bottom p {
    margin: 0;
    padding-block: 18px;
    color: #647084;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.sfv2__floating {
    position: fixed;
    right: calc(134px + env(safe-area-inset-right));
    bottom: calc(160px + env(safe-area-inset-bottom));
    z-index: 70;
    display: none !important;
    flex-direction: column;
    gap: 10px;
}

.sfv2__float-button {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    border: 3px solid #fff;
    border-radius: 999px;
    background: #e2001a;
    box-shadow: 0 8px 22px rgba(20, 29, 45, .2);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.sfv2__float-button--facebook { background: #1877f2; }
.sfv2__float-button--zalo { background: #0967d2; }
.sfv2__float-button--youtube { background: #f00; }
.sfv2__float-button--tiktok { background: #111827; }

.sfv2__float-button:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(20, 29, 45, .27);
}

.site-footer-v2-host.shop-footer {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 1023px) {
    .sfv2__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 42px;
        padding-block: 40px 36px;
    }

    body.mobile-app-enabled .sfv2__floating {
        bottom: calc(220px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 620px) {
    .sfv2__inner {
        padding-inline: 18px;
    }

    .sfv2__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding-block: 34px 30px;
    }

    .sfv2__logo {
        max-width: 190px;
        max-height: 62px;
    }

    .sfv2__description {
        font-size: 13.5px;
        line-height: 1.7;
    }

    .sfv2__links a,
    .sfv2__links li > span {
        min-height: 34px;
    }

    .sfv2__social {
        min-height: 44px;
    }

    .sfv2__bottom p {
        padding-block: 16px;
        text-align: left;
    }

    .sfv2__floating {
        right: calc(80px + env(safe-area-inset-right));
    }

}

@media (prefers-reduced-motion: reduce) {
    .sfv2 a {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* 2026-09-30: Keep exactly one footer variant, including login pages without the app flag. */
.sfv2.sfv2--desktop {
    display: block !important;
}

.sfv2.sfv2--mobile {
    display: none !important;
}

@media (max-width: 1023px) {
    .sfv2.sfv2--desktop {
        display: none !important;
    }

    .sfv2.sfv2--mobile {
        display: block !important;
    }

    html body.shopacc-white-theme.shopacc-white-theme .site-footer-v2-host.shop-footer {
        display: block !important;
    }
}

@media (min-width: 1024px) {
    html body.shopacc-white-theme.shopacc-white-theme .site-footer-v2-host.shop-footer {
        display: none !important;
    }
}
