/* Design review round 6, switch "info_pages": policy and information pages, contact,
   complaint, blog, and the 404 / 500 pages. Loaded only while the switch is on. The page rules
   sit under .tw-info-page, the class those pages add to <body> only while the switch is on,
   so no other page changes; the error pages are standalone and carry .tw-err-page. Colours
   fall back to the round 2 tokens' values when the "style_refresh" switch is off. */

body.tw-info-pages {
    --tw6-pink: var(--rf-pink, #FF1A58);
    --tw6-pink-600: var(--rf-pink-600, #EB0A4A);
    --tw6-pink-700: var(--rf-pink-700, #D6003F);
    --tw6-pink-100: var(--rf-pink-100, #FFE0E9);
    --tw6-pink-50: var(--rf-pink-50, #FFF0F4);
    --tw6-ink: var(--rf-ink, #1E2939);
    --tw6-body: var(--rf-body, #4A5565);
    --tw6-muted: var(--rf-muted, #6A7282);
    --tw6-line: #E3E6EB;
    --tw6-field: #FAFBFC;
    --tw6-green: #0B7A43;
}

/* ------------------------------------------------------------------ */
/* shared: page head, white page, cards                               */
/* ------------------------------------------------------------------ */

.tw-info-page .page-hero,
.tw-info-page .blog-page-hero,
.tw-info-page .bd-hero {
    margin: 0;
    padding: 24px 0 8px;
    background: #fff;
    color: var(--tw6-ink);
    text-align: left;
}

.tw-info-page .page-hero-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tw-info-page .page-hero-icon {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: var(--tw6-pink-50);
    color: var(--tw6-pink-600);
    font-size: 19px;
}

.tw-info-page .page-hero h1,
.tw-info-page .blog-page-hero h1,
.tw-info-page .bd-hero h1 {
    display: block;
    margin: 0 0 4px;
    color: var(--tw6-ink);
    font-size: clamp(1.35rem, 4.4vw, 1.9rem);
    font-weight: 800;
    line-height: 1.3;
}

.tw-info-page .blog-page-hero h1 i {
    color: var(--tw6-pink-600);
    opacity: 1 !important;
}

.tw-info-page .blog-page-hero p,
.tw-info-page .bd-hero-meta {
    color: var(--tw6-muted);
}

.tw-info-page .page-hero-breadcrumb,
.tw-info-page .hero-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--tw6-muted);
    font-size: 13px;
}

.tw-info-page .page-hero-breadcrumb a,
.tw-info-page .hero-breadcrumb a {
    color: var(--tw6-muted);
    text-decoration: none;
}

.tw-info-page .page-hero-breadcrumb strong,
.tw-info-page .hero-breadcrumb span:last-child {
    color: var(--tw6-ink);
    font-weight: 600;
    opacity: 1;
}

.tw-info-page .bd-hero .hero-breadcrumb {
    margin-bottom: 10px;
}

.tw-info-page .service-page-section,
.tw-info-page .blog-page,
.tw-info-page .blog-details-page {
    padding: 16px 0 44px;
    background: #fff;
}

/* ------------------------------------------------------------------ */
/* policy and information pages (/page/...)                           */
/* ------------------------------------------------------------------ */

.tw-info-page .static-page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

/* Grid items may shrink below their content, or the chip row widens the page. */
.tw-info-page .static-page-layout > * {
    min-width: 0;
}

/* On a phone the other pages are a row of chips above the text, not a card that pushes it down. */
.tw-info-page .static-page-sidebar {
    position: static;
    overflow: visible;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.tw-info-page .sps-head {
    display: none;
}

.tw-info-page .sps-list {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 2px 0 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tw-info-page .sps-list::-webkit-scrollbar {
    display: none;
}

.tw-info-page .sps-list li {
    flex: 0 0 auto;
}

.tw-info-page .sps-list li a {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--tw6-line);
    border-radius: 999px;
    background: #fff;
    color: var(--tw6-body);
    font-size: 14px;
    white-space: nowrap;
}

.tw-info-page .sps-list li a i {
    display: none;
}

.tw-info-page .sps-list li a:hover,
.tw-info-page .sps-list li a.active {
    border-color: var(--tw6-pink-600);
    background: var(--tw6-pink-50);
    color: var(--tw6-pink-700);
}

.tw-info-page .sps-list li a:focus-visible {
    outline: 2px solid var(--tw6-pink-600);
    outline-offset: 2px;
}

.tw-info-page .static-page-content {
    min-height: 0;
    border: 1px solid var(--tw6-line);
    border-radius: 20px;
    box-shadow: none;
}

/* The page head already carries the title. */
.tw-info-page .spc-header {
    display: none;
}

.tw-info-page .spc-body {
    padding: 22px 20px;
}

/* The live policy texts bring their own grey wrapper and white card (.shinery-page-wrapper,
   .policy-container, written in the admin editor). Inside the new card they would be a card
   in a card, so they are flattened; the reading width stays theirs. */
.tw-info-page .prose-content .shinery-page-wrapper {
    padding: 0;
    background: none;
}

.tw-info-page .prose-content .policy-container {
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.tw-info-page .prose-content .policy-header {
    margin-bottom: 28px;
}

/* Justified Bangla on a phone leaves wide gaps between words. */
.tw-info-page .prose-content p,
.tw-info-page .prose-content li {
    text-align: left;
}

.tw-info-page .prose-content .policy-header p {
    text-align: center;
}

.tw-info-page .prose-content p,
.tw-info-page .prose-content li {
    color: var(--tw6-body);
    font-size: 15.5px;
    line-height: 1.85;
}

.tw-info-page .prose-content h2,
.tw-info-page .prose-content h3,
.tw-info-page .prose-content h4 {
    color: var(--tw6-ink);
    font-weight: 700;
}

.tw-info-page .prose-content h2 {
    font-size: 19px;
}

.tw-info-page .prose-content a {
    color: var(--tw6-pink-700);
}

.tw-info-help {
    display: grid;
    gap: 14px;
    margin: 0 20px 20px;
    padding: 18px;
    border-radius: 16px;
    background: #F7F8FA;
}

.tw-info-help-title {
    margin: 0 0 4px;
    color: var(--tw6-ink);
    font-size: 16px;
    font-weight: 700;
}

.tw-info-help-sub {
    margin: 0;
    color: var(--tw6-muted);
    font-size: 14px;
    line-height: 1.6;
}

.tw-info-help-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.tw-info-help-wa,
.tw-info-help-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
}

.tw-info-help-wa {
    border: 1.5px solid #25D366;
    background: #fff;
    color: var(--tw6-green);
}

.tw-info-help-wa i {
    color: #25D366;
    font-size: 18px;
}

.tw-info-help-link {
    border: 1px solid var(--tw6-line);
    background: #fff;
    color: var(--tw6-ink);
}

.tw-info-help-wa:hover {
    background: #EFFBF3;
    color: var(--tw6-green);
}

.tw-info-help-link:hover {
    color: var(--tw6-pink-700);
}

.tw-info-help-wa:focus-visible,
.tw-info-help-link:focus-visible {
    outline: 2px solid var(--tw6-pink-600);
    outline-offset: 2px;
}

@media (min-width: 992px) {
    .tw-info-page .static-page-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 28px;
    }

    .tw-info-page .static-page-sidebar {
        position: sticky;
        top: calc(var(--notice-height, 0px) + 90px);
        padding: 8px;
        border: 1px solid var(--tw6-line);
        border-radius: 20px;
        background: #fff;
    }

    .tw-info-page .sps-head {
        display: block;
        padding: 8px 12px 6px;
        background: none;
        color: var(--tw6-muted);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .02em;
    }

    .tw-info-page .sps-head i {
        display: none;
    }

    .tw-info-page .sps-list {
        display: grid;
        gap: 2px;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .tw-info-page .sps-list li a {
        min-height: 42px;
        padding: 0 12px;
        border: 0;
        border-radius: 12px;
        white-space: normal;
    }

    .tw-info-page .spc-body {
        padding: 32px 36px;
    }

    .tw-info-help {
        grid-template-columns: 1fr auto;
        align-items: center;
        margin: 0 36px 32px;
        padding: 20px 22px;
    }

    .tw-info-help-actions {
        grid-template-columns: repeat(2, minmax(150px, auto));
    }
}

/* ------------------------------------------------------------------ */
/* contact and complaint                                              */
/* ------------------------------------------------------------------ */

.tw-info-page .contact-info-side,
.tw-info-page .complaint-info-panel {
    border: 1px solid var(--tw6-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: none;
    color: var(--tw6-ink);
}

.tw-info-page .contact-info-side h3,
.tw-info-page .complaint-info-head h3 {
    color: var(--tw6-ink);
    font-weight: 700;
}

.tw-info-page .contact-info-side > p,
.tw-info-page .complaint-info-head p {
    color: var(--tw6-muted);
    opacity: 1;
}

.tw-info-page .complaint-info-icon {
    background: var(--tw6-pink-50);
    color: var(--tw6-pink-600);
}

.tw-info-page .contact-info-item,
.tw-info-page .complaint-contact-item {
    border: 1px solid var(--tw6-line);
    border-radius: 14px;
    background: var(--tw6-field);
    color: var(--tw6-ink);
}

.tw-info-page .contact-info-item:hover,
.tw-info-page .complaint-contact-item:hover {
    border-color: var(--tw6-pink-100);
    background: var(--tw6-pink-50);
    color: var(--tw6-ink);
}

.tw-info-page .contact-info-item small,
.tw-info-page .cci-label {
    color: var(--tw6-muted);
    opacity: 1;
}

.tw-info-page .cii-icon,
.tw-info-page .cci-icon {
    background: var(--tw6-pink-50);
    color: var(--tw6-pink-600);
}

.tw-info-page .tw-info-wa .cii-icon,
.tw-info-page .tw-info-wa .cci-icon {
    background: #EFFBF3;
    color: #25D366;
    font-size: 18px;
}

.tw-info-page .tw-info-wa {
    border-color: #BBEFCD;
}

.tw-info-page .complaint-guarantee {
    border-color: var(--tw6-line);
    color: var(--tw6-body);
}

.tw-info-page .cg-item,
.tw-info-page .cg-item i {
    opacity: 1;
}

.tw-info-page .cg-item i {
    color: var(--tw6-pink-600);
}

.tw-info-page .contact-form-side,
.tw-info-page .complaint-form-panel {
    border: 1px solid var(--tw6-line);
    border-radius: 20px;
    box-shadow: none;
}

.tw-info-page .contact-form-side .cf-group input,
.tw-info-page .contact-form-side .cf-group textarea,
.tw-info-page .cf-input-wrap input,
.tw-info-page .cf-textarea-wrap textarea {
    border: 1px solid var(--tw6-line);
    border-radius: 14px;
    background: var(--tw6-field);
    font-size: 15px;
}

.tw-info-page .contact-form-side .cf-group input,
.tw-info-page .cf-input-wrap input {
    min-height: 52px;
}

.tw-info-page .contact-form-side .cf-group input:focus,
.tw-info-page .contact-form-side .cf-group textarea:focus,
.tw-info-page .cf-input-wrap input:focus,
.tw-info-page .cf-textarea-wrap textarea:focus {
    border-color: var(--tw6-pink-600);
    background: #fff;
    box-shadow: 0 0 0 3px var(--tw6-pink-100);
}

.tw-info-page .cf-group label,
.tw-info-page .cf-label {
    color: var(--tw6-ink);
    font-size: 14px;
    font-weight: 600;
}

.tw-info-page .cf-file-wrap {
    border-radius: 14px;
}

.tw-info-page .cf-btn,
.tw-info-page .cf-submit-btn {
    min-height: 52px;
    border-radius: 14px;
    background: var(--tw6-pink-600);
    font-size: 16px;
}

.tw-info-page .cf-btn:hover,
.tw-info-page .cf-submit-btn:hover {
    background: var(--tw6-pink-700);
}

/* ------------------------------------------------------------------ */
/* blog                                                               */
/* ------------------------------------------------------------------ */

.tw-info-page .blog-card {
    border: 1px solid var(--tw6-line);
    border-radius: 20px;
    box-shadow: none;
}

.tw-info-empty {
    display: grid;
    grid-column: 1 / -1;
    justify-items: center;
    gap: 8px;
    padding: 40px 20px;
    border: 1px dashed var(--tw6-line);
    border-radius: 20px;
    text-align: center;
}

.tw-info-empty-icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 18px;
    background: var(--tw6-pink-50);
    color: var(--tw6-pink-600);
    font-size: 22px;
}

.tw-info-empty h2 {
    margin: 6px 0 0;
    color: var(--tw6-ink);
    font-size: 19px;
    font-weight: 700;
}

.tw-info-empty p {
    max-width: 380px;
    margin: 0 0 8px;
    color: var(--tw6-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.tw-info-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    padding: 0 22px;
    border-radius: 14px;
    background: var(--tw6-pink-600);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.tw-info-btn:hover {
    background: var(--tw6-pink-700);
    color: #fff;
}

.tw-info-btn:focus-visible {
    outline: 2px solid var(--tw6-pink-600);
    outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* 404 and 500 (standalone pages)                                     */
/* ------------------------------------------------------------------ */

.tw-err-page {
    min-height: 100vh;
    margin: 0;
    background: #fff;
    color: var(--tw6-ink);
    font-family: 'Hind Siliguri', 'Roboto', sans-serif;
}

.tw-err-page *,
.tw-err-page *::before,
.tw-err-page *::after {
    box-sizing: border-box;
}

.tw-err {
    display: grid;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    justify-items: center;
    gap: 22px;
}

.tw-err-logo img {
    display: block;
    height: 44px;
    width: auto;
}

.tw-err-logo span {
    color: var(--tw6-ink);
    font-size: 20px;
    font-weight: 700;
}

.tw-err-card {
    display: grid;
    width: 100%;
    gap: 12px;
    padding: 28px 20px;
    border: 1px solid var(--tw6-line);
    border-radius: 24px;
    text-align: center;
}

.tw-err-code {
    margin: 0;
    background: linear-gradient(135deg, var(--tw6-pink-600), #FF7AA0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 84px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
}

.tw-err-card h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
}

.tw-err-text {
    margin: 0 auto 4px;
    max-width: 420px;
    color: var(--tw6-body);
    font-size: 15px;
    line-height: 1.7;
}

.tw-err-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.tw-err-search {
    display: flex;
    width: 100%;
    min-height: 52px;
    overflow: hidden;
    border: 1px solid var(--tw6-line);
    border-radius: 14px;
    background: var(--tw6-field);
}

.tw-err-search:focus-within {
    border-color: var(--tw6-pink-600);
    box-shadow: 0 0 0 3px var(--tw6-pink-100);
}

.tw-err-search input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--tw6-ink);
    font: inherit;
    font-size: 16px;
}

.tw-err-search button {
    flex: 0 0 52px;
    border: 0;
    background: var(--tw6-pink-600);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
}

.tw-err-label {
    margin: 6px 0 0;
    color: var(--tw6-muted);
    font-size: 13px;
    font-weight: 600;
}

.tw-err-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.tw-err-chips a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 16px;
    border: 1px solid var(--tw6-line);
    border-radius: 999px;
    color: var(--tw6-body);
    font-size: 14px;
    text-decoration: none;
}

.tw-err-chips a:hover {
    border-color: var(--tw6-pink-600);
    background: var(--tw6-pink-50);
    color: var(--tw6-pink-700);
}

.tw-err-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.tw-err-btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    background: var(--tw6-pink-600);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.tw-err-btn:hover {
    background: var(--tw6-pink-700);
}

.tw-err-btn-light {
    border: 1px solid var(--tw6-line);
    background: #fff;
    color: var(--tw6-ink);
}

.tw-err-btn-light:hover {
    background: #F7F8FA;
}

.tw-err-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    color: var(--tw6-green);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
}

.tw-err-wa i {
    color: #25D366;
    font-size: 18px;
}

.tw-err a:focus-visible,
.tw-err button:focus-visible {
    outline: 2px solid var(--tw6-pink-600);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .tw-err {
        padding-top: 48px;
    }

    .tw-err-card {
        padding: 40px 44px;
    }

    .tw-err-code {
        font-size: 112px;
    }

    .tw-err-card h1 {
        font-size: 26px;
    }
}

/* Storefront v3 (QA X3, PB002 Q1: mockup 15): the big flat pink code, and the shopper's
   light / black theme (error-page.blade.php adds .tw-storefront-v3 and data-sb-theme). */
body.tw-err-page.tw-storefront-v3 .tw-err-code {
    background: none;
    -webkit-text-fill-color: #E0004A;
    color: #E0004A;
    font-size: clamp(88px, 24vw, 120px);
    font-family: 'Roboto', 'Hind Siliguri', sans-serif;
}
html[data-sb-theme="dark"] body.tw-err-page.tw-storefront-v3 {
    background: #000000;
    color: #F2F2F2;
    color-scheme: dark;
}
html[data-sb-theme="dark"] body.tw-err-page.tw-storefront-v3 .tw-err-card { border-color: #2B2B2B; background: #0E0E0E; }
html[data-sb-theme="dark"] body.tw-err-page.tw-storefront-v3 :is(.tw-err-card h1, .tw-err-logo span) { color: #F2F2F2; }
html[data-sb-theme="dark"] body.tw-err-page.tw-storefront-v3 .tw-err-text { color: #CFCFCF; }
html[data-sb-theme="dark"] body.tw-err-page.tw-storefront-v3 .tw-err-label { color: #A8A8A8; }
html[data-sb-theme="dark"] body.tw-err-page.tw-storefront-v3 .tw-err-search { border-color: #3D3D3D; background: #181818; }
html[data-sb-theme="dark"] body.tw-err-page.tw-storefront-v3 .tw-err-search input { color: #F2F2F2; }
html[data-sb-theme="dark"] body.tw-err-page.tw-storefront-v3 .tw-err-search input::placeholder { color: #A8A8A8; }
html[data-sb-theme="dark"] body.tw-err-page.tw-storefront-v3 .tw-err-chips a { border-color: #2B2B2B; color: #CFCFCF; }
html[data-sb-theme="dark"] body.tw-err-page.tw-storefront-v3 .tw-err-chips a:hover { border-color: #FF4D7D; background: #2A0A14; color: #FF4D7D; }
html[data-sb-theme="dark"] body.tw-err-page.tw-storefront-v3 .tw-err-btn-light { border-color: #3D3D3D; background: #181818; color: #F2F2F2; }
html[data-sb-theme="dark"] body.tw-err-page.tw-storefront-v3 .tw-err-btn-light:hover { background: #1F1F1F; }
html[data-sb-theme="dark"] body.tw-err-page.tw-storefront-v3 .tw-err-wa { color: #3DD68C; }
/* S2 W8: the WhatsApp link is a 24 px target (WCAG 2.5.8); the error page does not load sb-ui.css */
html[data-sb-theme] body.tw-err-page.tw-storefront-v3 .tw-err-wa { min-height: 24px; padding: 4px 0; }
html[data-sb-theme="dark"] body.tw-err-page.tw-storefront-v3 .tw-err-logo img { filter: invert(1) hue-rotate(180deg) brightness(1.1); }
