/* Shared signed-in account theme. */
html[data-theme="dark"] { color-scheme: dark; }
body.has-app-sidebar { background: #f3f5f8; background-image: none; color: #182b40; font-family: Arial, sans-serif; }
body.has-app-sidebar::before, body.has-app-sidebar::after { display: none; }
.has-app-sidebar .app-sidebar { background: #730b29; border: 0; border-radius: 0 8px 8px 0; box-shadow: 4px 0 20px #35122218; scrollbar-color: #ae526b #730b29; }
.has-app-sidebar .app-sidebar-brand strong { color: #fff; }
.has-app-sidebar .app-sidebar-brand span, .has-app-sidebar .sidebar-account small, .has-app-sidebar .sidebar-account span { color: #f3dce3; }
.has-app-sidebar .sidebar-account { background: #ffffff12; border: 1px solid #ffffff20; border-radius: 8px; box-shadow: none; }
.has-app-sidebar .sidebar-account strong { color: #fff; }
.has-app-sidebar .sidebar-nav a { background: #ffffff0a; border: 1px solid #ffffff16; color: #fff; box-shadow: none; border-radius: 8px; min-height: 52px; }
.has-app-sidebar .sidebar-nav a:hover { background: #ffffff20; }
.has-app-sidebar .sidebar-nav a.active { background: #b90942; border-color: #e45d84; box-shadow: 0 5px 12px #34051930; }
.has-app-sidebar .sidebar-icon { color: #fff; background: #ffffff15; }
.has-app-sidebar .sidebar-nav a.active .sidebar-icon { background: #fff; color: #a50036; }
.has-app-sidebar .sidebar-actions .theme-toggle { background: #ffffff12; color: #fff; border-color: #ffffff30; }
.has-app-sidebar .sidebar-logout { background: #fff; color: #830b30; }
body.has-app-sidebar .logged-in-header { background: #fff; border: 1px solid #e4e8ed; box-shadow: 0 4px 16px #20334a0a; border-radius: 8px; backdrop-filter: none; }
.has-app-sidebar .logged-in-header .brand strong { color: #870b31; }
.has-app-sidebar .logged-in-header .menu-toggle { background: #fff; border: 1px solid #e4e8ed; box-shadow: none; }
.has-app-sidebar main { min-width: 0; }
.has-app-sidebar .admin-tabs { display: none !important; }
.has-app-sidebar .admin-hero, .has-app-sidebar .seller-workspace .admin-hero { padding: 24px !important; min-height: 134px !important; margin-bottom: 18px !important; border: 1px solid #e4e8ed; border-radius: 8px; background: linear-gradient(90deg,#fff 35%,#ffffffeb 55%,#ffffff00 90%),url('../img/landing-kain-tenun-hd.webp') right center/auto 100% no-repeat !important; box-shadow: none !important; }
.has-app-sidebar .admin-hero h1 { max-width: 75%; font-size: 28px !important; }
.has-app-sidebar .admin-hero > div { flex: 1; min-width: 0; }
.has-app-sidebar .admin-hero h1 { width: auto; max-width: 100%; }
.has-app-sidebar .admin-hero p { color: #7c1938; }
.has-app-sidebar .form-panel, .has-app-sidebar .admin-filter-panel, .has-app-sidebar .table-panel, .has-app-sidebar .admin-table-wrap, .has-app-sidebar .notice-card, .has-app-sidebar .chat-panel { background: #fff; border-color: #e0e6ed; border-radius: 8px; }
.has-app-sidebar .form-panel { padding: 20px; }
.has-app-sidebar input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), .has-app-sidebar select, .has-app-sidebar textarea { border-color: #dce3ec; border-radius: 6px; box-shadow: none; max-width: 100%; }
.has-app-sidebar .reveal { opacity: 1; transform: none; }
.seller-product-editor .product-form-shell { padding: 22px; background: #fff; border: 1px solid #e0e6ed; border-radius: 8px; box-shadow: 0 8px 24px #24344a09; }
.seller-product-editor .product-form-shell > .type-picker { display: block; padding: 0 0 22px; margin: 0 0 16px; }
.seller-product-editor .type-picker-heading { display: block; margin: 0 0 18px; }
.seller-product-editor .type-picker-heading strong { display: block; font-size: 20px; color: #182b40; margin-bottom: 8px; }
.seller-product-editor .type-picker-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.seller-product-editor .type-picker-options a { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 8px; min-width: 0; min-height: 96px; border: 1px solid #dfe5ed; border-radius: 8px; background: #fff; }
.seller-product-editor .type-picker-options a img { flex: 0 0 68px; width: 68px; height: 76px; object-fit: cover; border-radius: 6px; }
.seller-product-editor .type-picker-options .category-caption { flex: 1; min-width: 0; margin: 0; }
.seller-product-editor .category-caption strong { display: block; font-size: 14px; line-height: 1.35; }
.seller-product-editor .category-caption small { display: block; margin-top: 7px; font-size: 12px; }
.seller-product-editor .type-picker-options .category-arrow { flex: 0 0 12px; font-size: 28px; color: inherit; margin: 0; }
.seller-product-editor .type-picker-options a.active { background: #ab073c; color: #fff; border-color: #ce3260; }
.seller-product-editor .type-picker-options a.active .category-caption { color: #fff; }
.seller-product-editor .product-form-shell > .form-panel { padding: 0; border: 0; background: transparent; }
.seller-product-editor .form-stack label { min-width: 0; }
.seller-product-editor .form-stack > .product-form-dropdown { border: 0; border-bottom: 1px solid #e0e6ed; border-radius: 0; box-shadow: none; }
.has-app-sidebar img[hidden] { display: none !important; }
html[data-theme=dark] body.has-app-sidebar { background: #141a20; color: #e6edf3; }
html[data-theme=dark] .has-app-sidebar .logged-in-header, html[data-theme=dark] .has-app-sidebar .form-panel, html[data-theme=dark] .has-app-sidebar .product-form-shell, html[data-theme=dark] .has-app-sidebar .form-stack, html[data-theme=dark] .has-app-sidebar .admin-table-wrap { background: #202a34; color: #e6edf3; }
html[data-theme=dark] .seller-product-editor .type-picker-options a:not(.active) { background: #202a34; color: #e6edf3; }
html[data-theme=dark] .seller-product-editor .type-picker-heading strong { color: #e6edf3; }
/* Dark surfaces override the light account theme, including its banner image layer. */
html[data-theme="dark"] body.has-app-sidebar .admin-hero,
html[data-theme="dark"] body.has-app-sidebar .seller-workspace .admin-hero {
 background: linear-gradient(90deg,#25272f 35%,#25272ff2 60%,#25272f88),url('../img/landing-kain-tenun-hd.webp') right center/auto 100% no-repeat !important;
 border-color: #45434e;
}
html[data-theme="dark"] body.has-app-sidebar .admin-hero :is(h1,h2,strong) { color: #f5f3f6 !important; }
html[data-theme="dark"] body.has-app-sidebar .admin-hero p { color: #ded0d9 !important; }
html[data-theme="dark"] body.has-app-sidebar .app-sidebar { background: #391424; border-color: #613047; scrollbar-color: #90506b #391424; }
html[data-theme="dark"] body.has-app-sidebar .sidebar-account,
html[data-theme="dark"] body.has-app-sidebar .sidebar-nav a { background: #ffffff08; border-color: #ffffff20; color: #f5edf2; }
html[data-theme="dark"] body.has-app-sidebar .sidebar-nav a.active { background: #a90a40; border-color: #d6527c; }
html[data-theme="dark"] body.has-app-sidebar .sidebar-icon { background: #ffffff14; color: #f3d9e4; }
html[data-theme="dark"] body.has-app-sidebar .logged-in-header { background: #24252d; border-color: #41434e; }
html[data-theme="dark"] body.has-app-sidebar .logged-in-header .brand strong { color: #fff0f5; }
html[data-theme="dark"] body.has-app-sidebar .logged-in-header .brand small { color: #d8bdcb; }
html[data-theme="dark"] body.has-app-sidebar .logged-in-header .menu-toggle { background: #34333e; border-color: #555260; }
html[data-theme="dark"] body.has-app-sidebar :is(.form-panel,.form-stack,.product-form-shell,.admin-filter-panel,.table-panel,.admin-table-wrap,.table-head,.notice-card,.chat-panel,.metric-card,.product-form-dropdown,.upload-preview-card,.upload-preview-grid figure) {
 background: #252830; color: #eef0f4; border-color: #454955; box-shadow: none;
}
html[data-theme="dark"] body.has-app-sidebar :is(.metric-card strong,.type-picker-heading strong,.form-stack label > span,.table-head h2,.notice-card strong) { color: #eef0f4; }
html[data-theme="dark"] body.has-app-sidebar :is(.metric-card span,.form-hint,.category-caption small,.type-picker-heading span,.upload-preview-grid figcaption) { color: #bbc4d1; }
html[data-theme="dark"] body.has-app-sidebar :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea) { background: #1a1d24; color: #eef0f4; border-color: #505666; }
html[data-theme="dark"] body.has-app-sidebar :is(input,textarea)::placeholder { color: #aeb7c5; opacity: 1; }
html[data-theme="dark"] body.has-app-sidebar :is(input,select,textarea):focus-visible { outline: 2px solid #ec91b0; outline-offset: 2px; }
html[data-theme="dark"] body.has-app-sidebar :is(.seller-data-table,.admin-table) { background: #252830; color: #eef0f4; }
html[data-theme="dark"] body.has-app-sidebar :is(.seller-data-table,.admin-table) :is(th,td) { border-color: #454955; }
html[data-theme="dark"] body.has-app-sidebar :is(.seller-data-table,.admin-table) th { background: #30343e; color: #d8dfeb; }
html[data-theme="dark"] body.has-app-sidebar :is(.seller-data-table,.admin-table) tbody tr:hover { background: #333641; }
html[data-theme="dark"] body.has-app-sidebar .type-picker-options a:not(.active) { background: #252830; border-color: #454955; color: #eef0f4; }
html[data-theme="dark"] body.has-app-sidebar .type-picker-options a:not(.active) .category-caption { color: #eef0f4; }
html[data-theme="dark"] body.has-app-sidebar .product-form-shell .form-stack > *,
html[data-theme="dark"] body.has-app-sidebar .product-form-shell > .type-picker { border-color: #454955; }
html[data-theme="dark"] body.has-app-sidebar .upload-preview-grid img { background: #1a1d24; border-color: #454955; }
@media(max-width:1180px) { .seller-product-editor .type-picker-options { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
 .seller-product-editor .product-form-shell { padding: 14px; }
 .seller-product-editor .type-picker-options { grid-template-columns: minmax(0,1fr); gap: 8px; }
 .seller-product-editor .type-picker-options a { min-height: 80px; }
 .seller-product-editor .type-picker-options a img { width: 60px; height: 60px; flex-basis: 60px; }
 .has-app-sidebar .admin-hero, .has-app-sidebar .seller-workspace .admin-hero { padding: 18px !important; min-height: 112px !important; }
 .has-app-sidebar .admin-hero h1 { font-size: 24px !important; }
 .has-app-sidebar .form-panel { padding: 14px; }
}

/* 2026-09-20: refined account shell for buyer, seller, and super admin. */
body.has-app-sidebar {
 background-color: #edf3f5;
 background-image:
  linear-gradient(rgba(20, 91, 105, 0.035) 1px, transparent 1px),
  linear-gradient(90deg, rgba(20, 91, 105, 0.035) 1px, transparent 1px);
 background-size: 34px 34px;
 color: #10293c;
}

.has-app-sidebar .app-sidebar {
 gap: 12px;
 border: 1px solid #d4e2e5;
 border-radius: 16px;
 background: linear-gradient(180deg, #fbfdfd 0%, #f2f9f9 64%, #fff7f2 100%);
 padding: 14px;
 box-shadow: 0 24px 60px rgba(7, 35, 52, 0.16);
 scrollbar-color: #86b9be #e8f1f2;
}

.has-app-sidebar .app-sidebar-brand {
 border: 1px solid rgba(25, 119, 128, 0.14);
 border-radius: 12px;
 background: linear-gradient(135deg, #ffffff, #e9f7f7);
 padding: 10px;
 box-shadow: 0 8px 22px rgba(14, 72, 82, 0.08);
}

.has-app-sidebar .app-sidebar-brand img {
 border: 2px solid #d9ad57;
 border-radius: 50%;
 background: #fff;
 box-shadow: 0 6px 16px rgba(117, 9, 43, 0.16);
}

.has-app-sidebar .app-sidebar-brand strong { color: #71082b; }
.has-app-sidebar .app-sidebar-brand span { color: #315c67; }

.has-app-sidebar .sidebar-account {
 position: relative;
 overflow: hidden;
 border: 1px solid rgba(218, 174, 88, 0.32);
 border-radius: 12px;
 background: #102c3b;
 padding: 11px;
 box-shadow: 0 12px 24px rgba(5, 33, 49, 0.14);
}

.has-app-sidebar .sidebar-account::after {
 content: "";
 position: absolute;
 inset: 0 auto 0 0;
 width: 4px;
 background: #9d0d38;
}

.has-app-sidebar .sidebar-account img {
 border: 2px solid rgba(231, 183, 95, 0.74);
 border-radius: 50%;
 background: #fff;
}

.has-app-sidebar .sidebar-account strong { color: #fffaf2; }
.has-app-sidebar .sidebar-account span,
.has-app-sidebar .sidebar-account small { color: #cce6e7; }

.has-app-sidebar .sidebar-nav { gap: 7px; }

.has-app-sidebar .sidebar-nav a {
 min-height: 50px;
 border: 1px solid #d9e6e8;
 border-radius: 10px;
 background: rgba(255, 255, 255, 0.82);
 color: #17354a;
 box-shadow: 0 5px 14px rgba(10, 48, 65, 0.045);
}

.has-app-sidebar .sidebar-nav a:hover {
 border-color: rgba(17, 121, 130, 0.35);
 background: #e8f6f6;
 color: #0d5965;
 transform: translateX(3px);
}

.has-app-sidebar .sidebar-nav a.active {
 border-color: rgba(226, 181, 91, 0.58);
 background: linear-gradient(115deg, #81092f 0%, #a90d3e 58%, #126675 100%);
 color: #fff;
 box-shadow: 0 10px 24px rgba(105, 8, 41, 0.2);
 transform: none;
}

.has-app-sidebar .sidebar-icon {
 border: 1px solid rgba(124, 9, 47, 0.12);
 border-radius: 9px;
 background: linear-gradient(135deg, #f6e8ed, #e7f5f5);
 color: #850b34;
}

.has-app-sidebar .sidebar-nav a:hover .sidebar-icon {
 background: #fff;
 color: #0e6470;
}

.has-app-sidebar .sidebar-nav a.active .sidebar-icon {
 border-color: rgba(255, 255, 255, 0.3);
 background: rgba(255, 255, 255, 0.16);
 color: #fff;
}

.has-app-sidebar .sidebar-art {
 flex: 0 0 96px;
 min-height: 96px;
 margin-top: auto;
 border: 1px solid rgba(218, 174, 88, 0.38);
 border-radius: 12px;
 background:
  linear-gradient(90deg, rgba(6, 40, 53, 0.16), rgba(116, 7, 43, 0.58)),
  url('../img/landing-kain-tenun-hd.webp') center 48% / cover no-repeat;
 box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 10px 22px rgba(22, 48, 57, 0.12);
}

.has-app-sidebar .sidebar-actions { margin-top: 0; }

.has-app-sidebar .sidebar-actions .theme-toggle {
 border-color: #d6e4e7;
 border-radius: 10px;
 background: #fff;
 color: #17354a;
}

.has-app-sidebar .sidebar-logout {
 border: 1px solid rgba(128, 9, 47, 0.26);
 border-radius: 10px;
 background: #74102f;
 color: #fff;
}

body.has-app-sidebar .logged-in-header {
 border-color: #d5e2e5;
 border-radius: 14px;
 background: rgba(252, 254, 254, 0.96);
 box-shadow: 0 12px 32px rgba(8, 40, 56, 0.1);
}

html[data-theme="dark"] body.has-app-sidebar {
 background-color: #0b1219;
 background-image:
  linear-gradient(rgba(70, 188, 193, 0.025) 1px, transparent 1px),
  linear-gradient(90deg, rgba(70, 188, 193, 0.025) 1px, transparent 1px);
 color: #f1eee9;
}

html[data-theme="dark"] body.has-app-sidebar .app-sidebar {
 border-color: rgba(83, 184, 189, 0.2);
 background: linear-gradient(180deg, #101a23 0%, #121f28 62%, #24151c 100%);
 box-shadow: 0 28px 68px rgba(0, 0, 0, 0.45);
 scrollbar-color: #875065 #17232c;
}

html[data-theme="dark"] body.has-app-sidebar .app-sidebar-brand {
 border-color: rgba(83, 184, 189, 0.18);
 background: #152730;
 box-shadow: none;
}

html[data-theme="dark"] body.has-app-sidebar .app-sidebar-brand strong { color: #fff6ec; }
html[data-theme="dark"] body.has-app-sidebar .app-sidebar-brand span { color: #9fd2d3; }

html[data-theme="dark"] body.has-app-sidebar .sidebar-account {
 border-color: rgba(229, 180, 87, 0.28);
 background: #281821;
}

html[data-theme="dark"] body.has-app-sidebar .sidebar-account strong { color: #fff7ef; }
html[data-theme="dark"] body.has-app-sidebar .sidebar-account span,
html[data-theme="dark"] body.has-app-sidebar .sidebar-account small { color: #d6c4ca; }

html[data-theme="dark"] body.has-app-sidebar .sidebar-nav a {
 border-color: rgba(100, 185, 190, 0.14);
 background: #15212a;
 color: #e8eff0;
 box-shadow: none;
}

html[data-theme="dark"] body.has-app-sidebar .sidebar-nav a:hover {
 border-color: rgba(92, 201, 204, 0.36);
 background: #19323a;
 color: #bcebed;
}

html[data-theme="dark"] body.has-app-sidebar .sidebar-nav a.active {
 border-color: rgba(231, 183, 95, 0.5);
 background: linear-gradient(115deg, #790b30 0%, #a40e3f 58%, #125c69 100%);
 color: #fff;
}

html[data-theme="dark"] body.has-app-sidebar .sidebar-icon {
 border-color: rgba(229, 180, 87, 0.16);
 background: #241b22;
 color: #efbd68;
}

html[data-theme="dark"] body.has-app-sidebar .sidebar-nav a.active .sidebar-icon,
html[data-theme="dark"] body.has-app-sidebar .sidebar-nav a:hover .sidebar-icon {
 background: rgba(255, 255, 255, 0.1);
 color: #fff;
}

html[data-theme="dark"] body.has-app-sidebar .sidebar-art {
 border-color: rgba(229, 180, 87, 0.28);
 filter: saturate(0.82) brightness(0.72);
}

html[data-theme="dark"] body.has-app-sidebar .sidebar-actions .theme-toggle {
 border-color: rgba(86, 184, 190, 0.2);
 background: #172630;
 color: #edf4f3;
}

html[data-theme="dark"] body.has-app-sidebar .sidebar-logout {
 border-color: rgba(229, 180, 87, 0.28);
 background: #73102f;
 color: #fff8ef;
}

html[data-theme="dark"] body.has-app-sidebar .logged-in-header {
 border-color: rgba(78, 178, 184, 0.18);
 background: rgba(16, 25, 34, 0.96);
 box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] body.has-app-sidebar .logged-in-header .brand strong { color: #fff4eb; }
html[data-theme="dark"] body.has-app-sidebar .logged-in-header .brand small { color: #a9ccce; }

html[data-theme="dark"] body.has-app-sidebar :is(.form-panel,.form-stack,.product-form-shell,.admin-filter-panel,.table-panel,.admin-table-wrap,.table-head,.notice-card,.chat-panel,.metric-card,.product-form-dropdown,.upload-preview-card,.upload-preview-grid figure,.summary-card,.report-panel,.report-chart-card,.filter-dropdown-wrap) {
 border-color: rgba(80, 181, 187, 0.16);
 background: #151f28;
 color: #f2eee9;
 box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] body.has-app-sidebar :is(.metric-card strong,.type-picker-heading strong,.form-stack label > span,.table-head h2,.notice-card strong,h1,h2,h3) { color: #f5f0e9; }
html[data-theme="dark"] body.has-app-sidebar :is(.metric-card span,.form-hint,.category-caption small,.type-picker-heading span,.upload-preview-grid figcaption,p,small) { color: #b9c8cc; }

html[data-theme="dark"] body.has-app-sidebar :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea) {
 border-color: rgba(95, 184, 189, 0.22);
 background: #0e171f;
 color: #f4f1ec;
}

html[data-theme="dark"] body.has-app-sidebar :is(input,select,textarea):focus-visible {
 outline-color: #d9a957;
}

html[data-theme="dark"] body.has-app-sidebar :is(.seller-data-table,.admin-table) { background: #151f28; color: #f3efea; }
html[data-theme="dark"] body.has-app-sidebar :is(.seller-data-table,.admin-table) :is(th,td) { border-color: rgba(82, 181, 187, 0.14); }
html[data-theme="dark"] body.has-app-sidebar :is(.seller-data-table,.admin-table) th { background: #1a2a34; color: #cce0e1; }
html[data-theme="dark"] body.has-app-sidebar :is(.seller-data-table,.admin-table) tbody tr:hover { background: #1b2c35; }

html[data-theme="dark"] body.has-app-sidebar .admin-hero,
html[data-theme="dark"] body.has-app-sidebar .seller-workspace .admin-hero {
 border-color: rgba(218, 171, 82, 0.22);
 background:
  linear-gradient(90deg, rgba(17, 28, 37, 0.98) 18%, rgba(24, 31, 39, 0.9) 58%, rgba(96, 12, 44, 0.42)),
  url('../img/landing-kain-tenun-hd.webp') right center / auto 100% no-repeat !important;
 box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24) !important;
}

html[data-theme="dark"] body.has-app-sidebar .admin-hero p { color: #c4d3d5 !important; }

@media (max-height: 780px) and (min-width: 1181px) {
 .has-app-sidebar .sidebar-art { display: none; }
 .has-app-sidebar .app-sidebar { gap: 9px; }
 .has-app-sidebar .sidebar-nav { gap: 5px; }
}

@media (max-width: 760px) {
 .has-app-sidebar .app-sidebar { border-radius: 0 16px 16px 0; }
 .has-app-sidebar .sidebar-art { min-height: 78px; flex-basis: 78px; }
}

/* 2026-09-20: theme-matched Lapas photography for every account shell. */
.has-app-sidebar .admin-hero,
.has-app-sidebar .seller-workspace .admin-hero {
 background-image: url('../img/lapas-kupang-light.png') !important;
 background-position: center 52% !important;
 background-size: cover !important;
 background-repeat: no-repeat !important;
}

.has-app-sidebar .admin-hero :is(h1, h2, strong, p) {
 text-shadow: 0 1px 1px rgba(255, 255, 255, 0.54);
}

.has-app-sidebar .sidebar-art {
 background-image:
  linear-gradient(90deg, rgba(5, 45, 60, 0.08), rgba(123, 9, 47, 0.16)),
  url('../img/lapas-kupang-light.png') !important;
 background-position: center, center 54% !important;
 background-size: cover, cover !important;
 background-repeat: no-repeat !important;
 filter: none !important;
}

html[data-theme="dark"] body.has-app-sidebar .admin-hero,
html[data-theme="dark"] body.has-app-sidebar .seller-workspace .admin-hero {
 background-image: url('../img/lapas-kupang-dark.png') !important;
 background-position: center 52% !important;
 background-size: cover !important;
 background-repeat: no-repeat !important;
}

html[data-theme="dark"] body.has-app-sidebar .admin-hero :is(h1, h2, strong, p) {
 text-shadow: 0 2px 5px rgba(0, 0, 0, 0.62);
}

html[data-theme="dark"] body.has-app-sidebar .sidebar-art {
 background-image:
  linear-gradient(90deg, rgba(4, 14, 25, 0.12), rgba(91, 8, 39, 0.2)),
  url('../img/lapas-kupang-dark.png') !important;
 background-position: center, center 54% !important;
 background-size: cover, cover !important;
 background-repeat: no-repeat !important;
 filter: none !important;
}

html:not([data-theme="dark"]) body.has-app-sidebar .admin-hero :is(h1, h2, strong) {
 color: #ffffff !important;
 text-shadow: 0 2px 2px rgba(2, 15, 27, 0.98), 0 0 8px rgba(2, 15, 27, 0.88), 0 5px 18px rgba(2, 15, 27, 0.7) !important;
}

html:not([data-theme="dark"]) body.has-app-sidebar .admin-hero p {
 color: #f7fbff !important;
 text-shadow: 0 1px 2px rgba(2, 15, 27, 0.98), 0 0 7px rgba(2, 15, 27, 0.9), 0 3px 12px rgba(2, 15, 27, 0.74) !important;
}

/* 2026-09-20: keep interactive text legible across signed-in dark views. */
html[data-theme="dark"] body.has-app-sidebar .chat-faq-panel button,
html[data-theme="dark"] body.has-app-sidebar .seller-thread-list a {
 border-color: rgba(100, 211, 214, 0.3);
 background: #12314a;
 color: #f4f8fb;
}

html[data-theme="dark"] body.has-app-sidebar .chat-faq-panel button:hover,
html[data-theme="dark"] body.has-app-sidebar .chat-faq-panel button:focus-visible,
html[data-theme="dark"] body.has-app-sidebar .seller-thread-list a:hover,
html[data-theme="dark"] body.has-app-sidebar .seller-thread-list a:focus-visible,
html[data-theme="dark"] body.has-app-sidebar .seller-thread-list a.active {
 border-color: rgba(229, 180, 87, 0.58);
 background: linear-gradient(135deg, #9f123f, #7a0d31);
 color: #fff;
}

html[data-theme="dark"] body.has-app-sidebar .seller-thread-list a strong {
 color: inherit;
}

html[data-theme="dark"] body.has-app-sidebar .seller-thread-list a small {
 color: #c2d4d9;
}

html[data-theme="dark"] body.has-app-sidebar .seller-thread-list a:hover small,
html[data-theme="dark"] body.has-app-sidebar .seller-thread-list a:focus-visible small,
html[data-theme="dark"] body.has-app-sidebar .seller-thread-list a.active small {
 color: #ffe9ef;
}

html[data-theme="dark"] body.has-app-sidebar .quick-reply-row button {
 border-color: rgba(100, 211, 214, 0.32);
 background: rgba(42, 126, 132, 0.22);
 color: #dff9f8;
}

html[data-theme="dark"] body.has-app-sidebar .quick-reply-row button:hover,
html[data-theme="dark"] body.has-app-sidebar .quick-reply-row button:focus-visible {
 border-color: rgba(229, 180, 87, 0.54);
 background: #235d63;
 color: #fff;
}

html[data-theme="dark"] body.has-app-sidebar .table-action.danger-action,
html[data-theme="dark"] body.has-app-sidebar button.danger-action {
 border-color: rgba(255, 139, 169, 0.5) !important;
 background: rgba(159, 18, 63, 0.32) !important;
 color: #ffc1d1 !important;
}

html[data-theme="dark"] body.has-app-sidebar .table-action.danger-action:hover,
html[data-theme="dark"] body.has-app-sidebar .table-action.danger-action:focus-visible,
html[data-theme="dark"] body.has-app-sidebar button.danger-action:hover,
html[data-theme="dark"] body.has-app-sidebar button.danger-action:focus-visible {
 border-color: #ff8baa !important;
 background: #a30f42 !important;
 color: #fff !important;
}

/* 2026-09-21: keep the account identity intact and scroll only the menu. */
.has-app-sidebar .app-sidebar-brand,
.has-app-sidebar .sidebar-account,
.has-app-sidebar .sidebar-art,
.has-app-sidebar .sidebar-actions {
 flex-shrink: 0;
}

.has-app-sidebar .sidebar-account {
 min-height: max-content;
}

.has-app-sidebar .sidebar-account > div {
 min-width: 0;
}

.has-app-sidebar .sidebar-account :is(strong, small) {
 overflow-wrap: anywhere;
}

@media (min-width: 1181px) {
 body.has-app-sidebar .app-sidebar {
  overflow: hidden;
 }

 body.has-app-sidebar .sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-color: #75aab0 transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
 }

 body.has-app-sidebar .sidebar-nav::-webkit-scrollbar {
  width: 5px;
 }

 body.has-app-sidebar .sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
 }

 body.has-app-sidebar .sidebar-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #75aab0;
 }
}

@media (min-width: 1181px) and (max-height: 950px) {
 .has-app-sidebar .app-sidebar {
  gap: 8px;
 }

 .has-app-sidebar .app-sidebar-brand {
  padding: 8px;
 }

 .has-app-sidebar .sidebar-account {
  padding: 9px;
 }

 .has-app-sidebar .sidebar-nav {
  gap: 6px;
 }

 .has-app-sidebar .sidebar-nav a {
  min-height: 48px;
 }

 .has-app-sidebar .sidebar-art {
  flex-basis: 64px;
  min-height: 64px;
  margin-top: 0;
 }

 .has-app-sidebar .sidebar-actions {
  gap: 8px;
  padding-top: 0;
 }
}

@media (max-width: 1180px) {
 body.has-app-sidebar .app-sidebar {
  overflow-x: hidden;
  overflow-y: auto;
 }

 body.has-app-sidebar .sidebar-nav {
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
  padding-right: 0;
 }
}

/* Message metadata needs explicit contrast after actions were moved beside it. */
body.has-app-sidebar .chat-message-meta > small {
 opacity: 1;
 font-weight: 750;
}

body.has-app-sidebar .chat-buyer .chat-message-meta > small {
 color: rgba(255, 255, 255, 0.92);
}

body.has-app-sidebar .chat-seller .chat-message-meta > small,
body.has-app-sidebar .chat-system .chat-message-meta > small {
 color: #405f75;
}

html[data-theme="dark"] body.has-app-sidebar .chat-buyer .chat-message-meta > small {
 color: #fff3f6;
}

html[data-theme="dark"] body.has-app-sidebar .chat-seller .chat-message-meta > small,
html[data-theme="dark"] body.has-app-sidebar .chat-system .chat-message-meta > small {
 color: #c4d9e5;
}

/* 2026-09-29: consistent contrast for buyer cart and order history. */
html[data-theme="dark"] body.has-app-sidebar .logged-in-header {
 background: #101922;
 backdrop-filter: none;
}

html[data-theme="dark"] body.has-app-sidebar .cart-item {
 border-color: rgba(91, 199, 204, 0.22);
 background: #15222c;
 color: #f7f3ed;
 box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] body.has-app-sidebar .cart-item-image {
 border-color: rgba(91, 199, 204, 0.18);
 background: #0d1820;
}

html[data-theme="dark"] body.has-app-sidebar .cart-item-info :is(strong, a),
html[data-theme="dark"] body.has-app-sidebar .cart-item > [data-cart-item-subtotal] {
 color: #fff8f1;
}

html[data-theme="dark"] body.has-app-sidebar .cart-item-info > span {
 color: #d7e4e5;
}

html[data-theme="dark"] body.has-app-sidebar .cart-item-info > small {
 color: #9fc9cc;
}

html[data-theme="dark"] body.has-app-sidebar .cart-item > input[type="number"] {
 border-color: rgba(91, 199, 204, 0.28);
 background: #0b161e;
 color: #fff;
}

html[data-theme="dark"] body.has-app-sidebar .cart-select span {
 border-color: rgba(91, 199, 204, 0.42);
 background: #0d1a22;
 box-shadow: inset 0 0 0 4px #0d1a22;
}

html[data-theme="dark"] body.has-app-sidebar .cart-select input:checked + span {
 border-color: #65d9df;
 background: #167c87;
}

html[data-theme="dark"] body.has-app-sidebar .summary-card > div {
 border-color: rgba(91, 199, 204, 0.15);
 background: #111c25;
 color: #d7e4e5;
}

html[data-theme="dark"] body.has-app-sidebar .summary-card > div strong {
 color: #fff8f1;
}

html[data-theme="dark"] body.has-app-sidebar .order-status-tabs {
 border-color: rgba(91, 199, 204, 0.2);
 background: #0d2230;
}

html[data-theme="dark"] body.has-app-sidebar .order-status-tabs a {
 color: #c9dde0;
}

html[data-theme="dark"] body.has-app-sidebar .order-status-tabs a:hover,
html[data-theme="dark"] body.has-app-sidebar .order-status-tabs a:focus-visible {
 background: #173847;
 color: #fff;
}

html[data-theme="dark"] body.has-app-sidebar .order-status-tabs a.active {
 color: #ffb4c9;
}

html[data-theme="dark"] body.has-app-sidebar .buyer-order-card {
 border-color: rgba(91, 199, 204, 0.22);
 background: #0d2230;
 color: #f7f3ed;
 box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] body.has-app-sidebar .buyer-order-card > header {
 border-color: rgba(91, 199, 204, 0.17);
 color: #fff8f1;
}

html[data-theme="dark"] body.has-app-sidebar .buyer-order-product {
 background: #0d2230;
 color: #fff8f1;
}

html[data-theme="dark"] body.has-app-sidebar .buyer-order-product:hover,
html[data-theme="dark"] body.has-app-sidebar .buyer-order-product:focus-visible {
 background: #173847;
 color: #fff;
 outline: none;
}

html[data-theme="dark"] body.has-app-sidebar .buyer-order-product strong {
 color: inherit;
}

html[data-theme="dark"] body.has-app-sidebar .buyer-order-product small {
 color: #b8d1d5;
}

html[data-theme="dark"] body.has-app-sidebar .buyer-order-product:hover small,
html[data-theme="dark"] body.has-app-sidebar .buyer-order-product:focus-visible small {
 color: #d8e8e9;
}

html[data-theme="dark"] body.has-app-sidebar .buyer-order-card > footer {
 border-color: rgba(91, 199, 204, 0.17);
 background: #091a25;
 color: #f7f3ed;
}

/* 2026-09-29: spacious cart rows and reliable product actions. */
.cart-page .cart-table {
 grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
 gap: 24px;
}

.cart-page .cart-items-list {
 min-width: 0;
 gap: 16px;
}

.cart-page .cart-item {
 grid-template-columns: 34px 112px minmax(180px, 1fr) 84px 120px minmax(246px, auto) !important;
 grid-template-areas: "select image info qty subtotal actions" !important;
 gap: 14px;
 min-width: 0;
 min-height: 132px;
 border-color: rgba(16, 83, 98, 0.16);
 background: #fff;
 padding: 16px;
 box-shadow: 0 12px 28px rgba(8, 40, 56, 0.08);
}

.cart-page .cart-item-image {
 grid-area: image;
 display: block;
 width: 112px;
 height: 100px;
 overflow: hidden;
 border: 1px solid rgba(16, 83, 98, 0.14);
 border-radius: 8px;
 background: #eef6f7;
}

.cart-page .cart-item-image img {
 display: block;
 width: 100%;
 height: 100%;
 object-fit: cover;
 transition: transform 180ms ease;
}

.cart-page .cart-item-image:hover img,
.cart-page .cart-item-image:focus-visible img {
 transform: scale(1.04);
}

.cart-page .cart-item-info {
 display: grid;
 align-content: center;
 gap: 3px;
}

.cart-page .cart-item-info strong {
 font-size: 1.05rem;
 line-height: 1.2;
}

.cart-page .cart-item-info a {
 text-decoration: none;
}

.cart-page .cart-item-info a:hover,
.cart-page .cart-item-info a:focus-visible {
 color: #8a0b34;
 text-decoration: underline;
 text-underline-offset: 3px;
}

.cart-page .cart-item > input[type="number"] {
 justify-self: stretch;
 width: 100%;
 min-width: 0;
 height: 48px;
 text-align: center;
}

.cart-page .cart-item > [data-cart-item-subtotal] {
 justify-self: end;
 font-size: 1rem;
 white-space: nowrap;
}

.cart-page .cart-item > .cart-item-actions {
 display: grid !important;
 grid-template-columns: minmax(142px, 1.2fr) minmax(94px, 0.8fr) !important;
 gap: 10px !important;
 min-width: 246px !important;
}

.cart-page .cart-item-actions .table-action {
 display: inline-flex;
 width: 100% !important;
 min-width: 0 !important;
 min-height: 48px;
 align-items: center;
 justify-content: center;
 border-radius: 8px;
 padding: 0 14px;
 font-size: 0.92rem;
 line-height: 1.15;
 white-space: nowrap;
 overflow: hidden;
}

/* Chat notification control for buyer and seller accounts. */
.has-app-sidebar .sidebar-actions .chat-notification-toggle {
 display: inline-flex;
 width: 100%;
 min-width: 0;
 min-height: 46px;
 align-items: center;
 justify-content: flex-start;
 gap: 11px;
 border: 1px solid #d6e4e7;
 border-radius: 10px;
 background: #fff;
 color: #17354a;
 padding: 0 12px;
 font: inherit;
 font-weight: 800;
 text-align: left;
 cursor: pointer;
}

.has-app-sidebar .sidebar-actions .chat-notification-toggle:hover,
.has-app-sidebar .sidebar-actions .chat-notification-toggle:focus-visible {
 border-color: #1f7a83;
 background: #edfafa;
 color: #10565e;
}

.chat-notification-bell {
 position: relative;
 flex: 0 0 24px;
 width: 24px;
 height: 24px;
 color: currentColor;
}

.chat-notification-bell::before {
 content: '';
 position: absolute;
 left: 5px;
 top: 3px;
 width: 12px;
 height: 13px;
 border: 2px solid currentColor;
 border-radius: 9px 9px 5px 5px;
}

.chat-notification-bell::after {
 content: '';
 position: absolute;
 left: 8px;
 bottom: 2px;
 width: 8px;
 height: 4px;
 border-top: 2px solid currentColor;
 border-radius: 50%;
}

.chat-notification-toggle [data-notification-label] {
 min-width: 0;
 flex: 1;
 line-height: 1.2;
}

.chat-notification-toggle [data-notification-state] {
 display: grid;
 flex: 0 0 24px;
 width: 24px;
 height: 24px;
 place-items: center;
 border-radius: 50%;
 background: #a20d3b;
 color: #fff;
 font-size: 0.78rem;
 line-height: 1;
}

.chat-notification-toggle.is-active [data-notification-state] {
 background: #18766f;
}

.chat-notification-toggle.is-sound-only [data-notification-state] {
 background: #b4760b;
}

.chat-notification-toggle.is-blocked [data-notification-state] {
 background: #6f7780;
}

html[data-theme="dark"] body.has-app-sidebar .sidebar-actions .chat-notification-toggle {
 border-color: rgba(86, 184, 190, 0.2);
 background: #172630;
 color: #edf4f3;
}

html[data-theme="dark"] body.has-app-sidebar .sidebar-actions .chat-notification-toggle:hover,
html[data-theme="dark"] body.has-app-sidebar .sidebar-actions .chat-notification-toggle:focus-visible {
 border-color: rgba(118, 222, 226, 0.58);
 background: #1d3540;
 color: #fff;
}

.cart-page .cart-view-product {
 border-color: #175f70 !important;
 background: #175f70 !important;
 color: #fff !important;
 box-shadow: 0 8px 18px rgba(10, 69, 83, 0.16);
}

.cart-page .cart-view-product:hover,
.cart-page .cart-view-product:focus-visible {
 border-color: #0d4654 !important;
 background: #0d4654 !important;
 color: #fff !important;
}

.cart-page .danger-action {
 border-color: rgba(145, 11, 52, 0.28);
 background: #fff1f5;
 color: #8f0b34;
}

.cart-page .danger-action:hover,
.cart-page .danger-action:focus-visible {
 border-color: #8f0b34;
 background: #8f0b34;
 color: #fff;
}

html[data-theme="dark"] .cart-page .cart-item {
 border-color: rgba(91, 199, 204, 0.22);
 background: #15222c;
 color: #f7f3ed;
 box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .cart-page .cart-item-image {
 border-color: rgba(91, 199, 204, 0.18);
 background: #0d1820;
}

html[data-theme="dark"] .cart-page .cart-item-info :is(strong, a),
html[data-theme="dark"] .cart-page .cart-item > [data-cart-item-subtotal] {
 color: #fff8f1;
}

html[data-theme="dark"] .cart-page .cart-item-info > span {
 color: #d7e4e5;
}

html[data-theme="dark"] .cart-page .cart-item-info > small {
 color: #8ed4d9;
}

html[data-theme="dark"] .cart-page .cart-item-info a:hover,
html[data-theme="dark"] .cart-page .cart-item-info a:focus-visible {
 color: #8fe5e9;
}

html[data-theme="dark"] .cart-page .cart-view-product {
 border-color: rgba(111, 221, 226, 0.42) !important;
 background: #17465a !important;
 color: #fff !important;
 box-shadow: none;
}

html[data-theme="dark"] .cart-page .cart-view-product:hover,
html[data-theme="dark"] .cart-page .cart-view-product:focus-visible {
 border-color: #78dce0 !important;
 background: #1d5b70 !important;
}

html[data-theme="dark"] .cart-page .danger-action {
 border-color: #d83b6b !important;
 background: #8f123c !important;
 color: #fff !important;
}

html[data-theme="dark"] .cart-page .danger-action:hover,
html[data-theme="dark"] .cart-page .danger-action:focus-visible {
 border-color: #ff91b1 !important;
 background: #b1164c !important;
 color: #fff !important;
}

html[data-theme="dark"] .cart-page .summary-card > div {
 border-color: rgba(91, 199, 204, 0.15);
 background: #111c25;
 color: #d7e4e5;
}

html[data-theme="dark"] .cart-page .summary-card > div strong {
 color: #fff8f1;
}

@media (max-width: 1500px) {
 .cart-page .cart-table {
  grid-template-columns: minmax(0, 1fr);
 }
}

@media (max-width: 1100px) {
 .cart-page .cart-table {
  grid-template-columns: minmax(0, 1fr);
 }

 .cart-page .cart-item {
  grid-template-columns: 34px 96px minmax(0, 1fr) 84px 120px !important;
  grid-template-areas:
   "select image info qty subtotal"
   "select image actions actions actions" !important;
 }

 .cart-page .cart-item-image {
  width: 96px;
  height: 92px;
 }

 .cart-page .cart-item > .cart-item-actions {
  width: min(100%, 300px) !important;
  min-width: 0 !important;
  justify-self: end;
 }
}

@media (max-width: 720px) {
 .cart-page .section-heading h1 {
  font-size: clamp(2.25rem, 12vw, 3.6rem);
 }

 .cart-page .cart-item {
  grid-template-columns: 32px 82px minmax(0, 1fr) !important;
  grid-template-areas:
   "select image info"
   "qty subtotal subtotal"
   "actions actions actions" !important;
  align-items: center;
  gap: 11px;
  padding: 13px;
 }

 .cart-page .cart-item-image {
  width: 82px;
  height: 82px;
 }

 .cart-page .cart-item > input[type="number"] {
  width: 78px;
 }

 .cart-page .cart-item > .cart-item-actions {
  width: 100% !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(88px, 0.75fr) !important;
 }
}

@media (max-width: 430px) {
 .cart-page .cart-item {
  grid-template-columns: 28px 72px minmax(0, 1fr) !important;
  gap: 9px;
  padding: 11px;
 }

 .cart-page .cart-item-image {
  width: 72px;
  height: 76px;
 }

 .cart-page .cart-item-actions .table-action {
  min-height: 44px;
  padding-inline: 9px;
  font-size: 0.84rem;
 }
}

/* The signed-out header collapses before its navigation can overlap. */
@media (min-width: 1481px) {
 body:not(.has-app-sidebar):not(.has-landing-header) .main-header {
  grid-template-columns: minmax(300px, 360px) minmax(520px, 1fr) auto;
 }

 body:not(.has-app-sidebar):not(.has-landing-header) .brand small {
  max-width: 250px;
 }

 body:not(.has-app-sidebar):not(.has-landing-header) .main-nav {
  gap: 0 !important;
  overflow: hidden;
 }

 body:not(.has-app-sidebar):not(.has-landing-header) .main-nav > a {
  min-height: 46px;
  padding-inline: 8px !important;
  font-size: 0.78rem !important;
 }

 body:not(.has-app-sidebar):not(.has-landing-header) .header-actions {
  gap: 7px;
 }

 body:not(.has-app-sidebar):not(.has-landing-header) .header-actions :is(.cart-link, .ghost-button, .solid-button) {
  min-height: 46px;
  padding-inline: 13px;
 }
}

@media (min-width: 1241px) and (max-width: 1480px) {
 body:not(.has-app-sidebar):not(.has-landing-header) .main-header {
  grid-template-columns: minmax(0, 1fr) auto;
 }

 body:not(.has-app-sidebar):not(.has-landing-header) .menu-toggle {
  display: block;
 }

 body:not(.has-app-sidebar):not(.has-landing-header) :is(.main-nav, .header-actions) {
  display: none;
 }

 body:not(.has-app-sidebar):not(.has-landing-header) :is(.main-nav, .header-actions).is-open {
  display: grid;
  grid-column: 1 / -1;
  width: 100%;
 }

 body:not(.has-app-sidebar):not(.has-landing-header) .main-nav.is-open {
  grid-template-columns: repeat(3, minmax(0, 1fr));
 }

 body:not(.has-app-sidebar):not(.has-landing-header) .header-actions.is-open {
  grid-template-columns: repeat(4, minmax(0, 1fr));
 }
}

/* Navbar notification center: persistent chat and order history. */
body.has-app-sidebar .logged-in-header {
 grid-template-columns: minmax(0, 1fr) auto;
}

.logged-in-header-actions {
 position: relative;
 display: flex;
 min-width: 0;
 align-items: center;
 justify-content: flex-end;
 gap: 10px;
}

.header-notification-center {
 position: static;
}

.header-notification-button {
 position: relative;
 display: grid;
 width: 56px;
 height: 56px;
 place-items: center;
 border: 1px solid rgba(165, 0, 45, 0.22);
 border-radius: 8px;
 background: rgba(255, 255, 255, 0.94);
 color: #17354a;
 box-shadow: none;
 cursor: pointer;
}

.header-notification-button:hover,
.header-notification-button:focus-visible,
.header-notification-center.is-open .header-notification-button {
 border-color: #a5002d;
 background: #fff3f7;
 color: #97002b;
}

.header-notification-button svg {
 width: 26px;
 height: 26px;
}

.header-notification-button > b {
 position: absolute;
 top: -7px;
 right: -7px;
 display: grid;
 min-width: 24px;
 height: 24px;
 place-items: center;
 border: 2px solid #fff;
 border-radius: 999px;
 background: #a5002d;
 color: #fff;
 padding: 0 5px;
 font-size: 0.7rem;
 line-height: 1;
}

.header-notification-button > b[hidden],
.header-notification-panel[hidden] {
 display: none !important;
}

.header-notification-panel {
 position: absolute;
 top: calc(100% + 12px);
 right: 0;
 z-index: 1300;
 width: min(420px, calc(100vw - 32px));
 overflow: hidden;
 border: 1px solid #d7e2e7;
 border-radius: 8px;
 background: #fff;
 color: #102d42;
 box-shadow: 0 22px 54px rgba(10, 36, 51, 0.24);
}

.header-notification-panel > header {
 display: flex;
 min-height: 72px;
 align-items: center;
 justify-content: space-between;
 gap: 14px;
 border-bottom: 1px solid #dce7ea;
 padding: 14px 16px;
}

.header-notification-panel > header > span:first-child {
 display: grid;
 min-width: 0;
 gap: 2px;
}

.header-notification-panel > header strong {
 color: #102d42;
 font-size: 1rem;
 line-height: 1.2;
}

.header-notification-panel > header small {
 color: #567185;
 font-size: 0.76rem;
 line-height: 1.3;
}

.header-notification-panel__actions {
 display: flex;
 flex: 0 0 auto;
 align-items: center;
 gap: 7px;
}

.header-notification-panel > header .notification-panel-close {
 display: grid;
 flex: 0 0 36px;
 width: 36px;
 height: 36px;
 place-items: center;
 border: 1px solid #d6e1e5;
 border-radius: 8px;
 background: #f7fafb;
 color: #17354a;
 font: inherit;
 font-size: 1.35rem;
 font-weight: 800;
 line-height: 1;
 cursor: pointer;
}

.header-notification-panel > header .notification-mark-all {
 min-height: 36px;
 border: 1px solid #e4b7c5;
 border-radius: 8px;
 background: #fff1f5;
 color: #8f0028;
 padding: 7px 10px;
 font: inherit;
 font-size: 0.7rem;
 font-weight: 850;
 line-height: 1.2;
 cursor: pointer;
}

.header-notification-panel > header .notification-mark-all:hover,
.header-notification-panel > header .notification-mark-all:focus-visible {
 border-color: #a5002d;
 background: #a5002d;
 color: #fff;
}

.header-notification-panel > header .notification-mark-all[hidden] {
 display: none !important;
}

.header-notification-list {
 max-height: min(520px, calc(100vh - 210px));
 overflow-y: auto;
 overscroll-behavior: contain;
 scrollbar-color: #b1c7cf #edf3f5;
}

.notification-center-item {
 display: grid;
 grid-template-columns: 42px minmax(0, 1fr) auto;
 gap: 11px;
 align-items: start;
 border-bottom: 1px solid #e2eaed;
 background: #fff;
 color: #17354a;
 padding: 13px 16px;
 text-decoration: none;
}

.notification-center-item.is-unread {
 border-left: 4px solid #a5002d;
 background: #fff9fb;
 padding-left: 12px;
}

.notification-center-item.is-read {
 opacity: 0.86;
}

.notification-center-item:hover,
.notification-center-item:focus-visible {
 background: #f5fafb;
 color: #102d42;
}

.notification-center-item__icon {
 position: relative;
 display: grid;
 width: 42px;
 height: 42px;
 place-items: center;
 border: 1px solid #e4b7c5;
 border-radius: 8px;
 background: #fff1f5;
 color: #8f0028;
 font-size: 0.72rem;
 font-weight: 900;
}

.notification-center-item.is-unread .notification-center-item__icon::after {
 content: "";
 position: absolute;
 top: -5px;
 right: -5px;
 width: 12px;
 height: 12px;
 border: 2px solid #fff;
 border-radius: 50%;
 background: #d5003b;
 box-shadow: 0 1px 4px rgba(165, 0, 45, 0.35);
}

.notification-center-item--order .notification-center-item__icon {
 border-color: #b9d9dc;
 background: #edf9f8;
 color: #176a70;
}

.notification-center-item__content {
 display: grid;
 min-width: 0;
 gap: 3px;
}

.notification-center-item__content strong,
.notification-center-item__content > span,
.notification-center-item__content small {
 overflow-wrap: anywhere;
}

.notification-center-item__actions {
 display: flex;
 align-items: center;
 gap: 6px;
 align-self: center;
}

.notification-center-read,
.notification-center-delete {
 display: inline-flex;
 min-height: 34px;
 align-items: center;
 justify-content: center;
 border: 1px solid #d3e0e5;
 border-radius: 8px;
 background: #fff;
 color: #17354a;
 padding: 7px 9px;
 font: inherit;
 font-size: 0.7rem;
 font-weight: 850;
 line-height: 1.1;
 text-decoration: none;
 cursor: pointer;
}

.notification-center-read {
 border-color: #e4b7c5;
 color: #8f0028;
}

.notification-center-delete:hover,
.notification-center-delete:focus-visible {
 border-color: #b42318;
 background: #fff1f0;
 color: #a31812;
}

.notification-center-read:hover,
.notification-center-read:focus-visible {
 border-color: #a5002d;
 background: #a5002d;
 color: #fff;
}

.notification-center-delete:disabled,
.notification-mark-all:disabled {
 cursor: wait;
 opacity: 0.55;
}

.notification-center-item__content strong {
 color: #102d42;
 font-size: 0.88rem;
 line-height: 1.3;
}

.notification-center-item__content > span {
 display: -webkit-box;
 overflow: hidden;
 color: #49677b;
 font-size: 0.79rem;
 line-height: 1.4;
 -webkit-box-orient: vertical;
 -webkit-line-clamp: 2;
}

.notification-center-item__content small {
 color: #778d9c;
 font-size: 0.7rem;
 line-height: 1.3;
}

.notification-center-state {
 margin: 0;
 color: #61798a;
 padding: 28px 18px;
 font-size: 0.84rem;
 text-align: center;
}

.header-notification-panel > footer {
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 8px;
 border-top: 1px solid #dce7ea;
 background: #f7fafb;
 padding: 10px;
}

.header-notification-panel > footer a {
 display: flex;
 min-height: 40px;
 align-items: center;
 justify-content: center;
 border: 1px solid #d3e0e5;
 border-radius: 8px;
 background: #fff;
 color: #17354a;
 padding: 8px 10px;
 font-size: 0.78rem;
 font-weight: 850;
 text-align: center;
 text-decoration: none;
}

.header-notification-panel > footer a:hover,
.header-notification-panel > footer a:focus-visible {
 border-color: #a5002d;
 color: #97002b;
}

html[data-theme="dark"] .header-notification-button {
 border-color: rgba(126, 216, 255, 0.22);
 background: #172630;
 color: #f5c85d;
}

html[data-theme="dark"] .header-notification-button:hover,
html[data-theme="dark"] .header-notification-button:focus-visible,
html[data-theme="dark"] .header-notification-center.is-open .header-notification-button {
 border-color: rgba(245, 200, 93, 0.58);
 background: #213641;
 color: #ffe39b;
}

html[data-theme="dark"] .header-notification-button > b {
 border-color: #101922;
}

html[data-theme="dark"] .header-notification-panel {
 border-color: rgba(112, 199, 205, 0.24);
 background: #101b24;
 color: #f1f6f6;
 box-shadow: 0 24px 58px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .header-notification-panel > header,
html[data-theme="dark"] .header-notification-panel > footer,
html[data-theme="dark"] .notification-center-item {
 border-color: rgba(112, 199, 205, 0.16);
}

html[data-theme="dark"] .header-notification-panel > header strong,
html[data-theme="dark"] .notification-center-item__content strong {
 color: #fff7ef;
}

html[data-theme="dark"] .header-notification-panel > header small,
html[data-theme="dark"] .notification-center-item__content > span,
html[data-theme="dark"] .notification-center-item__content small,
html[data-theme="dark"] .notification-center-state {
 color: #b7cbd0;
}

html[data-theme="dark"] .header-notification-panel > header .notification-panel-close,
html[data-theme="dark"] .header-notification-panel > footer a {
 border-color: rgba(112, 199, 205, 0.2);
 background: #172630;
 color: #eef6f5;
}

html[data-theme="dark"] .header-notification-panel > header .notification-mark-all,
html[data-theme="dark"] .notification-center-read {
 border-color: rgba(255, 137, 170, 0.32);
 background: #391824;
 color: #ffcad8;
}

html[data-theme="dark"] .notification-center-delete {
 border-color: rgba(112, 199, 205, 0.2);
 background: #172630;
 color: #d8e8e9;
}

html[data-theme="dark"] .notification-center-item.is-unread {
 border-left-color: #ff719a;
 background: #18252f;
}

html[data-theme="dark"] .notification-center-read:hover,
html[data-theme="dark"] .notification-center-read:focus-visible,
html[data-theme="dark"] .header-notification-panel > header .notification-mark-all:hover,
html[data-theme="dark"] .header-notification-panel > header .notification-mark-all:focus-visible {
 border-color: #ff719a;
 background: #a5002d;
 color: #fff;
}

html[data-theme="dark"] .header-notification-list,
html[data-theme="dark"] .notification-center-item {
 background: #101b24;
 scrollbar-color: #45636d #101b24;
}

html[data-theme="dark"] .notification-center-item:hover,
html[data-theme="dark"] .notification-center-item:focus-visible {
 background: #172934;
 color: #fff;
}

html[data-theme="dark"] .notification-center-item__icon {
 border-color: rgba(255, 137, 170, 0.28);
 background: #391824;
 color: #ffb6ca;
}

html[data-theme="dark"] .notification-center-item.is-unread .notification-center-item__icon::after {
 border-color: #18252f;
 background: #ff4f7f;
 box-shadow: 0 1px 5px rgba(255, 79, 127, 0.42);
}

html[data-theme="dark"] .notification-center-item--order .notification-center-item__icon {
 border-color: rgba(112, 199, 205, 0.24);
 background: #163139;
 color: #a9e1e3;
}

html[data-theme="dark"] .header-notification-panel > footer {
 background: #0d171f;
}

@media (max-width: 560px) {
 body.has-app-sidebar .logged-in-header {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
 }

 .logged-in-header-actions {
  gap: 5px;
 }

 .header-notification-button,
 .header-cart-quick,
 body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle {
  width: 46px;
  height: 46px;
 }

 .header-notification-button svg {
  width: 23px;
  height: 23px;
 }

 body.has-app-sidebar .logged-in-header .brand small {
  display: none;
 }

 .header-notification-panel {
  position: fixed;
  top: 72px;
  right: 10px;
  left: 10px;
  width: auto;
  max-width: none;
 }

 .header-notification-list {
  max-height: min(480px, calc(100vh - 190px));
 }

 .notification-center-item {
  grid-template-columns: 38px minmax(0, 1fr);
 }

 .notification-center-item__icon {
  width: 38px;
  height: 38px;
 }

 .notification-center-item__actions {
  grid-column: 2;
  justify-content: flex-start;
 }
}

/* Buyer profile and birthday greeting. */
.has-app-sidebar .sidebar-account-link {
 color: inherit;
 text-decoration: none;
 cursor: pointer;
 transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.has-app-sidebar .sidebar-account-link:hover,
.has-app-sidebar .sidebar-account-link:focus-visible,
.has-app-sidebar .sidebar-account-link.is-active {
 border-color: rgba(236, 190, 94, 0.78);
 box-shadow: 0 15px 30px rgba(5, 33, 49, 0.22);
 transform: translateY(-1px);
 outline: none;
}

.has-app-sidebar .sidebar-account img {
 object-fit: cover;
}

.sidebar-account-edit {
 position: absolute;
 top: 8px;
 right: 9px;
 border: 1px solid rgba(255, 255, 255, 0.28);
 border-radius: 5px;
 background: rgba(255, 255, 255, 0.1);
 color: #fff7df !important;
 padding: 2px 6px;
 font-size: 0.62rem !important;
 font-weight: 900;
 line-height: 1.2 !important;
}

.profile-page {
 padding-bottom: 54px;
}

.profile-heading {
 margin-bottom: 24px;
}

.profile-heading h1 {
 font-size: clamp(2rem, 4vw, 3.4rem);
}

.profile-editor {
 overflow: hidden;
 border: 1px solid #d7e4e7;
 border-radius: 8px;
 background: #fff;
 box-shadow: 0 18px 48px rgba(8, 40, 56, 0.09);
}

.profile-form {
 display: grid;
 grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
}

.profile-photo-column {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 14px;
 min-width: 0;
 background: #123747;
 color: #eefbfc;
 padding: 38px 28px;
 text-align: center;
}

.profile-photo-column .eyebrow {
 color: #f1c96f;
}

.profile-photo-preview {
 width: 168px;
 height: 168px;
 overflow: hidden;
 border: 5px solid #fff;
 border-radius: 50%;
 background: #fff;
 box-shadow: 0 0 0 3px #c7923c, 0 18px 34px rgba(0, 0, 0, 0.24);
}

.profile-photo-preview img {
 display: block;
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.profile-photo-button {
 display: inline-flex;
 min-height: 42px;
 align-items: center;
 justify-content: center;
 border: 1px solid rgba(255, 255, 255, 0.34);
 border-radius: 6px;
 background: #8a0d38;
 color: #fff;
 padding: 0 18px;
 font-weight: 900;
 cursor: pointer;
}

.profile-photo-button:hover,
.profile-photo-button:focus-visible {
 background: #a91245;
 outline: 3px solid rgba(241, 201, 111, 0.34);
}

.profile-photo-input {
 position: absolute;
 width: 1px;
 height: 1px;
 overflow: hidden;
 clip: rect(0 0 0 0);
 clip-path: inset(50%);
 white-space: nowrap;
}

.profile-photo-column > small {
 max-width: 220px;
 color: #c9e0e5;
 line-height: 1.5;
}

.profile-remove-photo {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 color: #fff;
 font-size: 0.82rem;
 font-weight: 700;
}

.profile-remove-photo input {
 width: 18px;
 height: 18px;
 accent-color: #c91d55;
}

.profile-fields {
 min-width: 0;
 padding: 36px;
}

.profile-fields-heading {
 display: flex;
 align-items: flex-end;
 justify-content: space-between;
 gap: 20px;
 border-bottom: 1px solid #dbe6e8;
 margin-bottom: 26px;
 padding-bottom: 18px;
}

.profile-fields-heading h2 {
 margin: 4px 0 0;
 color: #102d3f;
 font-family: Georgia, "Times New Roman", serif;
 font-size: 1.8rem;
 letter-spacing: 0;
}

.profile-fields-heading > span {
 color: #55717c;
 font-size: 0.78rem;
 font-weight: 800;
 text-align: right;
}

.profile-form-grid {
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 20px;
}

.profile-form-grid label {
 display: grid;
 align-content: start;
 gap: 8px;
 min-width: 0;
 color: #17354a;
 font-weight: 900;
}

.profile-form-grid input,
.profile-form-grid textarea {
 width: 100%;
 min-width: 0;
 border: 1px solid #cbdcdf;
 border-radius: 6px;
 background: #fbfdfd;
 color: #102d3f;
 padding: 12px 13px;
 font: inherit;
}

.profile-form-grid input {
 min-height: 48px;
}

.profile-form-grid input:focus,
.profile-form-grid textarea:focus {
 border-color: #0e707b;
 box-shadow: 0 0 0 3px rgba(14, 112, 123, 0.12);
 outline: none;
}

.profile-form-grid input[readonly] {
 background: #edf4f5;
 color: #536d76;
 cursor: not-allowed;
}

.profile-form-grid small {
 color: #667f88;
 font-size: 0.75rem;
 font-weight: 600;
 line-height: 1.45;
}

.profile-address-field {
 grid-column: 1 / -1;
}

.profile-address-field textarea {
 resize: vertical;
}

.profile-actions {
 display: flex;
 justify-content: flex-end;
 gap: 12px;
 border-top: 1px solid #dbe6e8;
 margin-top: 28px;
 padding-top: 22px;
}

.birthday-greeting {
 position: fixed;
 right: 20px;
 bottom: 20px;
 z-index: 1160;
 display: grid;
 width: min(330px, calc(100vw - 32px));
 grid-template-columns: 44px minmax(0, 1fr);
 align-items: center;
 gap: 10px;
 border: 1px solid rgba(172, 112, 24, 0.34);
 border-left: 5px solid #a50b3d;
 border-radius: 8px;
 background: #fffdf8;
 color: #163446;
 box-shadow: 0 18px 50px rgba(8, 36, 51, 0.2);
 padding: 13px 36px 13px 12px;
 isolation: isolate;
 animation: birthday-greeting-in 360ms ease both;
}

.birthday-greeting > :not(.birthday-greeting__fireworks):not(.birthday-greeting__close) {
 position: relative;
 z-index: 1;
}

.birthday-greeting__fireworks {
 position: fixed;
 inset: 0;
 z-index: -1;
 overflow: hidden;
 pointer-events: none;
 transition: opacity 180ms ease;
}

.birthday-greeting__firework {
 position: absolute;
 left: var(--firework-x);
 top: var(--firework-y);
 width: 6px;
 height: 6px;
 border-radius: 50%;
 background: var(--firework-color);
 box-shadow: 0 0 8px var(--firework-color);
 opacity: 0;
 animation: birthday-firework-burst 1.35s ease-out infinite;
 animation-delay: var(--firework-delay);
}

.birthday-greeting.is-closing {
 pointer-events: none;
 animation: birthday-greeting-out 180ms ease both;
}

.birthday-greeting.is-closing .birthday-greeting__fireworks {
 opacity: 0;
}

.birthday-greeting__close {
 position: absolute;
 top: 6px;
 right: 6px;
 display: grid;
 width: 26px;
 height: 26px;
 place-items: center;
 border: 0;
 border-radius: 50%;
 background: transparent;
 color: #6a4653;
 font-size: 1.2rem;
 cursor: pointer;
}

.birthday-greeting__close:hover,
.birthday-greeting__close:focus-visible {
 background: #f8e7ed;
 color: #8a0d38;
 outline: none;
}

.birthday-greeting__icon {
 position: relative;
 width: 44px;
 height: 44px;
 border-radius: 50%;
 background: #123747;
}

.birthday-greeting__icon::before {
 content: "";
 position: absolute;
 left: 10px;
 right: 10px;
 bottom: 10px;
 height: 16px;
 border-radius: 3px;
 background: #f1c96f;
 box-shadow: inset 0 -6px 0 #d38358;
}

.birthday-greeting__icon::after {
 content: "";
 position: absolute;
 top: 7px;
 left: 20px;
 width: 4px;
 height: 13px;
 border-radius: 3px;
 background: #fff;
 box-shadow: 0 -4px 0 1px #dc3d56;
}

.birthday-greeting small,
.birthday-greeting strong {
 display: block;
}

.birthday-greeting small {
 color: #9a1745;
 font-size: 0.62rem;
 font-weight: 900;
 text-transform: uppercase;
}

.birthday-greeting strong {
 margin-top: 2px;
 color: #102d3f;
 font-family: Georgia, "Times New Roman", serif;
 font-size: 0.96rem;
 letter-spacing: 0;
}

.birthday-greeting p {
 margin: 4px 0 0;
 color: #526b74;
 font-size: 0.7rem;
 line-height: 1.38;
}

.birthday-greeting__song {
 display: inline-flex;
 min-height: 30px;
 align-items: center;
 gap: 7px;
 border: 1px solid rgba(138, 13, 56, 0.22);
 border-radius: 6px;
 background: #f8e7ed;
 color: #84103a;
 margin-top: 7px;
 padding: 4px 9px;
 font: inherit;
 font-size: 0.7rem;
 font-weight: 900;
 cursor: pointer;
}

.birthday-greeting__song:hover,
.birthday-greeting__song:focus-visible {
 border-color: rgba(138, 13, 56, 0.5);
 background: #f2d5df;
 outline: none;
}

.birthday-greeting__song-icon {
 display: inline-grid;
 width: 20px;
 height: 20px;
 place-items: center;
 border-radius: 50%;
 background: #8a0d38;
 color: #fff;
 font-size: 0.8rem;
 line-height: 1;
}

.birthday-greeting__song.is-playing .birthday-greeting__song-icon {
 animation: birthday-song-pulse 700ms ease-in-out infinite;
}

@keyframes birthday-greeting-in {
 from { opacity: 0; transform: translateY(16px); }
 to { opacity: 1; transform: translateY(0); }
}

@keyframes birthday-greeting-out {
 from { opacity: 1; transform: translateY(0); }
 to { opacity: 0; transform: translateY(12px); }
}

@keyframes birthday-song-pulse {
 0%, 100% { transform: scale(1); }
 50% { transform: scale(1.16); }
}

@keyframes birthday-firework-burst {
 0% {
  opacity: 0;
  transform: translate(0, 0) scale(0.35);
 }
 14% { opacity: 1; }
 72% { opacity: 0.92; }
 100% {
  opacity: 0;
  transform: translate(var(--firework-dx), var(--firework-dy)) scale(0.1);
 }
}

html[data-theme="dark"] .profile-editor,
html[data-theme="dark"] .profile-fields {
 border-color: #294652;
 background: #101d28;
}

html[data-theme="dark"] .profile-fields-heading,
html[data-theme="dark"] .profile-actions {
 border-color: #294652;
}

html[data-theme="dark"] .profile-fields-heading h2,
html[data-theme="dark"] .profile-form-grid label {
 color: #f5fbff;
}

html[data-theme="dark"] .profile-fields-heading > span,
html[data-theme="dark"] .profile-form-grid small {
 color: #aec3ca;
}

html[data-theme="dark"] .profile-form-grid input,
html[data-theme="dark"] .profile-form-grid textarea {
 border-color: #395763;
 background: #142936;
 color: #f5fbff;
}

html[data-theme="dark"] .profile-form-grid input[readonly] {
 background: #1b3440;
 color: #b8cbd1;
}

html[data-theme="dark"] .birthday-greeting {
 border-color: rgba(231, 183, 95, 0.34);
 border-left-color: #e44c7d;
 background: #132936;
 color: #f6fbfd;
}

html[data-theme="dark"] .birthday-greeting strong {
 color: #fff8ec;
}

html[data-theme="dark"] .birthday-greeting p {
 color: #c2d5da;
}

html[data-theme="dark"] .birthday-greeting__song {
 border-color: rgba(255, 182, 207, 0.28);
 background: #342131;
 color: #ffb6cf;
}

@media (max-width: 760px) {
 .profile-heading h1 {
  font-size: 2.2rem;
 }

 .profile-form {
  grid-template-columns: 1fr;
 }

 .profile-photo-column {
  padding: 28px 20px;
 }

 .profile-photo-preview {
  width: 138px;
  height: 138px;
 }

 .profile-fields {
  padding: 24px 18px;
 }

 .profile-fields-heading {
  align-items: flex-start;
  flex-direction: column;
 }

 .profile-fields-heading > span {
  text-align: left;
 }

 .profile-form-grid {
  grid-template-columns: 1fr;
 }

 .profile-address-field {
  grid-column: auto;
 }

 .profile-actions {
  align-items: stretch;
  flex-direction: column-reverse;
 }

 .profile-actions .primary-button,
 .profile-actions .ghost-button {
  width: 100%;
  justify-content: center;
 }

 .birthday-greeting {
  left: auto;
  right: 10px;
  bottom: 10px;
  width: min(300px, calc(100vw - 20px));
 }
}

@media (prefers-reduced-motion: reduce) {
 .birthday-greeting,
 .birthday-greeting.is-closing,
 .birthday-greeting__song.is-playing .birthday-greeting__song-icon,
 .birthday-greeting__firework {
  animation: none;
 }

 .birthday-greeting__fireworks {
  display: none;
 }
}

/* Clearer buyer order detail and seller order filtering. */
.order-detail-heading {
 margin: 0 0 20px !important;
 border: 1px solid #dbe4ea;
 border-radius: 8px;
 background: rgba(255, 255, 255, 0.86);
 padding: clamp(18px, 2.4vw, 30px) !important;
 box-shadow: 0 10px 28px rgba(7, 30, 56, 0.06);
}

.order-detail .section-heading.compact.order-detail-heading h1 {
 max-width: 100%;
 margin-top: 4px;
 font-size: clamp(1.8rem, 3.5vw, 3.25rem) !important;
 line-height: 1.06 !important;
 overflow-wrap: anywhere;
}

.order-detail-heading > p:last-child {
 margin-top: 12px;
 line-height: 1.55;
}

.order-product-card {
 border-radius: 8px !important;
}

.order-product-media-zoom {
 position: relative;
 display: block;
 width: 96px;
 height: 96px;
 overflow: hidden;
 border: 0;
 border-radius: 8px;
 background: #edf8fc;
 padding: 0;
 cursor: zoom-in;
 appearance: none;
}

.order-product-media-zoom:hover,
.order-product-media-zoom:focus-visible {
 outline: 3px solid rgba(165, 0, 45, 0.48);
 outline-offset: 2px;
}

.order-product-media-zoom > img {
 display: block;
 width: 100% !important;
 height: 100% !important;
 object-fit: cover;
}

.order-product-price form {
 display: flex;
 justify-content: flex-end;
 margin-top: 10px !important;
}

.order-chat-seller {
 display: inline-flex;
 min-width: 132px;
 min-height: 40px;
 align-items: center;
 justify-content: center;
 border-color: rgba(165, 0, 45, 0.28) !important;
 border-radius: 7px !important;
 background: #fff6f8 !important;
 color: #8d0028 !important;
 padding: 9px 14px !important;
 line-height: 1.2;
 white-space: nowrap;
}

.order-chat-seller:hover,
.order-chat-seller:focus-visible {
 border-color: #a5002d !important;
 background: #a5002d !important;
 color: #fff !important;
}

.seller-order-status-tabs {
 margin-top: 0;
}

.seller-order-status-tabs + .seller-order-list {
 margin-top: 0;
}

html[data-theme="dark"] .order-detail-heading {
 border-color: rgba(91, 199, 204, 0.2);
 background: #0d2230;
 color: #f4fbff;
}

html[data-theme="dark"] .order-detail-heading p,
html[data-theme="dark"] .order-detail-heading h1 {
 color: #f4fbff !important;
}

html[data-theme="dark"] .order-chat-seller {
 border-color: rgba(255, 180, 201, 0.4) !important;
 background: #301522 !important;
 color: #ffcada !important;
}

@media (max-width: 680px) {
 .order-detail-heading {
  padding: 16px !important;
 }

 .order-detail .section-heading.compact.order-detail-heading h1 {
  font-size: clamp(1.45rem, 8vw, 2.2rem) !important;
 }

 .order-product-card {
  grid-template-columns: 76px minmax(0, 1fr) !important;
  align-items: start !important;
 }

 .order-product-media-zoom {
  width: 76px;
  height: 76px;
 }

 .order-product-price {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4px 12px;
  text-align: left !important;
 }

 .order-product-price form {
  grid-column: 1 / -1;
  justify-content: stretch;
 }

 .order-chat-seller {
  width: 100%;
 }
}

@media (max-width: 430px) {
 .header-notification-panel > header {
  align-items: flex-start;
 }

 .header-notification-panel__actions {
  align-items: flex-end;
  flex-direction: column-reverse;
 }

 .header-notification-panel > header .notification-mark-all {
  max-width: 112px;
 }
}

@media (max-width: 390px) {
 .logged-in-header-actions {
  gap: 4px;
 }

 .header-notification-button,
 .header-cart-quick,
 body.has-app-sidebar .logged-in-header .sidebar-navbar-toggle {
  width: 42px;
  height: 42px;
 }

 body.has-app-sidebar .logged-in-header .brand img {
  width: 40px;
  height: 40px;
 }

 body.has-app-sidebar .logged-in-header .brand strong {
  font-size: 0.96rem;
 }
}

/* Buyer order cancellation ownership. */
.order-status-tabs {
 grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cancellation-actor-pill {
 border-color: #e3b45a;
 background: #fff5d9;
 color: #714800;
}

.cancellation-actor-pill.cancellation-actor-seller {
 border-color: #ed9a9a;
 background: #fff0f0;
 color: #9c2020;
}

html[data-theme="dark"] .cancellation-actor-pill {
 border-color: rgba(245, 200, 93, 0.48);
 background: #3a2d14;
 color: #ffe29a;
}

html[data-theme="dark"] .cancellation-actor-pill.cancellation-actor-seller {
 border-color: rgba(255, 132, 145, 0.44);
 background: #411d26;
 color: #ffbec7;
}

@media (max-width: 820px) {
 .order-status-tabs {
  display: flex;
 }
}

/* Keep product media inside its own column so labels remain fully readable. */
.chat-product-card {
 grid-template-columns: 72px minmax(0, 1fr) !important;
 align-items: start;
 width: 100%;
 min-width: 0;
 box-sizing: border-box;
}

.chat-product-media {
 width: 72px !important;
 height: 72px !important;
 min-width: 0;
 overflow: hidden;
 border-radius: 7px;
}

.chat-product-media > img {
 display: block;
 width: 100% !important;
 height: 100% !important;
 object-fit: cover;
}

.chat-product-card > div,
.chat-product-card strong,
.chat-product-card small,
.chat-product-card b {
 min-width: 0;
 max-width: 100%;
 white-space: normal;
 overflow-wrap: anywhere;
}

.chat-bubble.is-targeted {
 outline: 3px solid rgba(165, 0, 45, 0.3);
 outline-offset: 3px;
 animation: chat-target-pulse 1.2s ease-out 1;
}

@keyframes chat-target-pulse {
 0% { outline-color: rgba(165, 0, 45, 0.75); }
 100% { outline-color: rgba(165, 0, 45, 0.3); }
}

.buyer-order-product {
 grid-template-columns: 72px minmax(0, 1fr) !important;
 align-items: center;
 gap: 14px !important;
}

.buyer-order-media {
 display: block !important;
 width: 72px !important;
 height: 72px !important;
 min-width: 0;
 overflow: hidden;
 border-radius: 6px;
}

.buyer-order-media > img {
 display: block;
 width: 100% !important;
 height: 100% !important;
 object-fit: cover;
}

.buyer-order-product > span:last-child,
.buyer-order-product strong,
.buyer-order-product small {
 min-width: 0;
 max-width: 100%;
 white-space: normal;
 overflow-wrap: anywhere;
}

/* Give every desktop workspace a clear gutter beside the fixed sidebar. */
@media (min-width: 901px) {
 body.has-app-sidebar {
  padding-left: 308px !important;
 }

 body.has-app-sidebar .logged-in-header {
  left: 308px !important;
  right: 20px !important;
  width: auto !important;
  max-width: none !important;
  transform: none !important;
 }

 body.has-app-sidebar .subpage,
 body.has-app-sidebar .section-wrap,
 body.has-app-sidebar .site-footer,
 body.has-app-sidebar .admin-page {
  width: calc(100% - 40px) !important;
  max-width: none !important;
  margin-right: 20px !important;
  margin-left: 20px !important;
 }

 body.has-app-sidebar.sidebar-collapsed {
  padding-left: 0 !important;
 }

 body.has-app-sidebar.sidebar-collapsed .logged-in-header {
  left: 20px !important;
 }
}

@media (max-width: 560px) {
 .chat-product-card {
  grid-template-columns: 62px minmax(0, 1fr) !important;
  gap: 8px;
  padding: 8px;
 }

 .chat-product-media {
  width: 62px !important;
  height: 62px !important;
 }

 .buyer-order-product {
  grid-template-columns: 64px minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 12px !important;
 }

 .buyer-order-media {
  width: 64px !important;
  height: 64px !important;
 }
}
