/* TNG Custom 0.2.1. Storefront additions load after the existing theme. */
:root { --tng-menu-top: 100px; }
html.tng-nav-open { overflow: hidden; }
.tng-header { z-index: 1002; }
.tng-nav-backdrop { position: fixed; inset: 0; z-index: 1001; padding: 0; border: 0; border-radius: 0; background: rgba(15, 23, 42, .48); cursor: pointer; }
.tng-nav-backdrop[hidden] { display: none !important; }
#primary, #custom-order-form, #how-it-works, #group-orders, #contact-tng-custom { scroll-margin-top: 110px; }
#primary:focus { outline: none; }
.tng-custom-theme :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #225de0; outline-offset: 4px; }
.tng-custom-theme :is(h1, h2, h3, p), .tng-custom-theme .woocommerce-product-details__short-description { overflow-wrap: anywhere; }
.tng-hero-v019 .tng-hero-copy h1 { max-width: 100%; font-size: clamp(2.5rem, 4.2vw, 4.2rem); letter-spacing: -.035em; line-height: 1.05; }
.tng-hero-garment { white-space: nowrap; font-style: normal; }
.tng-hero-copy > p { max-width: 540px; color: #465469; }
.tng-hero-trust { flex-wrap: wrap; }
.tng-hero-trust span { white-space: normal; }
.tng-cta-inner { position: relative; overflow: hidden; }
.tng-group-section { background: #f3f6fc; border-top: 1px solid #dfe7f4; border-bottom: 1px solid #dfe7f4; }
.tng-group-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.tng-group-copy h2, .tng-order-faq h2 { max-width: 550px; font-size: clamp(2rem, 3.4vw, 3.3rem); line-height: 1.13; letter-spacing: -.025em; }
.tng-group-copy > p:not(.tng-kicker) { max-width: 540px; color: #465469; }
.tng-group-shop-link { display: block; margin-top: 16px; color: #244fa4; font-size: 14px; text-underline-offset: 4px; }
.tng-group-pricing { min-width: 0; padding: clamp(20px, 3vw, 32px); background: #fff; border: 1px solid #d7e1f1; border-radius: 20px; box-shadow: 0 16px 40px rgba(30, 57, 100, .05); }
.tng-group-pricing-label { margin-bottom: 18px; color: #183668; font-weight: 700; font-size: 16px; line-height: 1.5; }
.tng-group-pricing-note { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid #dfe7f4; color: #465469; font-size: 13px; }
.tng-faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 70px); }
.tng-order-faq p { color: #465469; }
.tng-faq-list { min-width: 0; }
.tng-faq-list details { margin-bottom: 12px; border: 1px solid #dce3ed; border-radius: 12px; background: #fff; }
.tng-faq-list summary { padding: 18px 20px; color: #18243b; font-size: 16px; line-height: 1.5; font-weight: 700; cursor: pointer; }
.tng-faq-list details[open] summary { border-bottom: 1px solid #e3e8f0; }
.tng-faq-list details > p, .tng-faq-list details > .tngqd-bulk-table-wrap { margin: 16px 20px; }
.tng-faq-list details > p { font-size: 14px; }
.tng-faq-list a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
.tng-product-assurance { display: grid; gap: 6px; margin: 18px 0 8px; color: #3c4b60; font-size: 13px; line-height: 1.6; }
.tng-product-assurance span::before { content: '✓'; margin-right: 8px; color: #256147; font-weight: 700; }
.tng-product-help { margin-bottom: 22px; color: #4d5c70; font-size: 13px; line-height: 1.6; }
.tng-product-help a { color: #1d4ed8; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tng-shop-tools { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 0 0 30px; }
.tng-shop-search { width: min(100%, 540px); }
.tng-shop-search label { display: block; margin-bottom: 8px; color: #27374e; font-size: 13px; font-weight: 700; }
.tng-shop-search > div { display: flex; gap: 8px; }
.tng-shop-search input[type="search"] { min-width: 0; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #bcc9dc; border-radius: 9px; background: #fff; color: #18243b; font: inherit; font-size: 16px; }
.tng-shop-search button { min-height: 48px; padding: 10px 18px; border: 0; border-radius: 9px; background: #215bd3; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.tng-shop-group-link { max-width: 300px; color: #214c9c; font-size: 14px; line-height: 1.6; font-weight: 600; text-underline-offset: 4px; }
.tng-empty-cart-help { margin: 24px 0; padding: 24px; border: 1px solid #d7e1ef; border-radius: 16px; background: #f5f8fd; }
.tng-empty-cart-help h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
body.tng-custom-theme .woocommerce :is(.cart_totals, .woocommerce-checkout-review-order-table) .tngqd-bulk-total small { color: #4b5563; }
.tng-contact-form :is(input, textarea, select) { font-size: 16px; }
body.tng-custom-theme .tng-contact-form label > span em,
body.tng-custom-theme .tng-group-size-heading p,
body.tng-custom-theme .tng-group-request__note { color: #536176; }
.tng-contact-process .tng-kicker,
.tng-contact-process article > span { color: #9fc0ff; }
.tng-contact-form:not(.tng-shipping-ready) [data-tng-shipping-fields][hidden] { display: block !important; }
.tng-size-help { margin: 14px 0 20px; padding: 12px 14px; border: 1px solid #dce3ed; border-radius: 10px; color: #45536a; font-size: 13px; }
.tng-size-help summary { color: #283951; font-weight: 700; cursor: pointer; }
.tng-size-help p { margin: 12px 0 0; line-height: 1.65; }
.tng-size-help a { color: #1d4ed8; text-decoration: underline; }
.tngqd-live-estimate[aria-busy="true"] [data-tngqd-values] { opacity: .45; }
.tng-nav-open .tngqd-mobile-pricebar { display: none !important; }

/* Commerce pages need room for both the form and a readable order summary. */
.tng-commerce-wrap { max-width: var(--tng-container); padding-top: 48px; }
.tng-commerce-wrap .tng-page-header { margin-bottom: 28px; }
.tng-commerce-wrap .tng-page-header h1 { font-size: clamp(2rem, 4vw, 3rem); }
body.tng-custom-theme .wc-block-checkout,
body.tng-custom-theme .wc-block-cart { width: 100%; min-width: 0; }
body.tng-custom-theme .wc-block-checkout .wc-block-components-order-summary-item {
    display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 8px;
    padding: 20px 0; min-width: 0;
}
body.tng-custom-theme .wc-block-checkout .wc-block-components-order-summary-item__image {
    grid-column: 1; grid-row: 1 / 3; margin-top: 4px; padding-bottom: 0;
}
body.tng-custom-theme .wc-block-checkout .wc-block-components-order-summary-item__description {
    grid-column: 2; grid-row: 1; min-width: 0; padding: 0; gap: 8px;
}
body.tng-custom-theme .wc-block-checkout .wc-block-components-order-summary-item__total-price {
    grid-column: 2; grid-row: 2; min-width: 0; margin: 0; padding: 0; text-align: left;
}
body.tng-custom-theme .wc-block-checkout .wc-block-components-order-summary-item__total-price .wc-block-cart-item__total-price-and-sale-badge-wrapper {
    align-items: flex-start; gap: 6px;
}
body.tng-custom-theme .wc-block-checkout .wc-block-components-product-name {
    font-size: 15px; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere;
}
body.tng-custom-theme .wc-block-checkout .wc-block-components-product-metadata,
body.tng-custom-theme .wc-block-checkout .wc-block-components-product-details { width: 100%; min-width: 0; }
body.tng-custom-theme :is(.wc-block-checkout, .wc-block-cart) .wc-block-components-product-details > span {
    display: block; margin: 0 0 6px; overflow-wrap: anywhere;
}
body.tng-custom-theme :is(.wc-block-checkout, .wc-block-cart) .wc-block-components-product-details > span > span[aria-hidden="true"] { display: none; }
body.tng-custom-theme :is(.wc-block-checkout, .wc-block-cart) .wc-block-components-product-details__name { font-weight: 600; }
body.tng-custom-theme .wc-block-checkout .wc-block-components-product-details__bulk-apparel-discount,
body.tng-custom-theme .wc-block-checkout .wc-block-components-product-details__savings-included { color: #225d43; }
@media (min-width: 1024px) {
    body.tng-custom-theme .tng-commerce-wrap .wc-block-checkout .wc-block-components-sidebar-layout {
        display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); gap: 36px; align-items: start;
    }
    body.tng-custom-theme .tng-commerce-wrap .wc-block-checkout .wc-block-components-sidebar-layout > :is(.wc-block-components-main, .wc-block-components-sidebar) {
        width: 100%; min-width: 0; margin: 0; padding: 0;
    }
    body.tng-custom-theme .tng-commerce-wrap .wc-block-checkout__main { grid-column: 1; grid-row: 1; }
    body.tng-custom-theme .tng-commerce-wrap .wc-block-checkout__sidebar { grid-column: 2; grid-row: 1; }
    body.tng-custom-theme .tng-commerce-wrap .wc-block-checkout__sidebar.is-sticky { top: calc(var(--tng-menu-top) + 16px); }
}
@media (max-width: 1023px) {
    body.tng-custom-theme .tng-commerce-wrap .wc-block-checkout .wc-block-components-sidebar-layout { display: flex; flex-direction: column; gap: 24px; }
    body.tng-custom-theme .tng-commerce-wrap .wc-block-checkout .wc-block-components-sidebar-layout > :is(.wc-block-components-main, .wc-block-components-sidebar) {
        width: 100%; min-width: 0; margin: 0; padding: 0;
    }
    body.tng-custom-theme .tng-commerce-wrap .wc-block-checkout__sidebar.is-sticky { position: static; }
}
@media (max-width: 640px) {
    .tng-commerce-wrap { padding-top: 32px; }
    body.tng-custom-theme .wc-block-checkout .wc-block-components-order-summary-item { column-gap: 12px; }
}
@media (max-width: 1024px) {
    .tng-header-inner { grid-template-columns: auto auto 1fr; gap: 12px; }
    .tng-brand { order: 1; }
    .tng-menu-toggle { display: block; order: 2; }
    .tng-header-actions { order: 3; justify-self: end; }
    .tng-primary-nav { position: fixed; top: var(--tng-menu-top); left: 12px; right: 12px; bottom: auto; z-index: 1003; display: none; width: auto; max-height: calc(100dvh - var(--tng-menu-top) - 16px); padding: 16px; overflow-y: auto; overscroll-behavior: contain; border-radius: 0 0 16px 16px; background: #fff; box-shadow: 0 18px 38px rgba(15, 23, 42, .17); }
    .tng-primary-nav.is-open { display: block; }
    .tng-primary-nav .tng-menu, .tng-primary-nav ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
    .tng-primary-nav a { display: block; min-height: 48px; padding: 12px 14px; font-size: 16px; }
    .tng-primary-nav .sub-menu { padding-left: 14px; }
    body:not(.tng-ui-ready) .tng-menu-toggle { display: none; }
    body:not(.tng-ui-ready) .tng-primary-nav { position: static; display: block; grid-column: 1 / -1; order: 4; max-height: none; padding: 10px 0; border: 0; box-shadow: none; }
}
@media (max-width: 760px) {
    .tng-group-grid, .tng-faq-grid { grid-template-columns: 1fr; gap: 28px; }
    .tng-group-pricing { padding: 20px; }
    .tng-shop-tools { flex-direction: column; align-items: stretch; gap: 16px; }
    .tng-shop-search { width: 100%; }
    .tng-shop-group-link { max-width: none; }
    .tng-group-copy .tng-button { width: 100%; }
    .tng-faq-list summary { padding: 16px; font-size: 15px; }
    .tng-faq-list details > p, .tng-faq-list details > .tngqd-bulk-table-wrap { margin: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    .tng-custom-theme *, .tng-custom-theme *::before, .tng-custom-theme *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
