/* Divy light theme (CLAUDE.md §3B). Loaded on both panels via Brand::themeAssets(). */
:root {
    --divy-navy: #14317D;
    --divy-navy-dark: #0E2460;
    --divy-bg: #F5F7FA;
    --divy-text: #1F2937;
    --divy-cream: #FFF4E0;
    --divy-orange: #F5A623;
}

body.fi-body {
    background: var(--divy-bg);
    color: var(--divy-text);
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
}

/* Sidebar: navy with white text; logo area stays white so the logo reads well */
.fi-sidebar {
    background: var(--divy-navy) !important;
}
.fi-sidebar-header {
    background: #FFFFFF !important;
}
.fi-sidebar .fi-sidebar-item-label,
.fi-sidebar .fi-sidebar-item-icon,
.fi-sidebar .fi-sidebar-group-label {
    color: #FFFFFF !important;
}
.fi-sidebar .fi-sidebar-item-btn:hover,
.fi-sidebar .fi-sidebar-item.fi-active .fi-sidebar-item-btn {
    background: var(--divy-navy-dark) !important;
}
.fi-sidebar .fi-sidebar-item.fi-active .fi-sidebar-item-label,
.fi-sidebar .fi-sidebar-item.fi-active .fi-sidebar-item-icon {
    color: var(--divy-orange) !important;
}

/* Primary buttons: solid Divy navy with white text (Filament would pick a lighter shade) */
.fi-btn.fi-color-primary:not(.fi-outlined):not(.fi-btn-link) {
    background: var(--divy-navy) !important;
    color: #FFFFFF !important;
}
.fi-btn.fi-color-primary:not(.fi-outlined):not(.fi-btn-link):hover {
    background: var(--divy-navy-dark) !important;
}
.fi-btn.fi-color-primary:not(.fi-outlined) .fi-icon {
    color: #FFFFFF !important;
}
/* Success / danger buttons: solid green / red with white text */
.fi-btn.fi-color-success:not(.fi-outlined):not(.fi-btn-link) {
    background: #1E8E3E !important;
    color: #FFFFFF !important;
}
.fi-btn.fi-color-success:not(.fi-outlined):not(.fi-btn-link):hover {
    background: #17702F !important;
}
.fi-btn.fi-color-danger:not(.fi-outlined):not(.fi-btn-link) {
    background: #C62828 !important;
    color: #FFFFFF !important;
}
.fi-btn.fi-color-danger:not(.fi-outlined):not(.fi-btn-link):hover {
    background: #A11F1F !important;
}
.fi-btn.fi-color-success:not(.fi-outlined) .fi-icon,
.fi-btn.fi-color-danger:not(.fi-outlined) .fi-icon {
    color: #FFFFFF !important;
}

a.fi-link.fi-color-primary,
.fi-link.fi-color-primary {
    color: var(--divy-navy) !important;
}

/* "Pending approval" = orange #F5A623 (§3B, changed 26 Oct 2026). Dark text for readability. */
.fi-badge.fi-color-accent {
    background: var(--divy-orange) !important;
    color: #1F2937 !important;
    --tw-ring-color: var(--divy-orange) !important;
}
.fi-badge.fi-color-accent .fi-badge-label,
.fi-badge.fi-color-accent .fi-icon {
    color: #1F2937 !important;
}
.fi-callout.fi-color-accent {
    background: #FFF4E0 !important;
    border: 1px solid var(--divy-orange) !important;
}
.fi-callout.fi-color-accent .fi-callout-heading,
.fi-callout.fi-color-accent .fi-icon {
    color: #B26B00 !important;
}

/* Table header: light cream */
.fi-ta-header-cell,
.fi-ta-table thead tr {
    background: var(--divy-cream) !important;
}

/* Login / register cards on the grey page */
.fi-simple-layout {
    background: var(--divy-bg);
}

/* Catalogue Setup tree (CLAUDE.md §4D) */
.divy-tree { display: grid; gap: 1rem; }
.divy-node { border: 1px solid #E5E7EB; border-radius: .5rem; overflow: hidden; }
.divy-node-head { display: flex; justify-content: space-between; align-items: center; padding: .5rem .75rem; background: #FFF4E0; font-weight: 600; color: #1F2937; }
.divy-line { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .4rem .75rem; border-top: 1px solid #F3F4F6; font-size: .875rem; flex-wrap: wrap; }
.divy-options { padding-left: 1.75rem; background: #F5F7FA; }
.divy-actions { display: inline-flex; gap: .75rem; align-items: center; }
.divy-count { display: inline-block; margin-left: .35rem; padding: 0 .45rem; border-radius: 9999px; background: #E8ECF6; color: #14317D; font-size: .75rem; font-weight: 600; }
.divy-tag { display: inline-block; margin-left: .35rem; padding: 0 .45rem; border-radius: 9999px; background: #F3F4F6; color: #6B7280; font-size: .75rem; }
.divy-muted { color: #6B7280; font-size: .8rem; }
.divy-hidden > span:first-child { opacity: .55; }

/* Products CSV preview (CLAUDE.md §4D.5) */
.divy-callout-danger { margin-bottom: .75rem; padding: .6rem .8rem; border-radius: .5rem; background: #FDECEC; color: #C62828; font-weight: 600; }
.divy-callout-ok { margin-bottom: .75rem; padding: .6rem .8rem; border-radius: .5rem; background: #E8F5EC; color: #1E8E3E; font-weight: 600; }
.divy-csv-table { max-height: 26rem; overflow: auto; border: 1px solid #E5E7EB; border-radius: .5rem; }
.divy-csv-table table { width: 100%; font-size: .825rem; border-collapse: collapse; }
.divy-csv-table th { position: sticky; top: 0; background: #FFF4E0; text-align: left; padding: .4rem .6rem; }
.divy-csv-table td { padding: .4rem .6rem; border-top: 1px solid #F3F4F6; vertical-align: top; }
.divy-row-error td { background: #FFF7F7; color: #C62828; }
.divy-ok { color: #1E8E3E; font-weight: 600; }

/* Compact products / kits lists (padding lives on the inner .fi-ta-col) */
.fi-resource-products .fi-ta-cell, .fi-resource-kits .fi-ta-cell { padding: 0 !important; }
.fi-resource-products .fi-ta-col, .fi-resource-kits .fi-ta-col,
.fi-resource-products .fi-ta-text, .fi-resource-kits .fi-ta-text { padding: .45rem .55rem !important; }
.fi-resource-products .fi-ta-header-cell, .fi-resource-kits .fi-ta-header-cell { padding: .6rem .55rem !important; }
.fi-resource-products .fi-ta-table, .fi-resource-kits .fi-ta-table { font-size: .875rem; }
.fi-resource-products .fi-ta-text-item, .fi-resource-kits .fi-ta-text-item { white-space: nowrap; }

/* Rate Update screen (CLAUDE.md §5) */
.divy-rate-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.divy-rate-tabs { display: flex; gap: .25rem; flex-wrap: wrap; background: #fff; border: 1px solid #E5E7EB; border-radius: .6rem; padding: .25rem; }
.divy-rate-tab { padding: .35rem .8rem; border-radius: .45rem; font-size: .875rem; color: #4B5563; }
.divy-rate-tab:hover { background: #F5F7FA; }
.divy-rate-tab.is-active { background: #E8ECF6; color: #14317D; font-weight: 600; }
.divy-rate-updated { font-size: .875rem; color: #4B5563; }
.divy-rate-card { background: #fff; border: 1px solid #E5E7EB; border-radius: .75rem; overflow: hidden; }
.divy-rate-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.divy-rate-table th { background: #FFF4E0; text-align: left; padding: .55rem .7rem; font-weight: 600; color: #1F2937; white-space: nowrap; }
.divy-rate-table td { padding: .45rem .7rem; border-top: 1px solid #F3F4F6; vertical-align: middle; }
.divy-rate-table tr.is-changed td { background: #FFFAF0; }
.divy-rate-name { font-weight: 600; max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divy-rate-sku { color: #6B7280; font-size: .78rem; }
.divy-rate-input { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid #D1D5DB; border-radius: .45rem; padding: .15rem .5rem; background: #fff; }
.divy-rate-input input { width: 6.5rem; border: 0; outline: 0; padding: .2rem 0; font-size: .875rem; background: transparent; }
.divy-rate-input small { color: #6B7280; }
.divy-rate-input.is-changed, .divy-rate-select.is-changed { border-color: #F5A623; box-shadow: 0 0 0 2px #FDE7BF; }
.divy-rate-select { border: 1px solid #D1D5DB; border-radius: .45rem; padding: .25rem 1.8rem .25rem .5rem; font-size: .85rem; }
.divy-rate-strong { font-weight: 600; white-space: nowrap; }
.divy-rate-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem .9rem; border-top: 1px solid #E5E7EB; background: #F5F7FA; flex-wrap: wrap; }
.divy-rate-pending { color: #B26B00; }
.divy-rate-problem { color: #C62828; font-size: .85rem; margin: .2rem 0; }
.divy-callout-warn { margin-bottom: .75rem; padding: .6rem .8rem; border-radius: .5rem; background: #FFF4E0; color: #8A5300; font-weight: 600; }
.divy-row-warn td { background: #FFFAF0; color: #8A5300; }
.divy-rate-table tr.divy-rate-group td { background: #F5F7FA; font-weight: 700; color: #14317D; padding-top: .5rem; padding-bottom: .5rem; }

/* Rate History page */
.divy-hist-filters { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.divy-hist-filters label { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; color: #4B5563; }
.divy-hist-filters select { min-width: 16rem; }
.divy-hist-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.divy-hist-card { background: #fff; border: 1px solid #E5E7EB; border-radius: .75rem; padding: .9rem 1rem; }
.divy-hist-label { font-size: .78rem; color: #6B7280; }
.divy-hist-value { font-size: 1.35rem; font-weight: 700; color: #1F2937; }
.divy-hist-value small { font-size: .8rem; color: #6B7280; font-weight: 500; }
.divy-hist-sub { font-size: .8rem; color: #6B7280; }
.is-up { color: #C62828 !important; }
.is-down { color: #1E8E3E !important; }
.divy-link { color: #14317D; font-weight: 600; font-size: .85rem; }

/* Partner catalogue + product page */
.divy-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; }
.divy-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #E5E7EB; border-radius: .75rem; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.divy-card:hover { border-color: #14317D; box-shadow: 0 4px 14px rgba(20,49,125,.12); }
.divy-card-img { position: relative; aspect-ratio: 4 / 3; background: #F5F7FA; display: flex; align-items: center; justify-content: center; }
.divy-card-img img { width: 100%; height: 100%; object-fit: contain; }
.divy-card-img img.is-placeholder, .divy-detail-main.is-placeholder { width: 40%; height: auto; opacity: .35; }
.divy-card-badge { position: absolute; top: .5rem; left: .5rem; padding: .1rem .55rem; border-radius: 9999px; font-size: .72rem; font-weight: 600; }
.divy-card-badge.is-inline { position: static; display: inline-block; align-self: flex-start; margin-right: .35rem; }
.divy-card-badge.is-available { background: #E8F5EC; color: #1E8E3E; }
.divy-card-badge.is-request { background: #FFF4E0; color: #B26B00; }
.divy-card-body { padding: .75rem .9rem .9rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.divy-card-brand { font-size: .75rem; color: #6B7280; text-transform: uppercase; letter-spacing: .03em; }
.divy-card-name { font-weight: 600; color: #1F2937; line-height: 1.3; }
.divy-card-specs { font-size: .8rem; color: #4B5563; }
.divy-card-price { margin-top: auto; padding-top: .4rem; display: flex; flex-direction: column; color: #14317D; }
.divy-card-price b { font-size: 1.15rem; }
.divy-card-price small { color: #6B7280; }
.divy-card-sub { font-size: .8rem; color: #1F2937; font-weight: 600; }
.divy-tag-accent { display: inline-block; align-self: flex-start; width: fit-content; margin: .1rem .25rem .1rem 0; padding: .05rem .5rem; border-radius: 9999px; background: #FFF4E0; color: #8A5300; font-size: .72rem; font-weight: 600; }
.divy-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem; }
@media (max-width: 900px) { .divy-detail { grid-template-columns: 1fr; } }
.divy-detail-media { background: #fff; border: 1px solid #E5E7EB; border-radius: .75rem; padding: 1rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.divy-detail-main { width: 100%; max-height: 26rem; object-fit: contain; }
.divy-detail-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.divy-detail-thumbs img { width: 3.5rem; height: 3.5rem; object-fit: cover; border: 1px solid #E5E7EB; border-radius: .4rem; }
.divy-detail-info { display: flex; flex-direction: column; gap: .8rem; }
.divy-detail-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem; }
.divy-detail-price { background: #fff; border: 1px solid #E5E7EB; border-radius: .75rem; padding: .75rem 1rem; }
.divy-detail-cta { display: flex; gap: .6rem; margin-top: .6rem; flex-wrap: wrap; }
.divy-btn { display: inline-block; padding: .45rem .9rem; border-radius: .5rem; background: #14317D; color: #fff !important; font-weight: 600; font-size: .875rem; }
.divy-btn.is-green { background: #1E8E3E; }
.divy-spec-table { width: 100%; font-size: .875rem; border-collapse: collapse; background: #fff; border: 1px solid #E5E7EB; border-radius: .5rem; overflow: hidden; }
.divy-spec-table th { text-align: left; width: 40%; padding: .45rem .75rem; background: #F5F7FA; font-weight: 500; color: #4B5563; border-top: 1px solid #F3F4F6; }
.divy-spec-table td { padding: .45rem .75rem; border-top: 1px solid #F3F4F6; }
.divy-variant-options { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .3rem; }
.divy-kit-items { list-style: disc; padding-left: 1.2rem; font-size: .9rem; }
.divy-video { aspect-ratio: 16 / 9; max-width: 56rem; border-radius: .75rem; overflow: hidden; background: #000; }
.divy-video iframe { width: 100%; height: 100%; border: 0; }

/* Partner catalogue v2: hero, pills, toolbar, richer cards */
.divy-hero { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 1.5rem; border-radius: 1rem; color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(245,166,35,.45), transparent 45%), linear-gradient(120deg, #14317D 0%, #1d47a8 60%, #2a5bc9 100%); box-shadow: 0 8px 24px rgba(20,49,125,.18); }
.divy-hero-kicker { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.divy-hero-title { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.divy-hero-sub { font-size: .85rem; opacity: .85; margin-top: .2rem; }
.divy-hero-cta { display: inline-flex; align-items: center; gap: .45rem; background: #fff; color: #14317D !important; font-weight: 700; padding: .55rem 1rem; border-radius: 9999px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.divy-hero-cta-icon { width: 1.15rem; height: 1.15rem; color: #1E8E3E; }
.divy-pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.divy-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 9999px; background: #fff; border: 1px solid #E5E7EB; font-size: .875rem; font-weight: 500; color: #374151; transition: all .15s; }
.divy-pill:hover { border-color: #14317D; color: #14317D; }
.divy-pill.is-active { background: #14317D; border-color: #14317D; color: #fff; box-shadow: 0 4px 10px rgba(20,49,125,.25); }
.divy-pill-count { min-width: 1.4rem; padding: 0 .4rem; border-radius: 9999px; background: #EEF1F8; color: #14317D; font-size: .72rem; font-weight: 700; text-align: center; }
.divy-pill.is-active .divy-pill-count { background: rgba(255,255,255,.2); color: #fff; }
.divy-toolbar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; background: #fff; border: 1px solid #E5E7EB; border-radius: .9rem; padding: .6rem .75rem; }
.divy-search { position: relative; flex: 1 1 16rem; max-width: 26rem; }
.divy-search input { width: 100%; padding: .5rem .75rem .5rem 2.2rem; border: 1px solid #E5E7EB; border-radius: .6rem; font-size: .9rem; background: #F9FAFB; }
.divy-search input:focus { outline: 2px solid #C7D2EE; background: #fff; }
.divy-search-icon { position: absolute; left: .65rem; top: 50%; transform: translateY(-50%); width: 1.1rem; height: 1.1rem; color: #9CA3AF; }
.divy-filter { padding: .45rem 2rem .45rem .7rem; border: 1px solid #E5E7EB; border-radius: .6rem; font-size: .85rem; background-color: #F9FAFB; }
.divy-toolbar-count { margin-left: auto; font-size: .82rem; color: #6B7280; }
.divy-cards { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.1rem; }
.divy-cards-group { grid-column: 1 / -1; margin-top: .4rem; font-size: 1.05rem; font-weight: 700; color: #14317D; display: flex; align-items: center; gap: .6rem; }
.divy-cards-group::after { content: ""; flex: 1; height: 1px; background: #E5E7EB; }
.divy-card { border-radius: 1rem; box-shadow: 0 1px 3px rgba(16,24,40,.06); }
.divy-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,49,125,.14); }
.divy-card { transition: transform .15s, box-shadow .15s, border-color .15s; }
.divy-card-img { aspect-ratio: 16 / 10; }
.divy-card-img.is-kit { background: linear-gradient(135deg, #FFF4E0, #FDE2B3); }
.divy-card-img.is-solar_panel { background: linear-gradient(135deg, #E8EEFB, #C9D6F5); }
.divy-card-img.is-inverter { background: linear-gradient(135deg, #E9F7EE, #C6EBD3); }
.divy-card-img.is-cable { background: linear-gradient(135deg, #FDECEC, #F8CFCF); }
.divy-card-img.is-earthing { background: linear-gradient(135deg, #F1EDE7, #E0D5C5); }
.divy-card-img.is-dwc_pipe { background: linear-gradient(135deg, #EEF0F3, #D6DBE2); }
.divy-card-img.is-lightning_arrestor { background: linear-gradient(135deg, #FFF8DB, #FBE9A6); }
.divy-card-icon { width: 3.6rem; height: 3.6rem; color: #14317D; opacity: .55; }
.divy-card-badge { box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.divy-card-body { gap: .45rem; padding: .9rem 1rem 1rem; }
.divy-card-name { font-size: 1rem; }
.divy-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.divy-chips span { padding: .1rem .5rem; border-radius: .4rem; background: #F3F4F6; color: #374151; font-size: .75rem; font-weight: 500; }
.divy-price-box { margin-top: auto; border: 1px solid #E5E7EB; border-radius: .7rem; overflow: hidden; }
.divy-price-main { display: flex; flex-direction: column; padding: .55rem .75rem; color: #14317D; }
.divy-price-main b { font-size: 1.25rem; }
.divy-price-main small { color: #6B7280; }
.divy-price-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #6B7280; font-weight: 600; }
.divy-price-sub { padding: 0 .75rem .5rem; font-size: .82rem; font-weight: 600; color: #1F2937; }
.divy-price-lot { display: flex; flex-direction: column; padding: .55rem .75rem; background: #FFF4E0; border-top: 1px solid #FBE3B8; color: #1F2937; }
.divy-price-lot b { font-size: 1.05rem; color: #8A5300; }
.divy-price-lot small { color: #8A5300; opacity: .85; font-size: .75rem; }
.divy-card-updated { display: flex; align-items: center; gap: .3rem; font-size: .75rem; color: #6B7280; }
.divy-card-updated-icon { width: .9rem; height: .9rem; }
.divy-empty { grid-column: 1 / -1; padding: 2rem; text-align: center; color: #6B7280; background: #fff; border: 1px dashed #D1D5DB; border-radius: 1rem; }

/* OTP testing-mode reminder (remove with the real OTP provider) */
.divy-testing-banner { margin-bottom: 1rem; padding: .8rem 1rem; border: 2px dashed #C62828; border-radius: .6rem; background: #FDECEC; color: #C62828; font-weight: 800; text-align: center; letter-spacing: .02em; }

/* Edit icon always visible: record-actions column sticks to the right edge when the table scrolls */
.fi-resource-products .fi-ta-table td:has(> .fi-ta-actions), .fi-resource-products .fi-ta-table th.fi-ta-actions-header-cell,
.fi-resource-kits .fi-ta-table td:has(> .fi-ta-actions), .fi-resource-kits .fi-ta-table th.fi-ta-actions-header-cell,
.fi-resource-partners .fi-ta-table td:has(> .fi-ta-actions), .fi-resource-partners .fi-ta-table th.fi-ta-actions-header-cell {
  position: sticky; right: 0; z-index: 1; background: #fff; box-shadow: -6px 0 8px -6px rgba(16,24,40,.18);
}
.fi-resource-products .fi-ta-table th.fi-ta-actions-header-cell, .fi-resource-kits .fi-ta-table th.fi-ta-actions-header-cell,
.fi-resource-partners .fi-ta-table th.fi-ta-actions-header-cell { background: #FFF4E0; }
.fi-resource-products .fi-ta-table tr:nth-child(even) td:has(> .fi-ta-actions) { background: #F9FAFB; }

/* Partner Home: highlights, videos, testimonials; About Divy page */
.divy-home { display: flex; flex-direction: column; gap: 1rem; }
.divy-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem; }
.divy-highlight { padding: .8rem 1rem; border-radius: .8rem; background: #fff; border: 1px solid #E5E7EB; border-left: 4px solid #F5A623; font-weight: 600; color: #14317D; }
.divy-video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; }
.divy-video-title { margin-top: .4rem; font-weight: 600; }
.divy-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.divy-testimonial { margin: 0; padding: 1rem; border-radius: .8rem; background: #F5F7FA; display: flex; flex-direction: column; gap: .6rem; }
.divy-testimonial blockquote { margin: 0; font-size: .95rem; color: #1F2937; }
.divy-testimonial figcaption { display: flex; align-items: center; gap: .6rem; font-size: .85rem; }
.divy-testimonial figcaption img, .divy-avatar { width: 2.2rem; height: 2.2rem; border-radius: 9999px; object-fit: cover; }
.divy-avatar { display: inline-flex; align-items: center; justify-content: center; background: #14317D; color: #fff; font-weight: 700; }
.divy-stars { color: #F5A623; letter-spacing: .1em; }
.divy-about-short, .divy-about-para { color: #374151; line-height: 1.6; }
.divy-about-para + .divy-about-para { margin-top: .7rem; }
.divy-about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .divy-about-grid { grid-template-columns: 1fr; } }
.divy-about-main, .divy-about-side { display: flex; flex-direction: column; gap: 1rem; }
.divy-contact-list { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.divy-socials { display: flex; gap: .8rem; flex-wrap: wrap; }
.divy-copy { margin-left: .5rem; font-size: .72rem; font-weight: 600; color: #14317D; border: 1px solid #C7D2EE; border-radius: .35rem; padding: 0 .4rem; }
.divy-qr { margin-top: .7rem; width: 10rem; border: 1px solid #E5E7EB; border-radius: .5rem; }

/* Legal: footer, accept page, document body */
.divy-footer { padding: 1rem; text-align: center; font-size: .8rem; color: #6B7280; }
.divy-footer a { color: #14317D; font-weight: 500; }
.divy-legal-body h2, .divy-legal-body h3 { color: #14317D; font-weight: 700; margin-top: 1rem; }
.divy-legal-body p, .divy-legal-body li { color: #374151; line-height: 1.65; margin-top: .4rem; }
.divy-legal-body ul { list-style: disc; padding-left: 1.2rem; }
.divy-legal-scroll { max-height: 22rem; overflow: auto; padding-right: .5rem; }
.divy-accept-box { background: #fff; border: 1px solid #E5E7EB; border-radius: .9rem; padding: 1rem 1.2rem; }
.divy-accept-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.divy-accept-check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; }

/* Orders: buy box, order page, timeline */
.divy-buy-box { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem; background: #fff; border: 1px solid #E5E7EB; border-radius: .9rem; padding: .9rem 1rem; }
.divy-buy-options { display: flex; gap: .4rem; flex-basis: 100%; }
.divy-buy-options .divy-pill { cursor: pointer; }
.divy-buy-qty { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; color: #4B5563; }
.divy-buy-qty input { width: 8rem; padding: .45rem .6rem; border: 1px solid #D1D5DB; border-radius: .5rem; font-size: .95rem; }
.divy-order { display: flex; flex-direction: column; gap: 1rem; }
.divy-order-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.divy-rate-table tfoot td { border-top: 2px solid #E5E7EB; background: #F9FAFB; padding: .55rem .7rem; }
.divy-timeline { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid #E5E7EB; display: flex; flex-direction: column; gap: .8rem; }
.divy-timeline li { position: relative; padding-left: .6rem; }
.divy-timeline-dot { position: absolute; left: -1.45rem; top: .35rem; width: .8rem; height: .8rem; border-radius: 9999px; background: #14317D; border: 2px solid #fff; box-shadow: 0 0 0 2px #C7D2EE; }
.divy-full { width: 100%; justify-content: center; }
.divy-doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.divy-timeline li.is-internal { background: #FFFAF0; border-radius: .5rem; padding: .3rem .6rem; }
.divy-tag-internal { display: inline-block; padding: 0 .45rem; border-radius: 9999px; background: #FDE7BF; color: #8A5300; font-size: .7rem; font-weight: 700; }
.divy-field-note { margin-top: .2rem; font-size: .75rem; color: #8A5300; background: #FFF4E0; border-radius: .35rem; padding: .15rem .45rem; display: inline-block; }


/* ---- §19.1 delivery estimate ---------------------------------------------------------------- */
.divy-card-delivery { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: #1E8E3E; font-weight: 600; margin-top: .35rem; }
.divy-card-delivery.is-detail { font-size: .9rem; margin: .6rem 0; }

/* ---- §19.3 mobile polish -------------------------------------------------------------------- */
.divy-nowrap, .divy-nowrap .fi-badge, .divy-rate-table .fi-badge { white-space: nowrap; overflow: visible; text-overflow: clip; max-width: none; }
.divy-row-actions { white-space: nowrap; }
.divy-bottom-nav { display: none; }

@media (max-width: 767px) {
    /* Tables marked .is-stack become one card per row */
    .divy-rate-table.is-stack thead { display: none; }
    .divy-rate-table.is-stack, .divy-rate-table.is-stack tbody, .divy-rate-table.is-stack tr, .divy-rate-table.is-stack td { display: block; width: 100%; }
    .divy-rate-table.is-stack tr { border: 1px solid #E5E7EB; border-radius: .75rem; padding: .5rem .75rem; margin-bottom: .75rem; background: #FFFFFF; }
    .divy-rate-table.is-stack td { border: 0; padding: .3rem 0; display: flex; justify-content: space-between; align-items: center; gap: .75rem; text-align: right; }
    .divy-rate-table.is-stack td::before { content: attr(data-label); font-weight: 600; color: #6B7280; text-align: left; flex: none; }
    .divy-rate-table.is-stack td[data-label=""]::before { content: none; }
    .divy-rate-table.is-stack td[data-label="Product"] { display: block; text-align: left; }
    .divy-rate-table.is-stack td[data-label="Product"]::before { content: none; }
    .divy-row-actions { justify-content: flex-end; gap: 1rem; }

    /* Tap targets ≥ 44px */
    .fi-body .fi-btn, .divy-link, .divy-rate-tab, .divy-pill, .divy-rate-table input, .divy-rate-select { min-height: 44px; }
    .divy-row-actions .divy-link { display: inline-flex; align-items: center; }

    /* Bottom bar: Home, Products, Cart, Orders, Profile */
    .divy-bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #FFFFFF;
        border-top: 1px solid #E5E7EB; box-shadow: 0 -2px 10px rgba(0,0,0,.06); padding-bottom: env(safe-area-inset-bottom); }
    .divy-bottom-nav-item { flex: 1; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: .15rem; font-size: .7rem; font-weight: 600; color: #6B7280; position: relative; text-decoration: none; }
    .divy-bottom-nav-item.is-active { color: #14317D; }
    .divy-bottom-nav-icon { width: 1.4rem; height: 1.4rem; }
    .divy-bottom-nav-badge { position: absolute; top: 6px; left: 55%; background: #F5A623; color: #1F2937; font-style: normal;
        font-size: .65rem; font-weight: 700; border-radius: 999px; min-width: 1.1rem; padding: 0 .3rem; text-align: center; }
    body.fi-body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}


/* ---- §19.4 Order again row + no-photo icon on product page ------------------------------------ */
.divy-again { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; }
.divy-again-card { border: 1px solid #E5E7EB; border-radius: .75rem; padding: .75rem; background: #FFFFFF; display: flex; flex-direction: column; gap: .4rem; }
.divy-again-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; text-decoration: none; color: #14317D; }
.divy-again-items { font-size: .85rem; flex: 1; }
.divy-again-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.divy-detail-noimg { width: 100%; aspect-ratio: 4 / 3; border-radius: .75rem; display: flex; align-items: center; justify-content: center; }
.divy-detail-noimg .divy-card-icon { width: 4rem; height: 4rem; color: #14317D; opacity: .55; }


/* ---- §19.5 bank details with one-tap copy --------------------------------------------------- */
.divy-bank-box { margin: .4rem 0 .6rem 1.6rem; padding: .6rem .75rem; background: #F5F7FA; border-radius: .6rem; }
.divy-bank-due { font-size: .9rem; margin-bottom: .4rem; }
.divy-bank-row { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; border-top: 1px solid #E5E7EB; }
.divy-bank-row:first-of-type { border-top: 0; }
.divy-bank-label { flex: none; width: 7.5rem; font-size: .8rem; color: #6B7280; font-weight: 600; }
.divy-bank-value { flex: 1; min-width: 0; font-weight: 600; word-break: break-all; }
.divy-bank-row .divy-copy { flex: none; margin-left: 0; min-width: 4.5rem; min-height: 32px; background: #FFFFFF; }
@media (max-width: 767px) {
    .divy-bank-box { margin-left: 0; }
    .divy-bank-label { width: 5.5rem; }
    .divy-bank-row .divy-copy { min-height: 44px; min-width: 5rem; font-size: .8rem; }
}


/* ---- §19.2 install banner ------------------------------------------------------------------- */
.divy-install { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border: 1px solid #C7D2EE; background: #F0F4FD; border-radius: .75rem; }
.divy-install[x-cloak] { display: none !important; }
.divy-install-icon { width: 2.6rem; height: 2.6rem; border-radius: .6rem; flex: none; }
.divy-install-text { flex: 1; display: flex; flex-direction: column; font-size: .8rem; gap: .1rem; }
.divy-install-text b { color: #14317D; font-size: .88rem; }
.divy-install-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.divy-install-btn { min-height: 44px; padding: 0 1.1rem; border-radius: .6rem; background: #14317D; color: #fff; font-weight: 600; }
