/* Site footer — reliable layout without depending on iHerb header-footer CSS */

.t3-site-footer {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #f7f8f6;
    color: #181b1f;
    border-top: 1px solid #e6e8e3;
    margin-top: 24px;
    box-sizing: border-box;
}

.t3-site-footer *,
.t3-site-footer *::before,
.t3-site-footer *::after {
    box-sizing: border-box;
}

.t3-site-footer .footer-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 8px;
    color: #181b1f !important;
}

.t3-site-footer .footer-content > .container-fluid,
.t3-site-footer .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
}

/* Top link columns — row on tablet/desktop, stack only on small phones */
.t3-site-footer .footer-info-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 28px 24px !important;
    width: 100% !important;
    max-width: 100% !important;
}

.t3-site-footer .footer-section,
.t3-site-footer .t3-footer-brand,
.t3-site-footer .t3-footer-section {
    flex: 1 1 180px !important;
    width: auto !important;
    min-width: 160px !important;
    max-width: 280px !important;
    float: none !important;
}

.t3-site-footer .t3-footer-brand {
    flex: 1.6 1 260px !important;
    max-width: 340px !important;
}

.t3-site-footer .t3-footer-about {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin: 0 0 12px;
}

.t3-site-footer .t3-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.t3-site-footer .t3-footer-contact a {
    color: #333;
    text-decoration: none;
}

.t3-site-footer .t3-footer-contact a:hover {
    color: #274158;
    text-decoration: underline;
}

.t3-site-footer .t3-footer-logo,
.t3-site-footer a.footer-logo {
    display: inline-block;
    width: 160px;
    height: 48px;
    margin-bottom: 12px;
    overflow: hidden;
}

.t3-site-footer .t3-footer-logo img,
.t3-site-footer a.footer-logo img {
    width: 160px !important;
    height: 48px !important;
    object-fit: contain;
}

.t3-site-footer .footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.t3-site-footer .footer-section .title {
    padding: 0;
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #181b1f;
}

.t3-site-footer .footer-section li {
    padding: 0;
    margin: 0 0 8px;
    line-height: 1.45;
}

.t3-site-footer .footer-section a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.45;
    display: inline-block;
}

.t3-site-footer .footer-section a:hover {
    color: #274158;
    text-decoration: underline;
}

.t3-site-footer .separator {
    width: 100%;
    height: 1px;
    background: #e6e8e3;
    margin: 20px 0;
    border: 0;
}

/* Apps + newsletter row */
.t3-site-footer .apps-email-social {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 28px 32px !important;
    width: 100% !important;
    padding: 8px 0 20px;
}

.t3-site-footer .app-links-and-social {
    flex: 1 1 320px;
    min-width: 0;
}

.t3-site-footer .mobile-apps-container {
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px;
    text-align: left;
}

.t3-site-footer .qr-wrapper {
    flex: 0 0 120px;
    width: 120px;
    margin: 0 !important;
}

.t3-site-footer .mobile-apps-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.t3-site-footer .mobile-apps-description {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 12px;
    color: #53575a;
}

.t3-site-footer .social-media-icons {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.t3-site-footer .social-media-icons li {
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e6e8e3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.t3-site-footer .social-media-icons a {
    color: #181b1f;
    font-size: 16px;
}

.t3-site-footer .call-to-action-container,
.t3-site-footer .email-subscription-container {
    flex: 1 1 300px;
    max-width: 420px;
    min-width: 0;
}

.t3-site-footer .email-subscription-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.t3-site-footer .email-subscription-desc,
.t3-site-footer .legal-text {
    font-size: 13px;
    line-height: 1.45;
    color: #53575a;
    margin-bottom: 10px;
}

.t3-site-footer .email-subscription-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.t3-site-footer .email-subscription-input-wrapper input.form-control {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #cfd3cc;
}

.t3-site-footer .btn-email-subscription {
    flex: 0 0 48px;
    width: 48px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: #274158 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.t3-site-footer .footer-bottom-text {
    text-align: center;
    margin: 8px 0 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #53575a;
    float: none !important;
    width: 100% !important;
}

.t3-site-footer .footer-bottom-text a {
    color: #274158;
    text-decoration: none;
}

.t3-site-footer .footer-links,
.t3-site-footer .t3-footer-bottom-links {
    text-align: center;
    padding-bottom: 24px;
    float: none !important;
    width: 100% !important;
}

.t3-site-footer .footer-links a {
    padding: 0 10px;
    color: #274158;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

.t3-site-footer .footer-links a:hover {
    text-decoration: underline;
}

/* Tablet / mid screens: 2×2-ish wrap */
@media (max-width: 991.98px) {
    .t3-site-footer .footer-content {
        padding: 24px 16px 8px;
    }

    .t3-site-footer .footer-info-links {
        flex-direction: row !important;
        gap: 24px 16px !important;
    }

    .t3-site-footer .footer-section,
    .t3-site-footer .t3-footer-brand,
    .t3-site-footer .t3-footer-section {
        flex: 1 1 calc(50% - 16px) !important;
        min-width: 200px !important;
        max-width: calc(50% - 8px) !important;
    }

    .t3-site-footer .t3-footer-brand {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    .t3-site-footer .apps-email-social {
        flex-direction: column !important;
    }

    .t3-site-footer .call-to-action-container,
    .t3-site-footer .email-subscription-container {
        max-width: 100%;
        width: 100%;
    }
}

/* Phones: single column */
@media (max-width: 575.98px) {
    .t3-site-footer .footer-content {
        padding: 20px 14px 4px;
    }

    .t3-site-footer .footer-info-links {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 22px !important;
    }

    .t3-site-footer .footer-section,
    .t3-site-footer .t3-footer-brand,
    .t3-site-footer .t3-footer-section {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .t3-site-footer .mobile-apps-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .t3-site-footer .qr-wrapper {
        display: none !important;
    }

    .t3-site-footer .email-subscription-input-wrapper {
        flex-direction: row;
    }

    .t3-site-footer .footer-links a {
        display: inline-block;
        margin: 4px 0;
        border: 0;
    }
}
