/* Stage 2 — internal pages REFRESH, Concept 02 v2, batch 01. */
:root {
    --th-orange: #F39430;
    --th-orange-hover: #E36A00;
    --th-orange-soft: #FFF3E5;
    --th-ink: #202631;
    --th-muted: #667085;
    --th-line: #E8EBEF;
    --th-surface: #FFFFFF;
    --th-surface-soft: #F7F8FA;
    --th-shadow-sm: 0 8px 24px rgba(31, 38, 49, .08);
    --th-shadow-md: 0 18px 48px rgba(31, 38, 49, .12);
}

html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--th-ink);
    background: #fff;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 400;
}

body strong,
body b {
    font-weight: 500;
}

body a:focus-visible,
body button:focus-visible,
body input:focus-visible {
    outline: 3px solid rgba(243, 148, 48, .48);
    outline-offset: 3px;
}

/* Keep the approved clean header treatment on refreshed internal pages. */
.bgr-up {
    background: #fff;
    border-bottom: 1px solid var(--th-line);
    box-shadow: none;
}

.bgr-up > .container {
    max-width: 1420px;
    padding: 13px 24px 15px;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
}

.bgr-up > .container > .row {
    align-items: center;
}

.bgr-up .logo {
    padding: 4px 12px;
}

.bgr-up .logo img {
    width: min(100%, 360px);
    max-height: 92px;
}

.bgr-up .pad10 {
    padding: 7px 10px;
}

.bgr-up > .container > .row > .col-md-8 > div:first-of-type {
    margin-bottom: 8px;
    color: var(--th-muted);
    font-size: 13px;
    font-weight: 400;
}

.bgr-up > .container > .row > .col-md-8 > div:first-of-type a {
    color: var(--th-ink);
}

.bgr-up > .container > .row > .col-md-8 > br,
.bgr-up > .container > .row > .col-md-8 > .pad5 {
    display: none;
}

.bgr-up .container-fluid {
    padding: 0 !important;
}

.bgr-up table {
    width: 100%;
}

.bgr-up table td:first-child {
    width: 100%;
}

.bgr-up form,
.bgr-up form label {
    display: block;
    width: 100%;
    margin: 0;
}

.form1 {
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    color: var(--th-ink);
    background: #F8F9FB;
    border-color: #DDE1E7;
    border-radius: 11px 0 0 11px;
}

.form2 {
    width: 52px;
    height: 48px;
    padding: 13px;
    background: var(--th-orange);
    border-color: var(--th-orange);
    border-radius: 0 11px 11px 0;
}

.bgr-up .gray_16 a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--th-ink);
    font-weight: 400;
}

.bgr-up .gray_16 img {
    width: 30px;
}

.menu-bgr {
    position: relative;
    z-index: 15;
    margin: 0;
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--th-line);
    box-shadow: 0 6px 16px rgba(31, 38, 49, .05);
}

.menu-bgr a,
.menu-bgr a.topitem,
#mbmcpebul_table li.highlight div.buttonbg a,
.menu-bgr li,
.menu-bgr span {
    font-weight: 400 !important;
}

/* Page shell and title. */
.th-inner-page {
    position: relative;
    min-height: 480px;
    padding: 32px 0 72px;
    background:
        radial-gradient(circle at 95% 0, rgba(243, 148, 48, .11), transparent 28%),
        linear-gradient(180deg, #FBFCFD 0%, #F6F7F9 100%);
}

.th-inner-shell {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
}

.th-inner-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 28px;
    margin: 0 0 16px;
    color: var(--th-muted);
    font-size: 13px;
    line-height: 1.4;
}

.th-inner-breadcrumbs a {
    color: var(--th-muted);
    text-decoration: none;
}

.th-inner-breadcrumbs a:hover {
    color: var(--th-orange-hover);
}

.th-inner-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 130px;
    margin: 0 0 22px;
    padding: 30px 38px;
    overflow: hidden;
    background: linear-gradient(118deg, #FFFFFF 0%, #FFF9F2 68%, #FFE9D1 100%);
    border: 1px solid rgba(243, 148, 48, .22);
    border-radius: 20px;
    box-shadow: var(--th-shadow-sm);
}

.th-inner-hero::after {
    position: absolute;
    top: -70px;
    right: -38px;
    width: 210px;
    height: 210px;
    content: "";
    background: linear-gradient(145deg, rgba(243, 148, 48, .28), rgba(243, 148, 48, .05));
    border-radius: 50%;
}

.th-inner-hero-mark {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    color: #fff;
    background: linear-gradient(145deg, #FFA343, var(--th-orange-hover));
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(227, 106, 0, .24);
}

.th-inner-hero-mark i {
    font-size: 24px;
}

.th-inner-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--th-ink);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: clamp(34px, 3.3vw, 48px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.th-inner-content-card {
    padding: clamp(28px, 4vw, 54px);
    background: var(--th-surface);
    border: 1px solid var(--th-line);
    border-radius: 20px;
    box-shadow: var(--th-shadow-md);
}

.th-inner-rich,
.th-inner-rich.content-without-builder,
.th-inner-rich.content-with-builder {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0;
    color: #3D4653;
    background: transparent;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.72;
}

.th-inner-rich * {
    max-width: 100%;
    font-family: "Segoe UI", Arial, sans-serif !important;
}

.th-inner-rich > div {
    font-size: 16px !important;
}

.th-inner-rich a {
    color: var(--th-orange-hover);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.th-inner-rich img {
    height: auto !important;
    object-fit: contain;
}

.th-inner-children,
.th-inner-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.th-inner-child-card,
.th-inner-gallery-card {
    padding: 16px;
    color: var(--th-ink);
    text-align: center;
    text-decoration: none;
    background: var(--th-surface-soft);
    border: 1px solid var(--th-line);
    border-radius: 14px;
}

.th-inner-child-card img,
.th-inner-gallery-card img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 10px;
}

.th-inner-gallery-card h2 {
    margin: 10px 0 0;
    font-size: 16px;
    font-weight: 500;
}

/* About page: existing value statements become easy-to-scan cards. */
.th-inner-page--about .th-inner-rich {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.th-inner-page--about .th-inner-rich > div:nth-child(-n+4),
.th-inner-page--about .th-inner-rich > div:nth-child(n+13) {
    grid-column: 1 / -1;
}

.th-inner-page--about .th-inner-rich > div:nth-child(1) {
    color: var(--th-ink);
    font-size: 21px !important;
    line-height: 1.45;
}

.th-inner-page--about .th-inner-rich > div:nth-child(2) {
    max-width: 880px;
    color: var(--th-muted);
    font-size: 16px !important;
}

.th-inner-page--about .th-inner-rich > div:nth-child(4) {
    margin-top: 14px;
    color: var(--th-ink);
    font-size: 22px !important;
    font-weight: 500;
}

.th-inner-page--about .th-inner-rich > div:nth-child(n+5):nth-child(-n+12) {
    position: relative;
    min-height: 84px;
    padding: 18px 18px 18px 48px;
    color: #434C59;
    background: var(--th-surface-soft);
    border: 1px solid var(--th-line);
    border-radius: 14px;
}

.th-inner-page--about .th-inner-rich > div:nth-child(n+5):nth-child(-n+12)::before {
    position: absolute;
    top: 17px;
    left: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #fff;
    font-size: 12px;
    content: "✓";
    background: var(--th-orange);
    border-radius: 50%;
}

.th-inner-page--about .th-inner-rich > div:nth-child(n+13) {
    margin-top: 14px;
}

.th-inner-page--about .th-inner-rich > div:nth-child(n+13) img {
    display: block;
    width: min(100%, 460px) !important;
    margin: 0 auto;
    border-radius: 14px;
}

/* Ordering page: numbered instructions become compact, balanced steps. */
.th-inner-page--order .th-inner-rich {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.th-inner-page--order .th-inner-rich > div:nth-child(-n+4),
.th-inner-page--order .th-inner-rich > div:nth-child(n+20) {
    grid-column: 1 / -1;
}

.th-inner-page--order .th-inner-rich > div:nth-child(1),
.th-inner-page--order .th-inner-rich > div:nth-child(2) {
    padding: 18px 20px;
    color: var(--th-ink);
    background: var(--th-orange-soft);
    border-left: 3px solid var(--th-orange);
    border-radius: 0 12px 12px 0;
}

.th-inner-page--order .th-inner-rich > div:nth-child(4) {
    margin-top: 16px;
    color: var(--th-ink);
    font-size: 22px !important;
    font-weight: 500;
}

.th-inner-page--order .th-inner-rich > div:nth-child(n+5):nth-child(-n+19) {
    min-height: 82px;
    padding: 18px 20px;
    background: var(--th-surface-soft);
    border: 1px solid var(--th-line);
    border-radius: 14px;
}

.th-inner-page--order .th-inner-rich > div:nth-child(n+10):nth-child(-n+15) {
    min-height: 0;
    margin-left: 18px;
    padding: 13px 16px;
    color: var(--th-muted);
    background: #fff;
    border-left: 3px solid #FFD3A5;
}

.th-inner-page--order .th-inner-rich > div:nth-child(20) {
    margin-top: 18px;
    padding: 22px;
    color: var(--th-ink);
    text-align: center;
    background: linear-gradient(118deg, #FFF8EF, #FFF0DF);
    border: 1px solid rgba(243, 148, 48, .28);
    border-radius: 14px;
}

/* Delivery page: preserve the CMS copy while adding hierarchy. */
.th-inner-page--delivery .th-inner-rich > div > div:nth-child(1) {
    padding: 8px 0 24px;
    text-align: center;
}

.th-inner-page--delivery .th-inner-rich > div > div:nth-child(1) img {
    width: min(100%, 280px) !important;
}

.th-inner-page--delivery .th-inner-rich > div > div:nth-child(3) {
    margin-bottom: 16px;
    color: var(--th-ink);
    font-size: 23px !important;
    line-height: 1.35;
}

.th-inner-page--delivery .th-inner-rich > div > div:nth-child(4),
.th-inner-page--delivery .th-inner-rich > div > div:nth-child(5) {
    max-width: 920px;
    margin-bottom: 9px;
}

.th-inner-page--delivery .th-inner-rich > div > div:nth-child(7) {
    margin-top: 28px;
    padding: 26px 28px;
    background: var(--th-surface-soft);
    border: 1px solid var(--th-line);
    border-radius: 16px;
}

.th-inner-page--delivery .th-inner-rich > div > div:nth-child(7) > div {
    margin-bottom: 12px;
}

/* Shared footer typography and surfaces. */
.bgr3 {
    background: linear-gradient(180deg, #F5F6F8 0%, #ECEEF1 100%);
    border-top: 4px solid var(--th-orange);
}

.prozr-up,
.prozr-down {
    background: none;
}

.prozr-down {
    padding: 28px 0 22px;
}

.bgr3 .container {
    max-width: 1420px;
}

.bgr3 .container:first-child {
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--th-line);
    border-radius: 13px;
    box-shadow: var(--th-shadow-sm);
}

.bgr3 .container:nth-of-type(2) {
    padding-top: 12px;
}

.bgr3 .gray_18,
.bgr3 .gray_16,
.bgr3 a {
    color: var(--th-ink);
}

.bgr3 .gray_18 {
    display: inline-block;
    margin-bottom: 9px;
    text-transform: uppercase;
}

.bgr3,
.bgr3 * {
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-weight: 300 !important;
}

.bgr3 a:hover {
    color: var(--th-orange-hover);
}

@media (max-width: 767px) {
    body {
        font-size: 16px;
    }

    .top_design {
        height: 76px;
        background: #fff !important;
        background-image: none !important;
        border-bottom: 1px solid var(--th-line);
        box-shadow: 0 6px 18px rgba(31, 38, 49, .08);
    }

    .top_design table {
        height: 76px;
    }

    .top_design .header {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 76px;
        padding: 0 6px 0 52px;
    }

    .top_design .header > a {
        top: 16px;
        left: 10px;
        display: block;
        width: 44px;
        height: 44px;
        background-size: 24px;
    }

    .top_design .header > img {
        width: min(100%, 218px);
        height: auto;
        max-height: 62px;
        margin: 0;
    }

    .top_design td:last-child {
        width: 58px !important;
    }

    .top_design td:last-child > div {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 76px;
        padding-top: 0 !important;
    }

    .top_design td:last-child a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 44px;
        min-height: 44px;
        color: var(--th-ink);
        font-weight: 400;
    }

    .top_design td:last-child img {
        width: 28px;
    }

    .static_banner {
        right: 14px;
        bottom: 14px;
        z-index: 500;
    }

    .static_banner img {
        width: 52px;
        height: 52px;
        filter: drop-shadow(0 8px 18px rgba(31, 38, 49, .2));
    }

    .th-inner-page {
        padding: 18px 0 44px;
    }

    .th-inner-shell {
        width: calc(100% - 24px);
    }

    .th-inner-breadcrumbs {
        margin-bottom: 11px;
        font-size: 12px;
    }

    .th-inner-hero {
        min-height: 96px;
        margin-bottom: 14px;
        padding: 20px;
        gap: 13px;
        border-radius: 16px;
    }

    .th-inner-hero::after {
        top: -62px;
        right: -58px;
        width: 170px;
        height: 170px;
    }

    .th-inner-hero-mark {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .th-inner-hero-mark i {
        font-size: 20px;
    }

    .th-inner-hero h1 {
        font-size: clamp(27px, 8vw, 34px);
        letter-spacing: -.025em;
    }

    .th-inner-content-card {
        padding: 22px 18px;
        border-radius: 16px;
        box-shadow: 0 12px 32px rgba(31, 38, 49, .09);
    }

    .th-inner-rich,
    .th-inner-rich.content-without-builder,
    .th-inner-rich.content-with-builder,
    .th-inner-rich > div {
        font-size: 15px !important;
        line-height: 1.65;
    }

    .th-inner-children,
    .th-inner-gallery,
    .th-inner-page--about .th-inner-rich,
    .th-inner-page--order .th-inner-rich {
        grid-template-columns: 1fr;
    }

    .th-inner-page--about .th-inner-rich > div,
    .th-inner-page--order .th-inner-rich > div {
        grid-column: 1 / -1;
    }

    .th-inner-page--about .th-inner-rich > div:nth-child(1) {
        font-size: 19px !important;
    }

    .th-inner-page--about .th-inner-rich > div:nth-child(4),
    .th-inner-page--order .th-inner-rich > div:nth-child(4),
    .th-inner-page--delivery .th-inner-rich > div > div:nth-child(3) {
        font-size: 20px !important;
    }

    .th-inner-page--about .th-inner-rich > div:nth-child(n+5):nth-child(-n+12),
    .th-inner-page--order .th-inner-rich > div:nth-child(n+5):nth-child(-n+19) {
        min-height: 0;
    }

    .th-inner-page--order .th-inner-rich > div:nth-child(n+10):nth-child(-n+15) {
        margin-left: 0;
    }

    .th-inner-page--delivery .th-inner-rich > div > div:nth-child(7) {
        padding: 20px 18px;
    }

    .footer_design {
        margin-top: 0;
        padding: 0 12px 24px;
        background: linear-gradient(180deg, #F6F7F9 0%, #ECEFF3 100%);
        background-image: none;
        border-top: 4px solid var(--th-orange);
    }

    .footer_design .prozr-up {
        margin-top: 20px;
        padding: 20px 14px;
        background: #fff;
        background-image: none;
        border: 1px solid var(--th-line);
        border-radius: 14px;
        box-shadow: var(--th-shadow-sm);
    }

    .footer_design .gray_16,
    .footer_design a,
    .footer_design span {
        color: var(--th-ink);
        font-size: 13px;
        line-height: 1.5;
    }

    .footer_design,
    .footer_design * {
        font-family: "Segoe UI", Arial, sans-serif !important;
        font-weight: 300 !important;
    }

    .footer_design .gray_24 {
        font-size: 19px;
    }

    .footer_design img[src*="payment1"] {
        width: min(100%, 205px);
        height: auto;
    }

    .footer_design img[src*="tbi-logo"] {
        width: auto;
        height: 30px;
    }

    .footer_design img[src*="logo.svg"] {
        width: min(100%, 245px);
        height: auto;
    }

    .footer_design .prozr-down {
        margin-top: 16px;
        padding: 14px 0 0;
        background: transparent;
        background-image: none;
        border-top: 1px solid var(--th-line);
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
