/* HCC site chrome — inner pages (not homepage / treatment-detail) */
body.hcc-site-chrome {
    --hcc-desktop-header-height: 96px;
    --hcc-floating-nav-height: 77px;
    --hcc-section-end-gap: 100px;
    --hcc-font: Montserrat, Arial, sans-serif;
    --hcc-white: #fff;
    --hcc-bg-soft: #fef3e9;
    --hcc-bg-muted: #fafafa;
    --hcc-border: #dfe1e7;
    --hcc-text-title: #101820;
    --hcc-text-body: #666d80;
    --hcc-text-dark: #0d0d12;
}

body.hcc-site-chrome #header.header {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}

body.hcc-site-chrome #page-wrap,
body.hcc-site-chrome #page-wrap .default,
body.hcc-site-chrome #page-wrap .no-sidebar,
body.hcc-site-chrome #main {
    margin-top: 0 !important;
}

body.hcc-site-chrome .hcc-desktop-header {
    display: none;
}

body.hcc-site-chrome .hcc-desktop-floating-nav {
    display: none;
}

.hcc-desktop-nav-search,
.hcc-desktop-nav-pill {
    text-decoration: none;
}

button.hcc-desktop-nav-search {
    border: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
    width: auto;
}

@media (max-width: 1023.98px) {
    body.hcc-site-chrome #page-wrap,
    body.hcc-site-chrome #page-wrap .default,
    body.hcc-site-chrome #page-wrap .no-sidebar {
        padding-top: 0 !important;
    }

    body.hcc-site-chrome #page-wrap {
        padding-bottom: var(--hcc-floating-nav-height, 77px) !important;
    }

}

@media (min-width: 1024px) {
    body.hcc-site-chrome .hcc-desktop-header {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        z-index: 9;
        background: #101820;
    }

    body.hcc-site-chrome .hcc-header-ticker--desktop {
        display: block;
        width: 100%;
        max-width: none;
        height: 24px;
        min-height: 24px;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0;
        box-sizing: border-box;
        overflow: hidden;
        background: #101820;
        color: var(--hcc-white);
        font: 500 12px/24px var(--hcc-font);
        letter-spacing: -0.24px;
        line-height: 24px;
        flex: 0 0 24px;
    }

    body.hcc-site-chrome .hcc-header-ticker--desktop .hcc-header-ticker-track {
        display: inline-flex;
        flex: 0 0 auto;
        flex-shrink: 0;
        width: max-content;
        min-width: max-content;
        gap: 64px;
        padding-left: 64px;
        animation: hcc-header-ticker-marquee-desktop 36s linear infinite;
    }

    body.hcc-site-chrome .hcc-header-ticker--desktop .hcc-header-ticker-track > span {
        flex-shrink: 0;
    }

    @keyframes hcc-header-ticker-marquee-desktop {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        body.hcc-site-chrome .hcc-header-ticker--desktop .hcc-header-ticker-track {
            animation: none;
            transform: translateX(0);
        }
    }

    body.hcc-site-chrome .hcc-desktop-header .hcc-desktop-nav {
        display: flex;
        align-items: center;
        gap: 48px;
        width: 100%;
        margin: 0 auto !important;
        padding: 10px 48px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        box-sizing: border-box;
        flex: 0 0 auto;
    }

    body.hcc-site-chrome .hcc-desktop-nav-logo {
        width: 73px;
        height: 34px;
        object-fit: contain;
        display: block;
    }

    body.hcc-site-chrome .hcc-desktop-nav-search {
        flex: 1 1 auto;
        min-width: 320px;
        height: 52px;
        border-radius: 999px;
        background: #fafafa;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 4px 6px 16px;
        color: #666d80;
        font-family: var(--hcc-font);
        font-size: 16px;
        font-weight: 500;
        line-height: 1.6;
        letter-spacing: -0.32px;
    }

    body.hcc-site-chrome .hcc-desktop-nav-search .icon-wrap {
        width: 32px;
        height: 32px;
        border-radius: 999px;
        background: #fef3e9;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 32px;
    }

    body.hcc-site-chrome .hcc-desktop-nav-search .icon-wrap img {
        width: 17px;
        height: 17px;
        object-fit: contain;
        display: block;
    }

    body.hcc-site-chrome .hcc-desktop-nav-search-widget {
        flex: 1 1 auto;
        min-width: 320px;
        max-width: 100%;
        min-height: 52px;
    }

    body.hcc-site-chrome .hcc-desktop-nav-search-widget erha-search {
        display: block;
        width: 100%;
    }

    @media (max-width: 1023.98px) {
        body.hcc-site-chrome .hcc-desktop-nav-search-widget {
            display: none;
        }
    }

    @media (min-width: 1024px) {
        body.hcc-site-chrome .hcc-desktop-search-modal-widget-mount--mobile-only {
            display: none;
        }
    }

    body.hcc-site-chrome .hcc-desktop-nav-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
    }

    body.hcc-site-chrome .hcc-desktop-nav-pill {
        height: 52px;
        border-radius: 999px;
        padding: 8px 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #fff;
        box-shadow: 0 1px 1px rgba(13, 13, 18, 0.06);
        font-family: var(--hcc-font);
        font-size: 18px;
        font-weight: 500;
        line-height: 1.55;
        white-space: nowrap;
    }

    body.hcc-site-chrome .hcc-desktop-nav-pill img {
        width: 24px;
        height: 24px;
        object-fit: contain;
        display: block;
    }

    body.hcc-site-chrome .hcc-desktop-nav-pill.heal {
        background: #345d9d;
    }

    body.hcc-site-chrome .hcc-desktop-nav-pill.uplift {
        background: #6f111e;
        min-width: 150px;
    }

    body.hcc-site-chrome #page-wrap,
    body.hcc-site-chrome #page-wrap .default,
    body.hcc-site-chrome #page-wrap .no-sidebar {
        padding-top: var(--hcc-desktop-header-height, 96px) !important;
        padding-bottom: 0 !important;
    }

    /* Match legacy treatment + homepage: gap on last section, not footer margin */
    body.hcc-site-chrome .treatment-detail-section,
    body.hcc-site-chrome .product-details {
        padding-bottom: var(--hcc-section-end-gap, 100px) !important;
    }

    body.hcc-site-chrome .page-section .section-group__content {
        padding-bottom: 80px !important;
    }

    body.hcc-site-chrome .treatment-info-section .section-group {
        margin-bottom: 50px !important;
    }

    body.hcc-site-chrome .treatment-detail-section .section-content {
        padding-bottom: 0 !important;
    }

    body.hcc-site-chrome .header-mobile-copy,
    body.hcc-site-chrome .floating-buttons {
        display: none !important;
    }

    body.hcc-site-chrome .hcc-desktop-floating-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 8;
        width: 100%;
        height: var(--hcc-floating-nav-height, 77px);
        background: #fff;
        border-radius: 0;
        box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.08);
        display: block;
        padding: 0;
        box-sizing: border-box;
    }

    body.hcc-site-chrome .hcc-desktop-floating-nav-inner {
        width: 100%;
        max-width: 1180px;
        height: 100%;
        margin: 0 auto;
        display: flex;
        align-items: center;
        padding: 0 8px;
        box-sizing: border-box;
    }

    body.hcc-site-chrome .hcc-desktop-floating-nav .hcc-desktop-nav-item {
        flex: 1 1 0;
        min-width: 0;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 16px 8px;
        color: #666d80;
        text-decoration: none;
        font-family: Montserrat, var(--hcc-font), sans-serif;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.6;
        letter-spacing: -0.32px;
        white-space: nowrap;
    }

    body.hcc-site-chrome .hcc-desktop-floating-nav .hcc-desktop-nav-item img {
        width: 24px;
        height: 24px;
        object-fit: contain;
        flex: 0 0 24px;
    }

    body.hcc-site-chrome .hcc-desktop-floating-nav .hcc-desktop-nav-booking {
        flex: 1 1 0;
        min-width: 0;
        height: 48px;
        border-radius: 999px;
        background: #f58220;
        box-shadow: 0 12px 16px rgba(245, 130, 32, 0.24), 0 4px 6px rgba(245, 130, 32, 0.03);
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #fff;
        font-family: Montserrat, var(--hcc-font), sans-serif;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.55;
        margin: 0 8px;
        white-space: nowrap;
    }
}

/* Find clinic/doctor: wide desktop (e.g. 1920@125% ≈ 1536px) — match 1440 layout, clear title below */
@media (min-width: 1441px) {
    body.hcc-site-chrome.hcc-find-desktop-page .desktop-tabs-container {
        margin: -45px auto 24px auto !important;
    }

    body.hcc-site-chrome.hcc-find-desktop-page .desktop-search-container {
        margin-top: 24px !important;
        margin-bottom: 48px !important;
    }

    body.hcc-site-chrome.hcc-find-desktop-page .desktop-find-clinic,
    body.hcc-site-chrome.hcc-find-desktop-page .desktop-find-doctor {
        padding-top: 12px;
    }
}

/* Keep floating actions visible but below header/search (host layer 9 / mobile header 1000). */
body.hcc-site-chrome #floating-whatsapp,
body.hcc-site-chrome #back2top.btn-circle {
    z-index: 8 !important;
}
