@import url('../mobile-auto/shop-contract-flow.css?v=797');
@import url('../mobile-auto/app-typography.css');
/* ==========================================================================
   SAMe Web Desktop — SHOP (/shop) & KHÁM PHÁ (/explore)
   Brand Palette: Primary #fe2c55, Dark #161823, Slate #0f172a, Surface #f8fafc
   ========================================================================== */

:root {
  --brand: #fe2c55;
  --brand-hover: #e02046;
  --brand-soft: #fff0f3;
  --brand-border: #fecdd6;
  --cyan: #25f4ee;
  --ink: #161823;
  --ink-secondary: #475569;
  --ink-muted: #64748b;
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --gold: #f59e0b;
  --gold-soft: #fef3c7;
  --emerald: #10b981;
  --emerald-soft: #ecfdf5;
  --danger: #ef4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.18);
  --header-h: 48px;
  --container-w: 1760px;
  font-family: var(--app-font-ui);
  color: var(--ink);
  background: var(--bg);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body:has(.desktop-portal-section) .desktop-header {
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   1. Sticky Desktop Top Header & Global Navigation
   ========================================================================== */

.desktop-header {
  position: sticky;
  top: 0;
  z-index: 200;
  min-height: var(--header-h);
  background: linear-gradient(135deg, #161823 0%, #211826 55%, #2f1726 100%);
  color: #ffffff;
  border-bottom: 2px solid var(--brand);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.18);
}

.desktop-header-inner {
  width: 100%;
  max-width: 100%;
  min-height: var(--header-h);
  margin: 0;
  padding: 4px 14px;
  display: grid;
  grid-template-columns: auto auto minmax(300px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.desktop-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
}

.desktop-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, #ff5e7e 100%);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: 0 3px 10px rgba(254, 44, 85, 0.35);
}

.desktop-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.desktop-brand-text strong {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}

.desktop-brand-text small {
  font-size: 0.66rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

/* Primary Mode Switcher: SHOP vs KHÁM PHÁ */
.desktop-mode-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.desktop-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 0;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.desktop-mode-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.desktop-mode-tab.is-active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 3px 10px rgba(254, 44, 85, 0.38);
}

.desktop-mode-tab .mode-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e11d48 0%, #f97316 100%);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.28);
}

.desktop-mode-tab.is-active .mode-badge {
  background: #ffffff;
  color: #e11d48;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}

/* Global Search Bar */
.desktop-search-form {
  position: relative;
  width: 100%;
  max-width: 660px;
  min-width: 260px;
  height: 34px;
  justify-self: stretch;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border-radius: 9px;
  padding: 2px 3px 2px 6px;
  border: 1.5px solid transparent;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.same-context-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1200;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  max-height: 440px;
  display: flex;
  flex-direction: column;
  color: #0f172a;
}

.same-search-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  background: linear-gradient(90deg, #fff1f2 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.same-search-dropdown-scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #e11d48;
}

.same-search-dropdown-scope-badge::before {
  content: '🎯';
  font-size: 0.82rem;
}

.same-search-dropdown-scope-hint {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.same-search-dropdown-section-title {
  padding: 7px 14px 4px;
  font-size: 0.71rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.same-search-dropdown-list {
  display: flex;
  flex-direction: column;
  max-height: 290px;
  overflow-y: auto;
}

.same-search-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.same-search-dropdown-item:hover,
.same-search-dropdown-item.is-active {
  background: #fff1f2;
}

.same-search-item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.same-search-item-title {
  font-size: 0.83rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.same-search-item-meta {
  font-size: 0.72rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.same-search-item-price {
  font-size: 0.8rem;
  font-weight: 800;
  color: #e11d48;
  white-space: nowrap;
  flex-shrink: 0;
}

.same-search-dropdown-view-all {
  width: 100%;
  border: 0;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #e11d48;
  font-size: 0.79rem;
  font-weight: 800;
  padding: 10px 14px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.same-search-dropdown-view-all:hover {
  background: #ffe4e6;
}

.same-search-dropdown-status {
  padding: 16px 14px;
  font-size: 0.81rem;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.same-search-dropdown-status.is-error {
  color: #b91c1c;
  background: #fef2f2;
}

.same-search-dropdown-action-btn {
  padding: 5px 11px;
  border-radius: 7px;
  border: 1px solid #fca5a5;
  background: #ffffff;
  color: #b91c1c;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.same-search-dropdown-empty {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.same-search-dropdown-empty-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
}

.same-search-dropdown-empty-sub {
  font-size: 0.76rem;
  color: #64748b;
}

.same-search-dropdown-expand-actions,
.same-scoped-empty-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.same-scoped-empty-box {
  padding: 24px 18px;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  margin: 12px 0;
}

.same-scoped-empty-box .same-scoped-empty-actions {
  justify-content: center;
}

.same-search-expand-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.14s ease;
}

.same-search-expand-btn.is-primary {
  background: #fe2c55;
  color: #ffffff;
}

.same-search-expand-btn.is-primary:hover {
  background: #e11d48;
}

.same-search-expand-btn.is-secondary {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.same-search-expand-btn.is-secondary:hover {
  background: #e2e8f0;
}

/* Storefront Feature Sticks (subtle, soft-bordered criteria pills) */
.shop-storefront-feature-sticks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 7px 0 9px;
  max-width: 740px;
}

.shop-feature-stick-lead {
  display: none;
}

.shop-feature-stick-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 9px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.72);
  border: 1px solid rgba(203, 213, 225, 0.55);
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.shop-feature-stick-pill:hover {
  background: rgba(241, 245, 249, 0.92);
  border-color: rgba(148, 163, 184, 0.65);
}

.shop-feature-stick-icon {
  font-size: 0.78rem;
  line-height: 1;
  opacity: 0.88;
}

.shop-feature-stick-text {
  color: #334155;
  font-weight: 600;
}

.shop-storefront-desc-text {
  margin: 4px 0;
  font-size: 0.85rem;
  color: #475569;
  max-width: 640px;
}

.desktop-search-form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.22);
}

.desktop-search-scope {
  flex: 0 0 auto;
  height: 26px;
  width: auto;
  max-width: none;
  field-sizing: content;
  border: 0;
  background: #f1f5f9;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0 8px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.desktop-search-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 80px;
  height: 26px;
  border: 0;
  outline: none;
  padding: 0 6px;
  font-size: 0.81rem;
  color: var(--ink);
  background: transparent;
}

.desktop-search-btn {
  flex: 0 0 auto;
  width: auto;
  height: 26px;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.desktop-search-btn:hover {
  background: var(--brand-hover);
}

/* Header Action Buttons (Cart, Orders, Publish, Seller, Notifications, Chat, Account) */
.desktop-header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.desktop-action-btn {
  position: relative;
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.73rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.desktop-action-btn.is-icon-only {
  min-width: 34px;
  padding: 0 8px;
  justify-content: center;
}

.desktop-header-chat-icon {
  display: block;
  flex-shrink: 0;
}

.desktop-user-pill #headerUserName {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1620px) {
  .desktop-brand-text small {
    display: none;
  }
  body:not(.is-explore-dedicated-mode) #navModeExplore .mode-badge {
    display: none;
  }
  .desktop-header-inner {
    gap: 8px;
    padding: 4px 12px;
  }
  .desktop-action-btn {
    padding: 0 8px;
    font-size: 0.73rem;
    gap: 4px;
  }
  .desktop-user-pill #headerUserName {
    max-width: 90px;
  }
}

@media (max-width: 1460px) {
  body:not(.is-explore-dedicated-mode) .desktop-header-inner {
    grid-template-columns: auto auto 1fr;
    row-gap: 6px;
    padding: 6px 14px;
  }
  body:not(.is-explore-dedicated-mode) .desktop-header-actions {
    justify-self: end;
  }
  body:not(.is-explore-dedicated-mode) .desktop-search-form {
    grid-column: 1 / -1;
    max-width: 100%;
    min-width: 0;
  }
}

.desktop-action-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.desktop-action-btn.is-active {
  background: rgba(254, 44, 85, 0.25);
  border-color: var(--brand);
}

.desktop-action-btn.is-accent {
  background: linear-gradient(135deg, #fe2c55 0%, #ff4d73 100%);
  border-color: #ff6b8b;
}

.desktop-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

.desktop-action-btn.is-accent .desktop-badge {
  background: #161823;
}

.desktop-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 3px 10px 3px 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.desktop-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.72rem;
  overflow: hidden;
  flex-shrink: 0;
}

.desktop-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Global Toast / Status Banner */
.desktop-toast-container {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  pointer-events: none;
}

.desktop-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #161823;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--emerald);
  animation: toastSlideIn 0.2s ease-out;
}

.desktop-toast.is-error {
  border-left-color: var(--brand);
  background: #2b1219;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Return-to-Explore Context Bar */
.return-explore-bar {
  background: linear-gradient(90deg, #161823 0%, #2b1626 100%);
  color: #fff;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(254, 44, 85, 0.35);
}

.return-explore-bar-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
}

.return-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border: 0;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.82rem;
}

/* ==========================================================================
   2. Shop Desktop Container & Home Layout
   ========================================================================== */

.shop-desktop-container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 18px 18px 64px;
}

/* Sub-navigation / Category Bar */
.shop-subnav-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.shop-subnav-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 46px;
  overflow-x: auto;
}

.shop-subnav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-subnav-link {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink-secondary);
  background: transparent;
  border: 0;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.shop-subnav-link:hover,
.shop-subnav-link.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

/* Hero Banner Grid */
.shop-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(270px, 0.95fr);
  gap: 12px;
  margin-bottom: 16px;
  align-items: stretch;
}

.shop-hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #161823 0%, #381529 55%, #fe2c55 100%);
  color: #ffffff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  min-height: 152px;
  box-shadow: var(--shadow-sm);
}

.shop-hero-copy {
  max-width: 575px;
  z-index: 1;
}

.shop-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  color: #fde68a;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.shop-hero-copy h1 {
  margin: 0 0 4px;
  font-size: 1.32rem;
  font-weight: 900;
  line-height: 1.18;
}

.shop-hero-copy p {
  margin: 0 0 8px;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}

.shop-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-hero-actions .btn-primary,
.shop-hero-actions .btn-secondary {
  padding: 6px 14px;
  font-size: 0.8rem;
  min-height: 31px;
  border-radius: 8px;
}

.shop-hero-art {
  width: 114px;
  height: 114px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  padding: 5px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.shop-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.shop-hero-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-side-promo-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2px;
  box-shadow: var(--shadow-xs);
}

.shop-side-promo-card .shop-pill-badge {
  align-self: flex-start;
  padding: 1.5px 8px;
  font-size: 0.68rem;
}

.shop-side-promo-card h3 {
  margin: 1px 0;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-side-promo-card p {
  margin: 0 0 4px;
  font-size: 0.75rem;
  color: var(--ink-secondary);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-side-promo-card .btn-sm {
  align-self: flex-start;
  padding: 3px 10px;
  font-size: 0.74rem;
  min-height: 24px;
}

/* Section Headers */
.shop-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-xs);
}

.shop-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.shop-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-section-title h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--ink);
}

.shop-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 800;
  background: var(--brand-soft);
  color: var(--brand);
}

.shop-pill-badge.is-gold {
  background: var(--gold-soft);
  color: #b45309;
}

.shop-pill-badge.is-emerald {
  background: var(--emerald-soft);
  color: #047857;
}

/* Category Tiles Grid */
.shop-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.shop-category-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  text-align: left;
  transition: all 0.16s ease;
}

.shop-category-tile:hover,
.shop-category-tile.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xs);
}

.shop-category-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.shop-category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-category-meta strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
}

.shop-category-meta small {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* Voucher Strip — Harmonious, Color-Balanced Ticket Design */
.shop-voucher-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.shop-voucher-head-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.shop-voucher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(282px, 1fr));
  gap: 14px;
}

.shop-voucher-card {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.shop-voucher-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.shop-voucher-left {
  position: relative;
  width: 84px;
  background: linear-gradient(145deg, #fff1f2 0%, #ffe4e6 100%);
  color: #e11d48;
  border-right: 1.5px dashed #fecdd3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  text-align: center;
  flex-shrink: 0;
  gap: 2px;
}

/* Semi-circular ticket perforation notches along the dashed divider */
.shop-voucher-left::before,
.shop-voucher-left::after {
  content: '';
  position: absolute;
  right: -6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  z-index: 2;
}

.shop-voucher-left::before {
  top: -6px;
}

.shop-voucher-left::after {
  bottom: -6px;
}

.shop-voucher-card.is-theme-percent {
  border-color: #fecdd3;
}

.shop-voucher-card.is-theme-percent .shop-voucher-left {
  background: linear-gradient(145deg, #fff1f2 0%, #ffe4e6 100%);
  color: #e11d48;
  border-right-color: #fda4af;
}

.shop-voucher-card.is-theme-freeship {
  border-color: #a7f3d0;
}

.shop-voucher-card.is-theme-freeship .shop-voucher-left {
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
  color: #047857;
  border-right-color: #6ee7b7;
}

.shop-voucher-card.is-theme-vip {
  border-color: #fde68a;
}

.shop-voucher-card.is-theme-vip .shop-voucher-left {
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
  color: #b45309;
  border-right-color: #fcd34d;
}

.shop-voucher-card.is-theme-cash {
  border-color: #bfdbfe;
}

.shop-voucher-card.is-theme-cash .shop-voucher-left {
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  border-right-color: #93c5fd;
}

.shop-voucher-left strong {
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.shop-voucher-left small {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

.shop-voucher-right {
  flex: 1;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  background: #ffffff;
}

.shop-voucher-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.shop-voucher-top-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.shop-voucher-info strong.shop-voucher-code {
  font-size: 0.85rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.shop-voucher-quota-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.67rem;
  font-weight: 700;
  white-space: nowrap;
}

.shop-voucher-info small.shop-voucher-cond-line {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-voucher-info small.shop-voucher-shop-line {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-voucher-scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.shop-voucher-scope-pill.is-global {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.shop-voucher-scope-pill.is-shop-only {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}

.shop-voucher-save-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid #fda4af;
  background: #fff1f2;
  color: #e11d48;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.15s ease;
}

.shop-voucher-card.is-theme-freeship .shop-voucher-save-btn {
  border-color: #6ee7b7;
  background: #ecfdf5;
  color: #047857;
}

.shop-voucher-card.is-theme-vip .shop-voucher-save-btn {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #b45309;
}

.shop-voucher-card.is-theme-cash .shop-voucher-save-btn {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.shop-voucher-save-btn:hover {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.22);
}

.shop-voucher-card.is-theme-freeship .shop-voucher-save-btn:hover {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.22);
}

.shop-voucher-card.is-theme-vip .shop-voucher-save-btn:hover {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.22);
}

.shop-voucher-card.is-theme-cash .shop-voucher-save-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.22);
}

.shop-voucher-save-btn.is-saved {
  border-color: #86efac !important;
  background: #f0fdf4 !important;
  color: #15803d !important;
}

/* ==========================================================================
   3. Unified Product Grid & Card Frame Size Across Entire Web (Matching "Danh mục" Proportions)
   ========================================================================== */

:root {
  --same-product-thumb-ratio: 1 / 1;
}

/* Full-width sections (Trang chủ, Chi tiết sản phẩm, Gian hàng, Giỏ hàng) use 7 columns on wide screens
   so every product card has the exact same ~226px width & frame proportion as the 6-column "Danh mục" grid beside the 266px sidebar! */
.shop-product-grid,
.shop-product-grid.is-5col,
.shop-product-grid.is-4col {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.shop-search-layout .shop-product-grid,
.shop-search-layout .shop-product-grid.is-5col,
.shop-search-layout .shop-product-grid.is-4col {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

@media (max-width: 1560px) {
  .shop-product-grid,
  .shop-product-grid.is-5col,
  .shop-product-grid.is-4col {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .shop-search-layout .shop-product-grid,
  .shop-search-layout .shop-product-grid.is-5col,
  .shop-search-layout .shop-product-grid.is-4col {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1320px) {
  .shop-product-grid,
  .shop-product-grid.is-5col,
  .shop-product-grid.is-4col {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .shop-search-layout .shop-product-grid,
  .shop-search-layout .shop-product-grid.is-5col,
  .shop-search-layout .shop-product-grid.is-4col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .shop-product-grid,
  .shop-product-grid.is-5col,
  .shop-product-grid.is-4col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .shop-search-layout .shop-product-grid,
  .shop-search-layout .shop-product-grid.is-5col,
  .shop-search-layout .shop-product-grid.is-4col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .shop-product-grid,
  .shop-product-grid.is-5col,
  .shop-product-grid.is-4col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .shop-product-grid,
  .shop-product-grid.is-5col,
  .shop-product-grid.is-4col,
  .shop-search-layout .shop-product-grid,
  .shop-search-layout .shop-product-grid.is-5col,
  .shop-search-layout .shop-product-grid.is-4col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.desktop-product-card {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  position: relative;
}

.desktop-product-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.desktop-product-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: var(--same-product-thumb-ratio, 1 / 1);
  flex: 0 0 auto;
  background: #ffffff;
  padding: 0;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.desktop-product-thumb > div:not(.desktop-product-badges):not(.badge-out) {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  overflow: hidden;
}

.desktop-product-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 0.25s ease;
}

.desktop-product-card:hover .desktop-product-thumb img {
  transform: scale(1.04);
}

.desktop-product-badges {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  width: auto !important;
  height: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  gap: 4px;
  z-index: 2;
}

.badge-mall {
  background: #161823;
  color: #fde68a;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.desktop-product-thumb .product-sale-countdown{position:absolute;right:5px;bottom:5px;z-index:3;display:inline-flex;align-items:center;justify-content:flex-end;gap:3px;max-width:calc(100% - 10px);box-sizing:border-box;padding:3px 5px;border-radius:4px;background:transparent;color:#17212e;text-shadow:-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff,1px 1px 0 #fff;font-size:clamp(9px,.65vw,11px);font-weight:750;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none}
.product-sale-countdown svg{flex:none;filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff)}

.badge-discount {
  margin-left: auto;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.desktop-product-tags .product-mall-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;white-space:nowrap;line-height:1;padding:0;margin:0 1px;background:transparent;border:0;border-radius:0;box-shadow:none}
.product-mall-icon svg{display:block;width:15px;height:15px;flex:none;filter:drop-shadow(0 1px 1.5px rgba(225,29,72,.2))}

.badge-out {
  position: absolute;
  inset: auto 6px 6px 6px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  text-align: center;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 800;
}

.desktop-product-body {
  padding: 6px 8px 7px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
}

.desktop-product-title {
  margin: 0;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.26;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  max-height: calc(0.79rem * 1.26 * 2);
  cursor: pointer;
}

.desktop-product-title:hover {
  color: var(--brand);
}

.desktop-product-tags-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 0;
}

.desktop-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  min-width: 0;
}

.desktop-product-rating-badge {
  font-size: 0.69rem;
  font-weight: 800;
  color: #d97706;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.desktop-product-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-alt);
  color: var(--ink-secondary);
  border: 1px solid var(--border);
}

.desktop-product-tag.is-sale {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  padding: 1px 4px;
  font-size: 0.62rem;
  letter-spacing: -0.015em;
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-border);
  width: fit-content;
  flex: 0 0 auto;
}

.desktop-product-tag.is-sale .product-flash-bolt-svg {
  display: block;
  width: 8.5px;
  height: 10.5px;
  flex: 0 0 auto;
  color: #f59e0b;
  filter: drop-shadow(0 0.5px 0.5px rgba(180, 83, 9, 0.25));
}

.desktop-product-tag.is-voucher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 1px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  line-height: 1;
  flex: 0 0 auto;
}

.desktop-product-tag.is-voucher-icon .product-voucher-ticket-svg {
  display: block;
  width: 25px;
  height: 15px;
  filter: drop-shadow(0 1px 2px rgba(254, 44, 85, 0.22));
}

.desktop-product-price-row {
  margin-top: 1px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
}

.desktop-product-price-group {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}

.desktop-product-price {
  font-size: 0.84rem;
  font-weight: 850;
  color: var(--brand);
  white-space: nowrap;
}

.desktop-product-old-price {
  font-size: 0.68rem;
  color: var(--ink-muted);
  text-decoration: line-through;
  white-space: nowrap;
}

.desktop-product-sold-badge {
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.desktop-product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--ink-muted);
}

.desktop-product-meta-row.is-full-location-row {
  width: 100%;
  justify-content: flex-start;
}

.desktop-product-shop-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding-top: 4px;
  border-top: 1px dashed var(--border);
  font-size: 0.7rem;
  color: var(--ink-secondary);
}

.desktop-product-shop-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
  margin-top: auto;
  padding-top: 2px;
}

.desktop-product-actions .btn-sm {
  padding: 4px 8px;
  font-size: 0.74rem;
  min-height: 26px;
}

.desktop-product-cart-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 9px;
  min-width: 38px;
}

.desktop-product-cart-icon-btn .cart-plus-sign {
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
}

.desktop-product-cart-svg {
  display: block;
  flex-shrink: 0;
}

@media (max-width: 699px) {
  .desktop-product-body {
    padding: 6px 7px 7px;
    gap: 3px;
  }
  .desktop-product-title {
    font-size: 0.76rem;
    line-height: 1.28;
    min-height: calc(0.76rem * 1.28 * 2);
    max-height: calc(0.76rem * 1.28 * 2);
  }
  .desktop-product-tags-row {
    flex-wrap: nowrap;
    gap: 3px;
    overflow: hidden;
  }
  .desktop-product-tags {
    flex-wrap: nowrap;
    gap: 3px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }
  .desktop-product-tag {
    font-size: 0.58rem;
    padding: 1.5px 4.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
    min-width: 0;
  }
  .desktop-product-tag.is-sale {
    flex: 0 0 auto;
  }
  .desktop-product-rating-badge {
    font-size: 0.6rem;
    padding: 1.5px 4.5px;
    flex: 0 0 auto;
  }
  .desktop-product-price-row {
    flex-wrap: nowrap;
    gap: 4px;
    padding-top: 3px;
    border-top: 1px dashed var(--border);
    overflow: hidden;
  }
  .desktop-product-price-group {
    flex-wrap: nowrap;
    gap: 3px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }
  .desktop-product-price {
    font-size: clamp(0.76rem, 3.2vw, 0.84rem);
    flex: 0 0 auto;
  }
  .desktop-product-old-price {
    font-size: clamp(0.58rem, 2.4vw, 0.66rem);
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 0 1 auto;
  }
  .desktop-product-sold-badge {
    font-size: clamp(0.58rem, 2.35vw, 0.66rem);
    flex: 0 0 auto;
    margin-left: auto;
  }
  .desktop-product-meta-row {
    font-size: 0.64rem;
  }
  .desktop-product-loc-text,
  .desktop-product-distance-pill {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
}

/* ==========================================================================
   4. Search & Category Filter Layout (2-Column Sidebar + Main Results)
   ========================================================================== */

.shop-search-layout {
  display: grid;
  grid-template-columns: 266px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.shop-filter-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  box-shadow: var(--shadow-xs);
}

.shop-filter-group {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.shop-filter-group:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.shop-filter-group h3 {
  margin: 0 0 10px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.shop-filter-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shop-filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-secondary);
  text-align: left;
}

.shop-filter-option:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.shop-filter-option.is-active {
  background: var(--brand-soft);
  border-color: var(--brand-border);
  color: var(--brand);
  font-weight: 800;
}

.shop-price-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.shop-price-inputs input {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 0.82rem;
}

.shop-sort-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-sort-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-sort-btn {
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink-secondary);
  font-size: 0.82rem;
  font-weight: 700;
}

.shop-sort-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Pagination */
.shop-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.shop-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.shop-page-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.shop-reviews-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.shop-reviews-page-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-reviews-page-summary {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.shop-reviews-pagesize-select {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.shop-pagination.is-reviews-pagination {
  margin-top: 0;
  gap: 6px;
}

.shop-pagination.is-reviews-pagination .shop-page-btn {
  min-width: 34px;
  height: 32px;
  padding: 0 10px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.shop-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: #64748b;
  font-weight: 700;
}

/* ==========================================================================
   5. Product Detail Desktop Page (2-Column Gallery + Purchase Box)
   ========================================================================== */

.product-detail-main {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-xs);
}

@media (max-width: 1120px) {
  .product-detail-main {
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 22px;
  }
}

.product-gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Product detail and its related-ad grids must remain usable on narrow browsers. */
@media (max-width: 844px) {
  .shop-desktop-container:has(.product-detail-main) { max-width:none; margin:0; padding:12px 8px 64px; }
  .product-detail-main { grid-template-columns:minmax(0,1fr); gap:18px; padding:14px; }
  .product-detail-main > * { min-width:0; }
}

.product-gallery-stage > div,
.product-gallery-stage .product-gallery-img-holder,
.product-lightbox-stage,
.product-lightbox-img-holder {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.product-gallery-stage img,
.product-lightbox-stage img,
.product-lightbox-img-holder img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 0.2s ease;
}

.product-gallery-stage.is-zoomed img {
  transform: scale(1.75);
}

.product-thumb-strip {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.product-thumb-btn {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  padding: 1px;
  flex-shrink: 0;
  overflow: hidden;
}

.product-thumb-btn.is-active {
  border-color: var(--brand);
}

.product-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.product-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-detail-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1.3;
  color: var(--ink);
}

.product-metrics-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.product-price-banner {
  background: linear-gradient(90deg, #fff5f7 0%, #f8fafc 100%);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
}

.product-price-current {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--brand);
}

.product-price-old {
  font-size: 1rem;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.product-option-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.product-option-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.variant-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-chip {
  padding: 8px 14px;
  border-radius: 9px;
  border: 1.5px solid var(--border-strong);
  background: #fff;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.14s ease;
}

.variant-chip:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}

.variant-chip.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.variant-chip:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border-style: dashed;
  text-decoration: line-through;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.qty-stepper button {
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--surface-alt);
  font-weight: 800;
  font-size: 1rem;
}

.qty-stepper input {
  width: 56px;
  height: 36px;
  border: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-weight: 700;
}

.product-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.btn-primary,
.btn-secondary,
.btn-outline-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--brand);
  border: 1.5px solid var(--brand);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-hover);
}

.btn-outline-brand {
  background: var(--brand-soft);
  border: 1.5px solid var(--brand);
  color: var(--brand);
}

.btn-outline-brand:hover:not(:disabled) {
  background: #ffe0e7;
}

.btn-secondary {
  background: #fff;
  border: 1.5px solid var(--border-strong);
  color: var(--ink);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--surface-alt);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.8rem;
  border-radius: 8px;
}

/* Seller Summary Strip on Product Detail & Storefront */
.shop-profile-banner {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: var(--shadow-xs);
}

.shop-profile-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
  padding-top: 22px;
}

.shop-profile-top-right-actions {
  position: absolute;
  top: 18px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  z-index: 2;
}

.shop-report-seller-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.94rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.shop-report-seller-top-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.shop-profile-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shop-profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  background: var(--surface-alt);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 900;
  flex-shrink: 0;
}

.shop-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-profile-stats {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 12px 22px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

@media (max-width: 960px) {
  .shop-profile-stats {
    grid-template-columns: repeat(3, auto);
    padding-left: 0;
    border-left: 0;
  }
}

.shop-stat-item span {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.shop-stat-item strong {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--brand);
}

.shop-stat-item strong.is-trust-high {
  color: #059669;
}

.shop-stat-item strong.is-trust-medium {
  color: #d97706;
}

.shop-stat-item strong.is-trust-low {
  color: #dc2626;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.specs-table th,
.specs-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.specs-table th {
  width: 180px;
  color: var(--ink-muted);
  background: var(--surface-alt);
  font-weight: 700;
}

/* Linked Explore Videos Grid on Product Detail */
.linked-explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.linked-explore-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #161823;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.linked-explore-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.linked-explore-media {
  position: relative;
  aspect-ratio: 9 / 12;
  background: #0f172a;
  overflow: hidden;
}

.linked-explore-media img,
.linked-explore-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.linked-explore-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
}

/* ==========================================================================
   6. Cart & Checkout Desktop Layout (Compact & Balanced)
   ========================================================================== */

.is-compact-cart-page {
  padding-top: 12px;
  padding-bottom: 42px;
}

.cart-page-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.cart-page-title-wrap {
  gap: 8px;
}

.cart-page-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 850;
  color: var(--ink);
  line-height: 1.3;
}

.cart-continue-btn {
  width: auto !important;
  height: 30px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.cart-desktop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 980px) {
  .cart-desktop-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cart-col-header-bar {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 110px 104px 115px 36px;
  align-items: center;
  gap: 12px;
  padding: 7px 14px;
  margin-bottom: 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 750;
  color: #475569;
}

.cart-col-header-bar input[type="checkbox"],
.cart-shop-header input[type="checkbox"],
.cart-item-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--brand);
}

.cart-col-lbl.is-num {
  text-align: right;
}

.cart-col-lbl.is-center {
  text-align: center;
}

.cart-shop-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.cart-shop-header {
  padding: 8px 14px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-shop-header-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cart-shop-header-left .sheet-order-shop-link {
  font-size: 0.84rem;
  font-weight: 800;
}

.cart-shop-count {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
}

.cart-item-row {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 22px 48px minmax(0, 1fr) 110px 104px 115px 36px;
  align-items: center;
  gap: 12px;
  min-height: 60px;
}

.cart-item-row:hover {
  background: #fcfdff;
}

.cart-item-row:last-child {
  border-bottom: 0;
}

.cart-item-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f8fafc;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.cart-item-title-link {
  font-weight: 750;
  font-size: 0.84rem;
  line-height: 1.3;
  color: var(--ink);
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-variant-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 5px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  font-size: 0.71rem;
  font-weight: 700;
  line-height: 1.25;
}

.cart-item-warn-line {
  font-size: 0.72rem;
  color: #ef4444;
  font-weight: 700;
}

.cart-item-unit-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.qty-stepper.is-compact-stepper {
  justify-self: center;
  border-radius: 7px;
  height: 28px;
}

.qty-stepper.is-compact-stepper button {
  width: 26px;
  height: 28px;
  font-size: 0.88rem;
  padding: 0;
}

.qty-stepper.is-compact-stepper input {
  width: 38px;
  height: 28px;
  font-size: 0.8rem;
  padding: 0 2px;
}

.cart-item-line-total {
  font-size: 0.86rem;
  font-weight: 850;
  color: #fe2c55;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cart-item-del-btn {
  justify-self: center;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  border-radius: 6px !important;
  font-size: 0.95rem !important;
  line-height: 1 !important;
  color: #64748b;
}

.cart-item-del-btn:hover {
  color: #e11d48;
  border-color: #fda4af;
  background: #fff1f2;
}

.cart-summary-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  position: sticky;
  top: calc(var(--header-h) + 14px);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-summary-title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 850;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.cart-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.81rem;
  color: #475569;
}

.cart-summary-row.is-total {
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-weight: 750;
  color: var(--ink);
}

.cart-summary-price {
  font-size: 1.25rem !important;
  line-height: 1.2;
}

.cart-summary-note {
  display: block;
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.4;
  color: #64748b;
}

.cart-checkout-btn {
  width: 100%;
  height: 36px;
  padding: 0 14px;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* ==========================================================================
   7. KHÁM PHÁ DESKTOP (/explore) — Edge-to-Edge 3-Column & Aspect-Adaptive Layout
   ========================================================================== */

.explore-desktop-shell {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr) 390px;
  width: 100%;
  max-width: 100%;
  height: calc(100vh - var(--header-h));
  margin: 0;
  background: #0f111a;
  color: #f8fafc;
  overflow: hidden;
}

.explore-desktop-shell.is-left-collapsed:not(.is-comments-collapsed) {
  grid-template-columns: minmax(0, 1fr) 390px;
}

.explore-desktop-shell.is-comments-collapsed:not(.is-left-collapsed) {
  grid-template-columns: 265px minmax(0, 1fr);
}

.explore-desktop-shell.is-left-collapsed.is-comments-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1280px) {
  .explore-desktop-shell {
    grid-template-columns: 235px minmax(0, 1fr) 340px;
  }
  .explore-desktop-shell.is-left-collapsed:not(.is-comments-collapsed) {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .explore-desktop-shell.is-comments-collapsed:not(.is-left-collapsed) {
    grid-template-columns: 235px minmax(0, 1fr);
  }
}

/* Edge Toggle Tabs on Center Stage (Show/Hide Left Menu & Right Comments) */
.explore-edge-toggle-btn {
  position: absolute;
  top: 10px;
  z-index: 12;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 38px;
  min-height: 38px;
  padding: 4px 2px;
  border-radius: 10px;
  background: rgba(19, 21, 32, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: all 0.16s ease;
}

.explore-edge-toggle-btn .explore-edge-icon {
  font-size: 0.84rem;
  line-height: 1;
}

.explore-edge-toggle-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.explore-edge-toggle-btn.is-left-toggle {
  flex-direction: row;
  width: auto;
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
  gap: 6px;
  border-radius: 999px;
  font-size: 0.74rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.explore-edge-toggle-btn.is-left-toggle.is-inside-frame {
  position: static;
}

.explore-edge-toggle-btn.is-left-toggle.is-stage-corner {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 12;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease, background 0.16s ease;
}

.explore-edge-toggle-btn.is-right-toggle {
  right: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease, background 0.16s ease;
}

.explore-center-stage:hover .explore-edge-toggle-btn.is-stage-corner,
.explore-center-stage:hover .explore-edge-toggle-btn.is-right-toggle,
.explore-edge-toggle-btn.is-stage-corner:focus-visible,
.explore-edge-toggle-btn.is-right-toggle:focus-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.explore-rail-collapse-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.explore-desktop-shell.is-left-collapsed .explore-more-flyout {
  display: none !important;
}

.explore-rail-collapse-btn {
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  letter-spacing: 0.01em;
  transition: all 0.18s ease;
}

.explore-rail-collapse-btn.is-left-collapse {
  width: 21px;
  height: 24px;
  padding: 0;
  margin-right: -14px;
  border-radius: 7px 0 0 7px;
  border-right: 0;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
}

.explore-rail-collapse-btn .explore-collapse-arrow {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  color: currentColor;
  transition: transform 0.18s ease, color 0.18s ease;
}

.explore-rail-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.explore-rail-collapse-btn:hover .explore-collapse-arrow {
  color: #fff;
}

.explore-rail-collapse-btn.is-left-collapse:hover .explore-collapse-arrow {
  transform: translateX(-2px);
}

.explore-rail-collapse-btn.is-right-collapse:hover .explore-collapse-arrow {
  transform: translateX(2px);
}

.explore-rail-collapse-btn.is-right-collapse.is-stage-right-edge {
  position: absolute;
  top: 26px;
  right: 0;
  z-index: 12;
  width: 21px;
  height: 24px;
  padding: 0;
  border-radius: 7px 0 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 0;
  background: rgba(255, 255, 255, 0.09);
  color: #e2e8f0;
  box-shadow: none;
  backdrop-filter: none;
}

.explore-rail-collapse-btn.is-right-collapse.is-stage-right-edge:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.explore-desktop-shell.is-light-theme .explore-rail-collapse-btn.is-right-collapse.is-stage-right-edge {
  background: #e2e8f0;
  border-color: #cbd5e1;
  border-right: 0;
  color: #334155;
  box-shadow: none;
}

.explore-desktop-shell.is-light-theme .explore-rail-collapse-btn.is-right-collapse.is-stage-right-edge:hover {
  background: #334155;
  border-color: #334155;
  color: #ffffff;
}

/* Left Sidebar */
.explore-left-rail {
  background: #131520;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.explore-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.explore-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 11px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  transition: all 0.14s ease;
}

.explore-nav-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.explore-nav-btn.is-active {
  background: rgba(254, 44, 85, 0.18);
  color: #fe2c55;
  font-weight: 800;
}

.explore-hashtag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.explore-hashtag-chip {
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
}

.explore-hashtag-chip:hover,
.explore-hashtag-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Center Video / Post Stage — Content-Responsive Aspect Ratio Engine */
.explore-center-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  overflow: hidden;
  background: radial-gradient(circle at center, #1d2030 0%, #0b0d14 100%);
}

.explore-player-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  min-width: 0;
}

.explore-media-frame {
  position: relative;
  --media-aspect: 9 / 16;
  aspect-ratio: var(--media-aspect);
  height: 100%;
  max-height: 100%;
  width: auto;
  max-width: calc(100% - 68px);
  min-width: 240px;
  background: #05060a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  transition: width 0.16s ease, height 0.16s ease;
}

/* Portrait 9:16 & 3:4, Square 1:1 & 4:5, Landscape 16:9 & 21:9 — dynamically sized by fitFrameToStage() */
.explore-media-frame[data-aspect-mode="portrait"],
.explore-media-frame[data-aspect-mode="square"],
.explore-media-frame[data-aspect-mode="landscape"] {
  max-width: calc(100% - 68px);
  max-height: 100%;
}

.explore-player-cluster.is-landscape-cluster {
  align-items: center;
  width: 100%;
}

.explore-media-frame:fullscreen,
.explore-media-frame.is-web-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: 0 !important;
  z-index: 9999 !important;
}

body.is-explore-web-fullscreen .desktop-header {
  display: none !important;
}

.explore-media-frame video,
.explore-media-frame .explore-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05060a;
}

.explore-top-controls {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.explore-media-frame:hover .explore-top-controls,
.explore-media-frame.is-settings-open .explore-top-controls {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.explore-top-controls > * {
  pointer-events: auto;
}

.explore-glass-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.explore-glass-pill.is-icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 0.95rem;
}

/* Bottom Caption Overlay inside Media Frame — Strictly capped at <= 48% frame height, no vertical scrollbar */
.explore-bottom-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 4;
  max-height: 48%;
  overflow: visible;
  padding: 20px 16px 12px;
  background: linear-gradient(to top, rgba(5, 6, 10, 0.94) 0%, rgba(5, 6, 10, 0.68) 68%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}

.explore-bottom-overlay.is-captions-hidden .explore-author-line,
.explore-bottom-overlay.is-captions-hidden .explore-title-clamp,
.explore-bottom-overlay.is-captions-hidden .explore-caption-wrap,
.explore-bottom-overlay.is-captions-hidden .explore-hashtag-onerow {
  display: none !important;
}

/* Video Settings Gear Button & Popup Menu (left edge of seek bar) */
.explore-video-settings-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.explore-video-gear-btn,
.explore-video-pip-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.16s ease;
}

.explore-video-gear-btn:hover,
.explore-video-gear-btn[aria-expanded="true"] {
  background: var(--brand);
  border-color: var(--brand);
  transform: rotate(30deg);
}

.explore-video-pip-btn:hover,
.explore-video-pip-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.explore-video-settings-popup {
  position: absolute;
  right: 0;
  left: auto;
  bottom: calc(100% + 12px);
  z-index: 40;
  width: 310px;
  background: #ffffff;
  color: #161823;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.explore-vset-row {
  width: 100%;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: #161823;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
}

.explore-vset-row.is-clickable:hover {
  background: #f1f5f9;
}

.explore-vset-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #161823;
  font-weight: 700;
}

.explore-vset-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  font-size: 0.96rem;
  color: #161823;
  flex-shrink: 0;
}

.explore-vset-icon.explore-hd-box,
.explore-vset-icon.explore-cc-box {
  font-size: 0.62rem;
  font-weight: 900;
  border: 1.5px solid #161823;
  border-radius: 4px;
  width: 22px;
  height: 16px;
  line-height: 1;
}

.explore-vset-icon.explore-aa-icon {
  font-size: 0.86rem;
  font-weight: 900;
}

.explore-vset-speaker-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.14s ease, transform 0.14s ease;
}

.explore-vset-speaker-btn:hover {
  background: #e2e8f0;
  transform: scale(1.06);
}

.explore-vset-volume-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 158px;
  justify-content: flex-end;
}

.explore-vset-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 112px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #fe2c55 0%,
    #fe2c55 var(--vol-pct, 100%),
    #cbd5e1 var(--vol-pct, 100%),
    #cbd5e1 100%
  );
  outline: none;
  cursor: pointer;
  margin: 0;
}

.explore-vset-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #fe2c55;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.explore-vset-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

.explore-vset-volume-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #fe2c55;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28);
  cursor: pointer;
}

.explore-vset-volume-pct {
  min-width: 34px;
  text-align: right;
  font-size: 0.76rem;
  font-weight: 800;
  color: #334155;
  font-variant-numeric: tabular-nums;
}

.explore-vset-value.is-on {
  color: #10b981;
  font-weight: 800;
}

.explore-cc-subtitles-overlay {
  position: absolute;
  left: 50%;
  bottom: 132px;
  transform: translateX(-50%);
  z-index: 6;
  max-width: min(88%, 520px);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.explore-cc-subtitles-overlay .explore-cc-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(254, 44, 85, 0.9);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  vertical-align: middle;
}

.explore-vset-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.explore-vset-speed-group {
  display: inline-flex;
  align-items: center;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 99px;
  gap: 2px;
}

.explore-vset-speed-btn {
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 99px;
  line-height: 1;
  transition: all 0.14s ease;
}

.explore-vset-speed-btn.is-active {
  background: #ffffff;
  color: #161823;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
}

.explore-vset-switch {
  width: 42px;
  height: 24px;
  border-radius: 99px;
  border: 0;
  background: #e2e8f0;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: background 0.18s ease;
}

.explore-vset-switch.is-on {
  background: #10b981;
  justify-content: flex-end;
}

.explore-vset-switch-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
}

.explore-vset-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 4px 6px;
}

.explore-title-clamp {
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.32;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-title-icon {
  margin-right: 2px;
}

.explore-caption-wrap {
  font-size: 0.83rem;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.explore-caption-text {
  font-size: 0.83rem;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  overflow: hidden;
}

.explore-inline-toggle-btn {
  border: 0;
  background: transparent;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0 4px;
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
}

.explore-inline-toggle-btn:hover {
  color: var(--cyan);
}

.explore-inline-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 99px;
  border: 1px solid rgba(254, 44, 85, 0.75);
  background: rgba(254, 44, 85, 0.9);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  vertical-align: middle;
}

.explore-inline-detail-btn:hover {
  background: var(--brand-hover);
}

.explore-hashtag-onerow {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
}

.explore-hashtag-link,
.explore-hashtag-onerow .explore-hashtag-chip {
  flex-shrink: 0;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.explore-hashtag-link:hover,
.explore-hashtag-onerow .explore-hashtag-chip:hover {
  background: transparent !important;
  border: 0 !important;
  color: #ffffff;
  text-decoration: underline;
}

/* Floating Product Card Overlay on Video/Post */
.explore-product-overlay-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  border: 1.5px solid var(--brand);
}

.explore-product-overlay-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

.explore-product-overlay-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.explore-product-overlay-info {
  flex: 1;
  min-width: 0;
}

.explore-product-overlay-info strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-product-overlay-price {
  font-size: 0.86rem;
  font-weight: 900;
  color: var(--brand);
}

.explore-product-overlay-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.explore-author-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.explore-author-line strong {
  font-size: 0.96rem;
  font-weight: 800;
  color: #fff;
}

.explore-caption-text {
  font-size: 0.85rem;
  line-height: 1.44;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-height: 4.4em;
  overflow-y: auto;
}

.explore-progress-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  margin-top: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease, max-height 0.18s ease, margin-top 0.18s ease;
}

.explore-media-frame:hover .explore-progress-bar,
.explore-media-frame.is-settings-open .explore-progress-bar {
  opacity: 1;
  visibility: visible;
  max-height: 36px;
  margin-top: 2px;
  pointer-events: auto;
}

.explore-progress-bar input[type="range"] {
  flex: 1;
  accent-color: var(--brand);
  cursor: pointer;
}

/* Vertical Action Rail (Next to Video) */
.explore-action-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 4px 0;
  flex-shrink: 0;
  max-height: 100%;
}

.explore-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
}

.explore-rail-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 1.12rem;
  transition: all 0.15s ease;
}

.explore-rail-btn:hover .explore-rail-circle {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.06);
}

.explore-rail-btn.is-liked .explore-rail-circle {
  background: rgba(254, 44, 85, 0.25);
  border-color: var(--brand);
  color: var(--brand);
}

.explore-rail-btn.is-saved .explore-rail-circle {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--gold);
  color: var(--gold);
}

/* Discover glyphs and compact rhythm follow the existing phone action rail. */
.explore-action-rail { gap: 4px; }
.explore-action-rail > .explore-rail-btn {
  min-width: 44px;
  min-height: 52px;
  padding: 0;
  gap: 0;
  touch-action: manipulation;
}
.explore-rail-glyph, .explore-action-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
}
.explore-action-icon {
  border-radius: 50%;
  transition: transform .15s ease, background-color .15s ease;
}
.explore-action-icon svg { width: 31px; height: 31px; fill: currentColor; }
.explore-comment-dot { fill: #17202b; }
.explore-desktop-shell.is-light-theme .explore-comment-dot { fill: #fff; }
.explore-action-rail .explore-rail-btn.is-liked .explore-action-icon { color: #ff365f; }
.explore-action-rail .explore-rail-btn.is-saved .explore-action-icon { color: #ffd166; }
.explore-rail-btn:hover .explore-action-icon { background: #8882; }
.explore-rail-btn:active .explore-action-icon { transform: scale(.94); }
.explore-action-rail button:focus-visible { outline: 2px solid #16b8b0; outline-offset: 3px; border-radius: 8px; }
.explore-step-btn:disabled { opacity: .35; cursor: default; }

/* Up / Down Post Stepper integrated inside the right action rail */
.explore-step-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.explore-step-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
}

.explore-step-btn:hover:not(:disabled) {
  background: var(--brand);
  border-color: var(--brand);
}

/* Right Collapsible Comments & Product Drawer */
html:has(.explore-desktop-shell),
body:has(.explore-desktop-shell) {
  height: 100vh;
  overflow: hidden !important;
}

.explore-right-drawer {
  position: relative;
  background: #141722;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.explore-drawer-scroll-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.explore-drawer-scroll-body::-webkit-scrollbar,
.explore-drawer-top-profile::-webkit-scrollbar,
.explore-comments-list::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.explore-drawer-top-profile {
  padding: 14px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  max-height: none;
  overflow: visible;
}

.explore-drawer-tabs {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #141722;
  display: flex;
  align-items: center;
  border-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 6px;
  height: 46px;
  gap: 2px;
  flex-shrink: 0;
}

.explore-desktop-shell.is-light-theme .explore-drawer-tabs {
  background: #ffffff;
  border-top-color: transparent;
  border-bottom-color: #e2e8f0;
}

.explore-drawer-tabs-track {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.explore-drawer-tabs-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.explore-drawer-tabs-arrow {
  width: 24px;
  height: 28px;
  min-width: 24px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.explore-drawer-tabs-arrow:hover {
  background: rgba(254, 44, 85, 0.2);
  border-color: #fe2c55;
  color: #ffffff;
}

.explore-drawer-tabs-arrow.is-at-edge {
  opacity: 0.36;
}

.explore-desktop-shell.is-light-theme .explore-drawer-tabs-arrow {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.explore-desktop-shell.is-light-theme .explore-drawer-tabs-arrow:hover {
  background: #fff0f3;
  border-color: #fe2c55;
  color: #e11d48;
}

.explore-drawer-tab {
  flex: 1 0 auto;
  height: 100%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.81rem;
  font-weight: 800;
  white-space: nowrap;
  padding: 0 9px;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.explore-drawer-tab.is-active {
  color: #fff;
  border-bottom-color: currentColor;
}

.explore-comments-list {
  flex: 1 0 auto;
  overflow: visible;
  padding: 14px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.explore-creator-pane,
.explore-recommended-pane,
.explore-product-pane {
  padding: 10px 8px 28px;
  gap: 10px;
}

.explore-comment-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.explore-comment-item.is-reply {
  margin-left: 24px;
  padding-left: 12px;
  border-left: 2px solid rgba(254, 44, 85, 0.45);
}

.explore-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
}

.explore-comment-body {
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  overflow-wrap: anywhere;
}

.explore-comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.6);
}

.explore-comment-actions button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.explore-comment-actions button.is-active {
  color: var(--brand);
}

.explore-comment-form {
  position: relative;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #10121b;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.explore-comment-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.explore-comment-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 2px 6px 2px 10px;
  gap: 4px;
  transition: border-color 0.15s ease;
}

.explore-comment-input-wrap:focus-within {
  border-color: rgba(254, 44, 85, 0.75);
}

.explore-comment-input-row input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  padding: 7px 2px;
  color: #fff;
  font-size: 0.84rem;
}

.explore-comment-tools {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.explore-comment-tool-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0;
  transition: all 0.14s ease;
}

.explore-comment-tool-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  color: #25f4ee;
}

.explore-comment-attach-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.explore-comment-preview-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.76rem;
  color: #fff;
  max-width: 100%;
}

.explore-comment-preview-emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.explore-comment-preview-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.explore-comment-preview-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.explore-comment-preview-meta strong {
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.explore-comment-preview-meta small {
  font-size: 0.68rem;
  color: #34d399;
}

.explore-comment-preview-remove {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}

.explore-comment-preview-remove:hover {
  background: var(--brand);
}

.explore-comment-sticker-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border-radius: 11px;
  background: #1a1e2e;
  border: 1px solid rgba(255, 255, 255, 0.16);
  max-height: 190px;
  overflow-y: auto;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.explore-sticker-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  transition: all 0.14s ease;
}

.explore-sticker-option:hover {
  background: rgba(254, 44, 85, 0.2);
  border-color: rgba(254, 44, 85, 0.55);
  transform: translateY(-1px);
}

.explore-sticker-emoji {
  font-size: 1.45rem;
  line-height: 1.1;
}

.explore-sticker-option small {
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.explore-comment-mention-popup {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px;
  border-radius: 11px;
  background: #1a1e2e;
  border: 1px solid rgba(37, 244, 238, 0.35);
  max-height: 180px;
  overflow-y: auto;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.explore-mention-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
}

.explore-mention-option:hover {
  background: rgba(37, 244, 238, 0.14);
}

.explore-mention-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, #ff5e7e 100%);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.explore-mention-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.explore-mention-info strong {
  font-size: 0.8rem;
  color: #fff;
}

.explore-mention-info small {
  font-size: 0.72rem;
  color: #25f4ee;
}

.explore-mention-empty {
  padding: 6px 8px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.65);
}

.explore-comment-mention {
  display: inline;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: #25f4ee;
  font-weight: 800;
  font-size: inherit;
  cursor: pointer;
}

.explore-comment-mention:hover {
  text-decoration: underline;
}

.explore-comment-sticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.explore-comment-sticker-emoji {
  font-size: 1.85rem;
  line-height: 1;
}

.explore-comment-sticker-badge small {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.explore-comment-img-wrap {
  margin-top: 2px;
}

.explore-comment-img {
  max-width: 170px;
  max-height: 170px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  object-fit: cover;
  cursor: zoom-in;
  display: block;
}

/* ==========================================================================
   8. Modals & Drawers (Login, Quick-Buy Variant Picker, Lightbox, Chat, Notifications)
   ========================================================================== */

.desktop-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.desktop-modal-card {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.desktop-modal-card.is-report-seller-modal {
  max-width: 740px;
  width: min(740px, 94vw);
  min-height: 560px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}

.shop-auth-form { display:flex; flex-direction:column; gap:12px; min-width:0; }
.shop-auth-form p { margin:0; overflow-wrap:anywhere; }
.shop-auth-field { display:flex; flex-direction:column; gap:5px; font-weight:600; min-width:0; }
.shop-auth-field input { min-width:0; padding:10px 12px; border:1px solid var(--border); border-radius:9px; font:inherit; }
.shop-auth-form button { white-space:normal; min-height:44px; }
.shop-auth-error { color:#b91c1c; }
.shop-auth-status { color:#475569; }
@media (max-width: 844px) {
  .shop-auth-backdrop { padding:0; place-items:stretch; }
  .desktop-modal-card.shop-auth-card { max-width:none !important; max-height:100dvh; border-radius:0; padding:16px; }
}

.desktop-modal-card.explore-edit-profile-card {
  width: min(860px, 96vw) !important;
  max-width: min(860px, 96vw) !important;
  max-height: min(90vh, 900px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.desktop-modal-card.explore-privacy-settings-card {
  width: min(680px, 95vw) !important;
  max-width: min(680px, 95vw) !important;
  max-height: 88vh !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.explore-edit-profile-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

@media (max-width: 680px) {
  .explore-edit-profile-grid-2col,
  .explore-edit-profile-social-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

.desktop-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.desktop-modal-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 850;
}

.desktop-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}

/* Top-Right Anchored Notifications & Friends Network Dropdown Popover */
#navNotifBtn.is-notif-open,
#navFriendsBtn.is-friends-open {
  background: #e7f3ff !important;
  border-color: #93c5fd !important;
  color: #0866ff !important;
}

.desktop-notif-backdrop,
.explore-follow-network-backdrop.is-header-popover {
  background: transparent !important;
  backdrop-filter: none !important;
  display: block !important;
  padding: 0 !important;
}

.explore-follow-network-card.is-header-popover,
.desktop-notif-popover {
  position: fixed;
  top: calc(var(--header-h) + 6px);
  right: 16px;
  width: 380px !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100vh - var(--header-h) - 20px) !important;
  padding: 8px 8px 10px !important;
  border-radius: 14px;
  background: #ffffff;
  color: #050505;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1010;
}

.notif-popover-head,
.explore-follow-network-card .desktop-modal-head {
  margin-bottom: 4px !important;
  padding: 2px 8px 4px !important;
  border-bottom: 0 !important;
  align-items: center !important;
  min-height: 28px;
}

.notif-popover-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.notif-popover-heading,
.explore-follow-network-card .desktop-modal-head h3 {
  margin: 0 !important;
  font-size: 1.02rem !important;
  font-weight: 750 !important;
  color: #050505 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em;
}

.notif-popover-subcontext {
  margin: 0 !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  color: #65676b;
}

.notif-popover-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.notif-more-btn,
.notif-close-btn,
.explore-follow-network-card .desktop-close-btn {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50%;
  border: 0 !important;
  background: transparent !important;
  color: #606770;
  font-size: 0.98rem !important;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.14s ease;
}

.notif-more-btn:hover,
.notif-close-btn:hover,
.explore-follow-network-card .desktop-close-btn:hover {
  background: #f0f2f5 !important;
  color: #050505;
}

.notif-filter-pills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 2px 8px 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.notif-filter-pills::-webkit-scrollbar {
  display: none;
}

.notif-filter-pill {
  flex: 1 1 auto;
  padding: 5px 8px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #050505;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.notif-filter-pill:hover {
  background: #f0f2f5;
}

.notif-filter-pill.is-active {
  background: #e7f3ff;
  color: #0866ff;
}

.notif-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 10px 6px;
}

.notif-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #050505;
}

.notif-section-action {
  border: 0;
  background: transparent;
  color: #0866ff;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
}

.notif-section-action:hover {
  background: #f0f2f5;
}

.notif-popover-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.25) transparent;
}

.notif-popover-list::-webkit-scrollbar {
  width: 4px;
}

.notif-popover-list::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.notif-popover-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.notif-popover-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.14s ease;
  user-select: none;
}

.notif-popover-item:hover {
  background: #f2f4f7;
}

.notif-item-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  margin-top: 2px;
  flex-shrink: 0;
}

.notif-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0866ff 0%, #1d4ed8 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.notif-item-avatar.is-explore-av {
  background: linear-gradient(135deg, #fe2c55 0%, #7c3aed 100%);
}

.notif-item-avatar.is-shop-av {
  background: linear-gradient(135deg, #0866ff 0%, #0284c7 100%);
}

.notif-item-avatar.is-done-av {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.notif-item-avatar.is-alert-av {
  background: linear-gradient(135deg, #ef4444 0%, #ea580c 100%);
}

.notif-item-subbadge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.56rem;
  font-weight: 800;
  background: #0866ff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}

.notif-item-subbadge.is-comment-badge {
  background: #22c55e;
}

.notif-item-subbadge.is-video-badge {
  background: #fe2c55;
}

.notif-item-subbadge.is-shop-badge {
  background: #0866ff;
}

.notif-item-subbadge.is-alert-badge {
  background: #f97316;
}

.notif-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.notif-item-text {
  font-size: 0.89rem;
  line-height: 1.35;
  color: #050505;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-item-text strong {
  font-weight: 700;
  color: #050505;
}

.notif-item-time {
  font-size: 0.78rem;
  font-weight: 500;
  color: #65676b;
}

.notif-item-time.is-unread {
  color: #0866ff;
  font-weight: 600;
}

.notif-item-dot-col {
  width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-unread-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0866ff;
  display: inline-block;
}

.notif-empty-state {
  text-align: center;
  color: #65676b;
  font-size: 0.88rem;
  padding: 28px 12px;
  margin: 0;
}

/* Bottom-Right Docked Shop Chat Widget */
.desktop-chat-dock {
  position: fixed;
  right: 20px;
  bottom: 0;
  z-index: 950;
  width: 640px;
  max-width: calc(100vw - 28px);
  height: 510px;
  max-height: calc(100vh - 88px);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 36px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: height 0.2s ease, width 0.2s ease;
}

.desktop-chat-dock.is-minimized {
  width: 54px;
  height: 54px;
  right: 20px;
  bottom: 18px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transition: none;
}

.desktop-chat-dock.is-minimized .desktop-chat-dock-head,
.desktop-chat-dock.is-minimized .desktop-chat-dock-body {
  display: none !important;
}

.desktop-chat-mini-orb {
  display: none;
}

.desktop-chat-dock.is-minimized .desktop-chat-mini-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: linear-gradient(135deg, #fe2c55 0%, #be123c 100%);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(254, 44, 85, 0.45), 0 2px 8px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  padding: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.desktop-chat-dock.is-minimized .desktop-chat-mini-orb:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 30px rgba(254, 44, 85, 0.58), 0 4px 10px rgba(15, 23, 42, 0.28);
}

.desktop-chat-mini-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.28);
  pointer-events: none;
}

.desktop-chat-dock-head {
  height: 48px;
  padding: 0 14px;
  background: linear-gradient(135deg, #161823 0%, #2d1625 60%, #fe2c55 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}

.desktop-chat-dock-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  min-width: 0;
}

.desktop-chat-dock-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-chat-dock-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.desktop-chat-center-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.desktop-chat-center-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

.desktop-chat-ctrl-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.desktop-chat-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.desktop-chat-dock-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
}

.desktop-chat-dock.is-minimized .desktop-chat-dock-body {
  display: none;
}

.desktop-chat-threads {
  border-right: 1px solid var(--border);
  background: #f8fafc;
  padding: 10px 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.desktop-chat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #ffffff;
}

.desktop-chat-product-inquiry { flex:none; margin:8px 10px 0; padding:8px; border:1px solid #dce5eb; border-radius:10px; background:#f8fafc; }
.desktop-chat-product-inquiry[hidden] { display:none; }
.desktop-chat-product-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; color:#64748b; }
.desktop-chat-product-heading button { color:#475569; background:#e8eef2; }
.desktop-chat-product-card { display:flex; align-items:center; gap:10px; min-width:0; color:#0f172a; text-decoration:none; padding:6px; border:1px solid #e2e8f0; border-radius:8px; background:#fff; }
.desktop-chat-product-card:hover { border-color:#0f9b96; }
.desktop-chat-order-card { border-color:#93c5fd; background:linear-gradient(180deg,#ffffff 0%,#f0f9ff 100%); box-shadow:0 2px 6px rgba(15,23,42,0.06); }
.desktop-chat-order-card:hover { border-color:#0284c7; background:#e0f2fe; }
.desktop-chat-order-kicker { font-size:0.71rem !important; font-weight:800 !important; color:#0369a1 !important; line-height:1.25; }
.desktop-chat-order-cta { font-size:0.74rem !important; font-weight:800 !important; color:#0284c7 !important; text-decoration:underline; text-underline-offset:2px; }
.desktop-chat-order-text-link { display:block; color:inherit; text-decoration:underline; text-underline-offset:2px; cursor:pointer; font-weight:600; white-space:pre-line; }
.desktop-chat-order-text-link:hover { opacity:0.92; }
.desktop-chat-product-photo { display:grid; place-items:center; flex:0 0 58px; width:58px; height:58px; overflow:hidden; background:#edf1f4; border-radius:6px; }
.desktop-chat-product-photo img { width:100%; height:100%; object-fit:contain; }
.desktop-chat-product-info { display:flex; flex-direction:column; gap:3px; min-width:0; font-size:13px; line-height:1.4; color:#0f172a; }
.desktop-chat-product-info strong { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; font-weight:700; color:#0f172a; }
.desktop-chat-product-info b { color:#e11d48; font-weight:800; }
.desktop-chat-product-info small { font-size:12px; color:#64748b; }
.desktop-chat-messages .desktop-chat-product-card { margin-bottom:6px; }
@media (max-width:600px) {
  .shop-commerce-chat-dock:not(.is-minimized) { left:0; right:0; width:auto; max-width:none; }
  .shop-commerce-chat-dock .desktop-chat-dock-body { grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); }
  .shop-commerce-chat-dock .desktop-chat-threads { flex-direction:row; max-height:76px; border-right:0; border-bottom:1px solid var(--border); overflow-x:auto; }
  .shop-commerce-chat-dock .desktop-chat-threads button { flex:0 0 auto; max-width:180px; }
  .shop-commerce-chat-dock .desktop-chat-context-pill { display:none; }
}

.desktop-chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.desktop-chat-preview-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  background: #fff0f3;
  border-top: 1px solid #fecdd6;
  font-size: 0.78rem;
}

.desktop-chat-preview-strip img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid #fecdd6;
  background: #fff;
}

.desktop-chat-compose {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.desktop-chat-attach-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: #f8fafc;
  color: var(--ink);
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.desktop-chat-attach-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.desktop-chat-msg-img {
  display: block;
  max-width: 220px;
  max-height: 200px;
  border-radius: 9px;
  margin-top: 6px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  cursor: zoom-in;
  object-fit: cover;
}

/* Product Slide Video Gallery & Video Thumbnails */
.product-gallery-video-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  background: #0f172a;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
}

.product-gallery-video {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: contain;
  background: #000;
}

.product-gallery-video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(22, 24, 35, 0.85);
  border: 1px solid rgba(254, 44, 85, 0.6);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  pointer-events: none;
}

.product-thumb-btn.is-video-thumb {
  position: relative;
  border-color: #fe2c55;
}

.product-thumb-play-badge {
  position: absolute;
  inset: auto 3px 3px 3px;
  padding: 2px 4px;
  border-radius: 5px;
  background: rgba(254, 44, 85, 0.92);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
  pointer-events: none;
}

.product-thumb-btn.is-add-video-btn {
  border: 1.5px dashed #fe2c55;
  background: #fff0f3;
  color: #fe2c55;
  font-weight: 800;
  font-size: 0.72rem;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.15;
}

.product-thumb-btn.is-add-video-btn:hover {
  background: #ffe4e9;
}

/* Dedicated Explore Sub-Page Isolation, Loop Back to Shop & Sponsored Ad Cards */
.desktop-action-btn.is-return-shop {
  background: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
  border-color: #34d399;
  color: #ffffff;
  font-weight: 800;
}

.desktop-action-btn.is-return-shop:hover {
  background: linear-gradient(135deg, #0f766e 0%, #059669 100%);
}

.explore-return-shop-card {
  background: linear-gradient(145deg, rgba(254, 44, 85, 0.16) 0%, rgba(15, 23, 42, 0.92) 100%);
  border: 1px solid rgba(254, 44, 85, 0.42);
  border-radius: 13px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.explore-return-shop-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.explore-subpage-badge {
  display: inline-flex;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(37, 244, 238, 0.16);
  color: #25f4ee;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.explore-return-shop-head strong {
  font-size: 0.88rem;
  color: #fff;
}

.explore-return-shop-head small {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.35;
}

.explore-loop-shop-btn {
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(52, 211, 153, 0.55);
  background: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.explore-loop-shop-btn:hover {
  filter: brightness(1.08);
}

.explore-ad-campaign-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(254, 44, 85, 0.12) 100%);
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
}

.explore-ad-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.explore-ad-links.is-single-button {
  grid-template-columns: 1fr;
}

.explore-ad-link-btn {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #161823;
  font-size: 0.77rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.24);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.explore-ad-link-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.explore-ad-link-btn.is-outline {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  box-shadow: none;
}

.explore-sponsored-tag {
  display: inline-flex;
  width: fit-content;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(245, 158, 11, 0.22);
  color: #fde68a;
  font-size: 0.66rem;
  font-weight: 800;
  margin-bottom: 2px;
}

/* Footer */
.desktop-footer {
  background: #161823;
  color: rgba(255, 255, 255, 0.78);
  padding: 40px 24px;
  margin-top: 48px;
  border-top: 3px solid var(--brand);
}

.desktop-footer-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.desktop-footer h4 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
}

.desktop-footer p,
.desktop-footer li {
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 4px 0;
}

/* ==========================================================================
   TIKTOK-STYLE LEFT SIDEBAR, "MORE" FLYOUT & DESKTOP PROFILE PAGE (Images 1-4)
   ========================================================================== */
.explore-left-rail {
  position: relative;
}

.explore-sidebar-search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.explore-sidebar-search-pill:focus-within {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.explore-sidebar-search-pill input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 0.85rem;
}

.explore-sidebar-search-pill input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.explore-nav-icon-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.12rem;
}

.explore-nav-icon-wrap.is-cyan-ring {
  border-radius: 50%;
  border: 2px solid #00f2fe;
  background: rgba(0, 242, 254, 0.14);
  font-size: 0.85rem;
}

.explore-nav-icon-wrap.is-pink-ring {
  border-radius: 50%;
  border: 2px solid #fe2c55;
  background: rgba(254, 44, 85, 0.16);
  font-size: 0.85rem;
}

.explore-nav-icon-wrap.is-user-avatar {
  border-radius: 50%;
  background: linear-gradient(135deg, #fe2c55 0%, #7c3aed 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  overflow: hidden;
}

.explore-nav-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #fe2c55;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  border: 1.5px solid #131520;
}

.explore-nav-btn.is-more-open {
  outline: 1.5px solid #fe2c55;
  background: rgba(254, 44, 85, 0.12);
  color: #fff;
}

/* Following Accounts Section in Left Sidebar (Image 1) */
.explore-following-accounts-sec {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.explore-following-sec-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.56);
  padding: 0 6px 4px;
}

.explore-following-account-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.explore-following-account-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.explore-following-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fe2c55 0%, #2563eb 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1.5px solid rgba(0, 242, 254, 0.55);
}

.explore-following-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.explore-following-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.explore-following-meta strong {
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-following-meta small {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-view-all-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.explore-view-all-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Slide-out "More / Thêm" Secondary Flyout Drawer (Images 2 & 3) */
.explore-desktop-shell {
  position: relative;
}

.explore-more-flyout {
  position: absolute;
  top: 0;
  left: 265px;
  width: 300px;
  height: 100%;
  background: #1a1d2d;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 14px 0 36px rgba(0, 0, 0, 0.55);
  z-index: 120;
  padding: 18px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #fff;
}

.explore-desktop-shell.is-light-theme .explore-more-flyout {
  background: #ffffff;
  color: #161823;
  border-right-color: #e2e8f0;
  box-shadow: 12px 0 32px rgba(15, 23, 42, 0.14);
}

.explore-more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
}

.explore-more-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.explore-more-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.explore-more-section {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.explore-desktop-shell.is-light-theme .explore-more-section {
  border-bottom-color: #e2e8f0;
}

.explore-more-sec-label {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.55;
  padding: 4px 10px;
}

.explore-more-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease;
}

.explore-more-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.explore-desktop-shell.is-light-theme .explore-more-item:hover {
  background: #f1f5f9;
}

.explore-more-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.explore-theme-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.explore-desktop-shell.is-light-theme .explore-theme-pill-group {
  background: #f1f5f9;
}

.explore-theme-pill-btn {
  width: 28px;
  height: 24px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.explore-theme-pill-btn.is-active {
  background: #fe2c55;
  color: #fff;
}

.explore-rail-brand-title {
  font-size: 0.75rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.05em;
}

.explore-rail-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.explore-rail-theme-btn {
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.explore-rail-theme-btn:hover {
  background: rgba(254, 44, 85, 0.22);
  border-color: #fe2c55;
  color: #fff;
}

.explore-hashtag-sec-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.explore-drawer-product-card {
  background: #1e2233;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.explore-drawer-product-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 220px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.explore-comments-empty {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
}

.explore-comment-time {
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   SLIM, LIGHTWEIGHT VERTICAL SCROLLBARS (No Arrow Buttons, 4px Pill Thumb)
   ========================================================================== */
.explore-left-rail,
.explore-more-flyout,
.explore-comments-list,
.explore-profile-main,
.explore-comment-sticker-picker,
.explore-comment-mention-popup,
.desktop-modal-card,
.desktop-modal-body,
.desktop-chat-threads,
.desktop-chat-messages {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.22) transparent;
}

.explore-left-rail:hover,
.explore-more-flyout:hover,
.explore-comments-list:hover,
.explore-profile-main:hover,
.explore-comment-sticker-picker:hover,
.explore-comment-mention-popup:hover,
.desktop-modal-card:hover,
.desktop-modal-body:hover,
.desktop-chat-threads:hover,
.desktop-chat-messages:hover {
  scrollbar-color: rgba(148, 163, 184, 0.46) transparent;
}

.explore-left-rail::-webkit-scrollbar,
.explore-more-flyout::-webkit-scrollbar,
.explore-comments-list::-webkit-scrollbar,
.explore-profile-main::-webkit-scrollbar,
.explore-comment-sticker-picker::-webkit-scrollbar,
.explore-comment-mention-popup::-webkit-scrollbar,
.desktop-modal-card::-webkit-scrollbar,
.desktop-modal-body::-webkit-scrollbar,
.desktop-chat-threads::-webkit-scrollbar,
.desktop-chat-messages::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.explore-left-rail::-webkit-scrollbar-button,
.explore-more-flyout::-webkit-scrollbar-button,
.explore-comments-list::-webkit-scrollbar-button,
.explore-profile-main::-webkit-scrollbar-button,
.explore-comment-sticker-picker::-webkit-scrollbar-button,
.explore-comment-mention-popup::-webkit-scrollbar-button,
.desktop-modal-card::-webkit-scrollbar-button,
.desktop-modal-body::-webkit-scrollbar-button,
.desktop-chat-threads::-webkit-scrollbar-button,
.desktop-chat-messages::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.explore-left-rail::-webkit-scrollbar-track,
.explore-more-flyout::-webkit-scrollbar-track,
.explore-comments-list::-webkit-scrollbar-track,
.explore-profile-main::-webkit-scrollbar-track,
.explore-comment-sticker-picker::-webkit-scrollbar-track,
.explore-comment-mention-popup::-webkit-scrollbar-track,
.desktop-modal-card::-webkit-scrollbar-track,
.desktop-modal-body::-webkit-scrollbar-track,
.desktop-chat-threads::-webkit-scrollbar-track,
.desktop-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.explore-left-rail::-webkit-scrollbar-thumb,
.explore-more-flyout::-webkit-scrollbar-thumb,
.explore-comments-list::-webkit-scrollbar-thumb,
.explore-profile-main::-webkit-scrollbar-thumb,
.explore-comment-sticker-picker::-webkit-scrollbar-thumb,
.explore-comment-mention-popup::-webkit-scrollbar-thumb,
.desktop-modal-card::-webkit-scrollbar-thumb,
.desktop-modal-body::-webkit-scrollbar-thumb,
.desktop-chat-threads::-webkit-scrollbar-thumb,
.desktop-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
}

.explore-left-rail:hover::-webkit-scrollbar-thumb,
.explore-more-flyout:hover::-webkit-scrollbar-thumb,
.explore-comments-list:hover::-webkit-scrollbar-thumb,
.explore-profile-main:hover::-webkit-scrollbar-thumb,
.explore-comment-sticker-picker:hover::-webkit-scrollbar-thumb,
.explore-comment-mention-popup:hover::-webkit-scrollbar-thumb,
.desktop-modal-card:hover::-webkit-scrollbar-thumb,
.desktop-modal-body:hover::-webkit-scrollbar-thumb,
.desktop-chat-threads:hover::-webkit-scrollbar-thumb,
.desktop-chat-messages:hover::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
}

.explore-left-rail::-webkit-scrollbar-thumb:hover,
.explore-more-flyout::-webkit-scrollbar-thumb:hover,
.explore-comments-list::-webkit-scrollbar-thumb:hover,
.explore-profile-main::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.68);
}

/* ==========================================================================
   COMPREHENSIVE LIGHT / DARK THEME FOR EXPLORE PAGE (/explore & /explore/profile)
   ========================================================================== */
body.is-explore-dedicated-mode.is-explore-light-theme .desktop-header {
  background: #ffffff;
  color: #161823;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

body.is-explore-dedicated-mode #brandLogoMark {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #31102f 100%);
  border: 1.5px solid rgba(254, 44, 85, 0.45);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.24);
}

body.is-explore-dedicated-mode #headerBrandTitle {
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fe2c55 0%, #a855f7 52%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.is-explore-dedicated-mode.is-explore-light-theme .desktop-brand-text strong {
  color: #161823;
}

body.is-explore-dedicated-mode.is-explore-light-theme .desktop-brand-text small {
  color: #64748b;
}

body.is-explore-dedicated-mode.is-explore-light-theme .desktop-mode-nav {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

body.is-explore-dedicated-mode.is-explore-light-theme .desktop-mode-tab:not(.is-active) {
  color: #334155;
}

body.is-explore-dedicated-mode.is-explore-light-theme .desktop-search-form {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

body.is-explore-dedicated-mode.is-explore-light-theme .desktop-action-btn:not(.is-accent),
body.is-explore-dedicated-mode.is-explore-light-theme .desktop-user-pill {
  background: #f8fafc;
  color: #161823;
  border-color: #cbd5e1;
}

body.is-explore-dedicated-mode.is-explore-light-theme .desktop-action-btn:not(.is-accent):hover,
body.is-explore-dedicated-mode.is-explore-light-theme .desktop-user-pill:hover {
  background: #fff0f3;
  border-color: #fe2c55;
  color: #fe2c55;
}

.explore-desktop-shell.is-light-theme {
  background: #f8fafc;
  color: #161823;
}

.explore-desktop-shell.is-light-theme .explore-left-rail {
  background: #ffffff;
  color: #161823;
  border-right-color: #e2e8f0;
}

.explore-desktop-shell.is-light-theme .explore-rail-collapse-row,
.explore-desktop-shell.is-light-theme .explore-following-accounts-sec {
  border-color: #e2e8f0;
}

.explore-desktop-shell.is-light-theme .explore-rail-brand-title,
.explore-desktop-shell.is-light-theme .explore-following-sec-title,
.explore-desktop-shell.is-light-theme .explore-hashtag-sec-title {
  color: #64748b;
}

.explore-desktop-shell.is-light-theme .explore-rail-theme-btn,
.explore-desktop-shell.is-light-theme .explore-rail-collapse-btn {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #334155;
}

.explore-desktop-shell.is-light-theme .explore-rail-theme-btn:hover,
.explore-desktop-shell.is-light-theme .explore-rail-collapse-btn:hover {
  background: #334155;
  border-color: #334155;
  color: #ffffff;
}

.explore-desktop-shell.is-light-theme .explore-sidebar-search-pill {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.explore-desktop-shell.is-light-theme .explore-sidebar-search-pill:focus-within {
  background: #ffffff;
  border-color: #94a3b8;
}

.explore-desktop-shell.is-light-theme .explore-sidebar-search-pill input {
  color: #161823;
}

.explore-desktop-shell.is-light-theme .explore-sidebar-search-pill input::placeholder {
  color: #64748b;
}

.explore-desktop-shell.is-light-theme .explore-nav-btn,
.explore-desktop-shell.is-light-theme .explore-following-account-item,
.explore-desktop-shell.is-light-theme .explore-following-meta strong {
  color: #161823;
}

.explore-desktop-shell.is-light-theme .explore-following-meta small,
.explore-desktop-shell.is-light-theme .explore-view-all-btn {
  color: #64748b;
}

.explore-desktop-shell.is-light-theme .explore-nav-btn:hover,
.explore-desktop-shell.is-light-theme .explore-following-account-item:hover,
.explore-desktop-shell.is-light-theme .explore-view-all-btn:hover {
  background: #f1f5f9;
  color: #161823;
}

.explore-desktop-shell.is-light-theme .explore-nav-btn.is-active {
  color: #fe2c55;
  background: #fff0f3;
}

.explore-desktop-shell.is-light-theme .explore-nav-badge {
  border-color: #ffffff;
}

.explore-desktop-shell.is-light-theme .explore-return-shop-card {
  background: linear-gradient(145deg, #fff0f3 0%, #f8fafc 100%);
  border-color: #fecdd6;
}

.explore-desktop-shell.is-light-theme .explore-return-shop-head strong {
  color: #161823;
}

.explore-desktop-shell.is-light-theme .explore-subpage-badge {
  background: #ccfbf1;
  color: #0f766e;
}

.explore-desktop-shell.is-light-theme .explore-ad-campaign-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fff1f2 100%);
  border-color: #fcd34d;
}

.explore-desktop-shell.is-light-theme .explore-ad-link-btn.is-outline {
  background: #ffffff;
  border-color: #f59e0b;
  color: #92400e;
}

.explore-desktop-shell.is-light-theme .explore-hashtag-chip {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.explore-desktop-shell.is-light-theme .explore-hashtag-chip:hover,
.explore-desktop-shell.is-light-theme .explore-hashtag-chip.is-active {
  background: #fe2c55;
  border-color: #fe2c55;
  color: #ffffff;
}

.explore-desktop-shell.is-light-theme .explore-center-stage {
  background: radial-gradient(circle at center, #ffffff 0%, #eef2f6 100%);
}

.explore-desktop-shell.is-light-theme .explore-media-frame {
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.22);
  border-color: #cbd5e1;
}

.explore-desktop-shell.is-light-theme .explore-rail-btn {
  color: #161823;
}

.explore-desktop-shell.is-light-theme .explore-rail-circle,
.explore-desktop-shell.is-light-theme .explore-step-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #161823;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.explore-desktop-shell.is-light-theme .explore-rail-btn:hover .explore-rail-circle,
.explore-desktop-shell.is-light-theme .explore-step-btn:hover:not(:disabled) {
  background: #fff0f3;
  border-color: #fe2c55;
  color: #fe2c55;
}

.explore-desktop-shell.is-light-theme .explore-step-controls {
  border-top-color: #cbd5e1;
}

.explore-desktop-shell.is-light-theme .explore-right-drawer {
  background: #ffffff;
  color: #161823;
  border-left-color: #e2e8f0;
}

.explore-desktop-shell.is-light-theme .explore-drawer-tabs {
  background: #ffffff;
  border-bottom-color: #e2e8f0;
}

.explore-desktop-shell.is-light-theme .explore-drawer-tab {
  color: #64748b;
}

.explore-desktop-shell.is-light-theme .explore-drawer-tab.is-active {
  color: #161823;
  border-bottom-color: #161823;
}

.explore-desktop-shell.is-light-theme .explore-drawer-product-card {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #161823;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.explore-desktop-shell.is-light-theme .explore-comments-empty,
.explore-desktop-shell.is-light-theme .explore-comment-time,
.explore-desktop-shell.is-light-theme .explore-comment-actions {
  color: #64748b;
}

.explore-desktop-shell.is-light-theme .explore-comment-item {
  border-bottom-color: #f1f5f9;
}

.explore-desktop-shell.is-light-theme .explore-comment-body {
  color: #1e293b;
}

.explore-desktop-shell.is-light-theme .explore-comment-mention {
  color: #0284c7;
}

.explore-desktop-shell.is-light-theme .explore-comment-sticker-badge {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.explore-desktop-shell.is-light-theme .explore-comment-sticker-badge small {
  color: #334155;
}

.explore-desktop-shell.is-light-theme .explore-comment-form {
  background: #f8fafc;
  border-top-color: #e2e8f0;
}

.explore-comment-reply-banner,
.explore-desktop-shell.is-light-theme .explore-comment-reply-banner {
  background: #e5e7eb !important;
  color: #111827 !important;
  border: 1px solid #d1d5db !important;
  font-weight: 600;
}
.explore-comment-reply-banner span,
.explore-comment-reply-banner button {
  color: #111827 !important;
}

.explore-desktop-shell.is-light-theme .explore-comment-input-wrap {
  background: #ffffff;
  border-color: #cbd5e1;
}

.explore-desktop-shell.is-light-theme .explore-comment-input-row input {
  color: #161823;
}

.explore-desktop-shell.is-light-theme .explore-comment-tool-btn {
  color: #475569;
}

.explore-desktop-shell.is-light-theme .explore-comment-tool-btn:hover:not(:disabled) {
  background: #f1f5f9;
  color: #fe2c55;
}

.explore-desktop-shell.is-light-theme .explore-comment-sticker-picker,
.explore-desktop-shell.is-light-theme .explore-comment-mention-popup {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #161823;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.explore-desktop-shell.is-light-theme .explore-sticker-option {
  background: #f8fafc;
  color: #161823;
}

.explore-desktop-shell.is-light-theme .explore-mention-option,
.explore-desktop-shell.is-light-theme .explore-mention-info strong {
  color: #161823;
}

.explore-desktop-shell.is-light-theme .explore-mention-info small {
  color: #0284c7;
}

/* ==========================================================================
   FULL DESKTOP PROFILE PAGE (/explore/profile & /explore/profile/:userId - Image 4)
   ========================================================================== */
.explore-profile-shell {
  grid-template-columns: 265px minmax(0, 1fr) !important;
}

.explore-profile-shell.is-left-collapsed {
  grid-template-columns: minmax(0, 1fr) !important;
}

.explore-profile-main {
  height: 100%;
  overflow-y: auto;
  padding: 28px 36px 48px;
  position: relative;
}

.explore-profile-header {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  max-width: 980px;
  padding-bottom: 24px;
}

.explore-profile-avatar-lg {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fe2c55 0%, #6366f1 100%);
  color: #fff;
  font-size: 2.4rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.explore-profile-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.explore-profile-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.explore-profile-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.explore-profile-title-row h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.explore-profile-username {
  font-size: 0.95rem;
  opacity: 0.65;
  font-weight: 600;
}

.explore-profile-stats-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.explore-profile-stat-btn {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.explore-profile-stat-btn:hover strong {
  color: #fe2c55;
}

.explore-profile-stat-btn strong {
  font-weight: 900;
  font-size: 1.05rem;
}

.explore-profile-stat-btn span {
  opacity: 0.7;
  font-weight: 600;
}

.explore-profile-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.explore-profile-action-pill {
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.explore-desktop-shell.is-light-theme .explore-profile-action-pill {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #161823;
}

.explore-profile-action-pill:hover {
  border-color: #fe2c55;
  background: rgba(254, 44, 85, 0.14);
}

.explore-profile-action-pill.is-primary {
  background: #fe2c55;
  border-color: #fe2c55;
  color: #fff;
}

.explore-profile-action-pill.is-icon {
  padding: 8px 11px;
}

.explore-profile-bio {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.86rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-top: 4px;
}

.explore-profile-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.explore-desktop-shell.is-light-theme .explore-profile-tabs-bar {
  border-bottom-color: #e2e8f0;
}

.explore-profile-tabs-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.explore-profile-tab-btn {
  padding: 11px 18px;
  border: 0;
  border-bottom: 2.5px solid transparent;
  background: transparent;
  color: inherit;
  opacity: 0.65;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.explore-profile-tab-btn.is-active {
  opacity: 1;
  border-bottom-color: currentColor;
}

.explore-profile-sort-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
}

.explore-desktop-shell.is-light-theme .explore-profile-sort-group {
  background: #f1f5f9;
}

.explore-profile-sort-btn {
  padding: 5px 11px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.7;
  cursor: pointer;
}

.explore-profile-sort-btn.is-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.16);
}

.explore-desktop-shell.is-light-theme .explore-profile-sort-btn.is-active {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.explore-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 14px;
}

.explore-profile-post-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #161926;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.explore-profile-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.explore-profile-post-card video,
.explore-profile-post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.explore-profile-pin-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 5px;
  background: #fe2c55;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  z-index: 2;
}

.explore-profile-card-foot {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 10px 8px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.78) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
}

.explore-profile-card-title {
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-profile-card-views {
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   IMAGE 3 CREATOR & POST SUMMARY CARD + "ĐỀ XUẤT" TAB GRID IN RIGHT DRAWER
   ========================================================================== */
.explore-drawer-creator-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 2px;
}

.explore-creator-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.explore-desktop-shell.is-light-theme .explore-creator-box {
  background: #f3f4f6;
  border-color: transparent;
  color: #161823;
}

.explore-creator-actions-outer {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.explore-creator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.explore-creator-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}

.explore-creator-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fe2c55 0%, #6366f1 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.explore-creator-author-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.explore-creator-author-meta strong {
  font-size: 0.94rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-creator-author-meta small {
  font-size: 0.76rem;
  opacity: 0.65;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-creator-follow-btn {
  padding: 7px 16px;
  border-radius: 7px;
  border: 0;
  background: #fe2c55;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter 0.15s ease;
}

.explore-creator-follow-btn:hover {
  filter: brightness(1.08);
}

.explore-creator-follow-btn.is-following {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
}

.explore-desktop-shell.is-light-theme .explore-creator-follow-btn.is-following {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #161823;
}

.explore-creator-caption {
  font-size: 0.85rem;
  line-height: 1.44;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.explore-creator-hashtag {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: none;
}

.explore-desktop-shell.is-light-theme .explore-creator-hashtag {
  color: #2563eb;
}

.explore-creator-hashtag:hover {
  text-decoration: underline;
}

.explore-creator-meta-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
}

.explore-creator-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-creator-meta-icon.is-pin {
  color: #10b981;
}

.explore-creator-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  flex-wrap: wrap;
}

.explore-creator-counts {
  display: flex;
  align-items: center;
  gap: 10px;
}

.explore-creator-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.explore-desktop-shell.is-light-theme .explore-creator-stat-pill {
  background: #e2e8f0;
  color: #161823;
}

.explore-creator-share-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.explore-creator-share-circle {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.explore-creator-share-circle svg {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.explore-creator-share-circle:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}

.explore-creator-share-circle.is-repost {
  background: #f59e0b;
}

.explore-creator-share-circle.is-embed {
  background: #475569;
}

.explore-creator-share-circle.is-msg {
  background: #fe2c55;
}

.explore-creator-share-circle.is-fb {
  background: #0866ff;
}

.explore-creator-share-circle.is-more {
  background: #10b981;
}

.explore-creator-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px 6px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.explore-desktop-shell.is-light-theme .explore-creator-link-box {
  background: #eef2f6;
  border-color: #cbd5e1;
}

.explore-creator-link-url {
  font-size: 0.75rem;
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.explore-creator-copy-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.explore-creator-copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.explore-desktop-shell.is-light-theme .explore-creator-copy-btn:hover {
  background: #ffffff;
}

/* Comment Row with Left Circular Avatar & Right Heart Button (Image 3) */
.explore-comment-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.explore-comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.explore-comment-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.explore-comment-like-btn {
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.7;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 6px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.explore-comment-like-btn.is-active {
  color: #fe2c55;
  opacity: 1;
}

/* Recommended "Đề xuất" Tab Grid inside Right Drawer */
.explore-rec-filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.explore-rec-filter-pill {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.explore-desktop-shell.is-light-theme .explore-rec-filter-pill {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.explore-rec-filter-pill.is-active {
  background: #fe2c55;
  border-color: #fe2c55;
  color: #ffffff;
}

.explore-recommended-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.explore-rec-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.explore-rec-card:hover {
  transform: translateY(-2px);
  border-color: #fe2c55;
}

.explore-rec-card.is-playing {
  border-color: #fe2c55;
  box-shadow: 0 0 0 1px #fe2c55;
}

.explore-drawer-floating-pill {
  position: absolute;
  right: 16px;
  bottom: 72px;
  z-index: 36;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(24, 27, 40, 0.96);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.explore-drawer-floating-pill.is-now-playing {
  bottom: 18px;
}

.explore-drawer-floating-pill:hover {
  transform: translateY(-2px);
}

.explore-desktop-shell.is-light-theme .explore-drawer-floating-pill {
  background: #ffffff;
  color: #161823;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.14);
}

.explore-float-chevron {
  font-size: 0.74rem;
  line-height: 1;
}

.explore-comment-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fe2c55 0%, #6366f1 100%);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.explore-comment-send-circle {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
  flex-shrink: 0;
}

.explore-rec-card video,
.explore-rec-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.explore-rec-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
  z-index: 2;
}

.explore-rec-badge.is-live {
  background: #fe2c55;
}

.explore-rec-badge.is-shop {
  background: #0d9488;
}

.explore-rec-card-foot {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 8px 7px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
}

.explore-rec-card-title {
  font-size: 0.73rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-rec-card-views {
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.92;
}

/* Compact Attached Product Card inside Right Drawer (below Image 3 Creator Card) */
.explore-drawer-product-card.is-compact-attached {
  padding: 8px 10px;
  gap: 6px;
  border-radius: 10px;
  border: 1px solid rgba(254, 44, 85, 0.32);
  background: linear-gradient(145deg, rgba(254, 44, 85, 0.08) 0%, rgba(30, 34, 51, 0.92) 100%);
  margin-bottom: 2px;
}

.explore-desktop-shell.is-light-theme .explore-drawer-product-card.is-compact-attached {
  background: linear-gradient(145deg, #fff5f7 0%, #ffffff 100%);
  border-color: #fecdd6;
  color: #161823;
}

.explore-attached-prod-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
}

.explore-attached-prod-badge {
  font-size: 0.7rem !important;
  padding: 2px 8px !important;
  line-height: 1.25 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 62px);
}

.explore-attached-prod-head small,
.explore-attached-prod-stock {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.78;
  white-space: nowrap;
  flex-shrink: 0;
}

.explore-attached-prod-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.explore-attached-prod-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.explore-attached-prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.explore-attached-prod-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.explore-attached-prod-info h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-attached-prod-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
}

.explore-attached-prod-info .product-price-current {
  font-size: 0.92rem;
  font-weight: 850;
  white-space: nowrap;
}

.explore-attached-prod-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.explore-attached-prod-actions .explore-attached-btn {
  height: 26px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1;
}

/* ==========================================================================
   MOBILE-MATCHED BOTTOM MUSIC DISC ROW, SLIDE DOTS & SOURCE AVATAR RAIL BUTTON
   ========================================================================== */
@keyframes discover-disc-spin {
  to {
    transform: rotate(360deg);
  }
}

.explore-slide-dots {
  position: absolute;
  left: 50%;
  bottom: 138px;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
}

.explore-slide-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.16s ease, background 0.16s ease;
}

.explore-slide-dot.is-active {
  width: 18px;
  background: #ffffff;
}

.explore-views-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.explore-bottom-music-row {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.explore-post-music {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  max-width: 100%;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.explore-post-music b {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(#087c7b 0 20%, #34464f 23% 42%, #11222b 45% 68%, #71868b 72%);
  color: #5eead4;
  font-size: 14px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  animation: discover-disc-spin 6s linear infinite;
  animation-play-state: paused;
}

.explore-post-music.is-playing b {
  animation-play-state: running;
}

.explore-post-music span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
}

.explore-origin-audio-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  color: #ffffff;
}

.explore-origin-audio-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: #ffffff;
  opacity: 0.92;
  display: inline-block;
  vertical-align: middle;
}

.explore-creator-meta-icon.is-origin-audio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.explore-creator-meta-icon.is-origin-audio .explore-origin-audio-icon {
  color: currentColor;
}

.explore-source-avatar-btn {
  padding: 0;
}

.explore-source-avatar-disc {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #087d7e 0%, #1e293b 100%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.explore-source-avatar-disc img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.explore-source-avatar-initial {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
}

.explore-source-search-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  background: #087d7e;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
}

/* ==========================================================================
   POST OWNER EDIT / DELETE CONTROLS & UNIFIED SLIDE COMPOSER STRIP
   ========================================================================== */
.explore-creator-owner-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.explore-creator-more-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.explore-creator-more-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.explore-creator-more-btn:hover,
.explore-creator-more-btn[aria-expanded="true"] {
  background: rgba(254, 44, 85, 0.18);
  border-color: #fe2c55;
  color: #fe2c55;
}

.explore-desktop-shell.is-light-theme .explore-creator-more-btn {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #161823;
}

.explore-desktop-shell.is-light-theme .explore-creator-more-btn:hover,
.explore-desktop-shell.is-light-theme .explore-creator-more-btn[aria-expanded="true"] {
  background: #fff0f3;
  border-color: #fe2c55;
  color: #fe2c55;
}

.explore-creator-more-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 170px;
  padding: 5px;
  border-radius: 10px;
  background: #1e2233;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.explore-desktop-shell.is-light-theme .explore-creator-more-menu {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.explore-creator-more-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.explore-creator-more-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.explore-desktop-shell.is-light-theme .explore-creator-more-item:hover {
  background: #f1f5f9;
}

.explore-creator-more-item.is-danger {
  color: #f87171;
}

.explore-desktop-shell.is-light-theme .explore-creator-more-item.is-danger {
  color: #e11d48;
}

.explore-creator-more-item.is-danger:hover {
  background: rgba(239, 68, 68, 0.14);
}

.explore-desktop-shell.is-light-theme .explore-creator-more-item.is-danger:hover {
  background: #fff0f3;
}

.explore-frame-edit-pill {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.explore-frame-edit-pill:hover {
  background: #fe2c55;
  border-color: #fe2c55;
}

.explore-card-edit-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 4;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.84);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: background 0.14s ease;
}

.explore-card-edit-btn:hover {
  background: #fe2c55;
  border-color: #fe2c55;
}

.explore-composer-slide-strip {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 2px 4px;
}

.explore-composer-slide-strip:empty {
  display: none;
}

.explore-composer-slide-card {
  width: 112px;
  flex: 0 0 112px;
  border-radius: 10px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.explore-composer-slide-card.is-selected {
  border-color: #fe2c55;
  box-shadow: 0 0 0 2px rgba(254, 44, 85, 0.2);
}

.explore-composer-slide-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #0f172a;
  cursor: pointer;
  overflow: hidden;
}

.explore-composer-slide-thumb img,
.explore-composer-slide-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.explore-composer-slide-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 800;
}

.explore-composer-slide-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 5px 6px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.explore-composer-slide-btn {
  flex: 1;
  height: 24px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.explore-composer-slide-btn:hover:not(:disabled) {
  border-color: #0866ff;
  color: #0866ff;
}

.explore-composer-slide-btn.is-danger:hover:not(:disabled) {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

/* ==========================================================================
   INTEGRATED MOBILE PHOTO EDITOR (createPhotoComposer) & SAMe STUDIO (createStudioWorkspace)
   ========================================================================== */
.explore-studio-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.explore-studio-entry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 68px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px solid #4eb3ab;
  background: linear-gradient(165deg, #ecfaf8 0%, #dcf3f0 100%);
  color: #0c625e;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(15, 118, 110, 0.1);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  text-align: center;
}

.explore-studio-entry-card.is-studio-card {
  border-color: #8e80cc;
  background: linear-gradient(165deg, #f3f0ff 0%, #e6e0fb 100%);
  color: #473578;
  box-shadow: 0 3px 10px rgba(79, 60, 130, 0.12);
}

.explore-studio-entry-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.18);
}

.explore-studio-entry-card.is-studio-card:hover {
  box-shadow: 0 6px 16px rgba(79, 60, 130, 0.22);
}

.explore-studio-entry-card strong {
  display: block;
  width: 100%;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(19, 104, 100, 0.18);
  font-size: 0.86rem;
  font-weight: 800;
}

.explore-studio-entry-card.is-studio-card strong {
  border-bottom-color: rgba(79, 60, 130, 0.2);
}

.explore-studio-entry-card small {
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0.92;
}

.explore-composer-slide-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 5px 6px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.explore-composer-slide-tools.is-single-col {
  grid-template-columns: 1fr;
}

.explore-composer-slide-tool-btn {
  height: 26px;
  border-radius: 6px;
  border: 1px solid #7ce3dc;
  background: #0d7a77;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.explore-composer-slide-tool-btn.is-studio {
  border-color: #8e80cc;
  background: #473578;
}

.explore-composer-slide-tool-btn:hover {
  filter: brightness(1.08);
}

/* Shared back icon and media tool icon */
button:has(> .mobile-back-icon) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 !important;
  line-height: 1 !important;
}
button:has(> .mobile-back-icon)::before { content: none !important; }
button > .mobile-back-icon {
  display: block !important;
  flex: 0 0 24px;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m15.5 5-7 7 7 7' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/24px 24px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m15.5 5-7 7 7 7' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/24px 24px no-repeat;
  pointer-events: none;
}
.media-tool-icon { display: block; width: 24px; height: 24px; flex: none; pointer-events: none; }

/* Full-screen Photo Editor Dialog (.discover-photo-page) */
.discover-photo-page {
  position: fixed;
  inset: 0;
  z-index: 9800;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #070709;
  color: #f4f8fa;
  color-scheme: dark;
  overflow: hidden;
  font-family: var(--app-font-ui);
}
.discover-photo-page[open] { display: flex; flex-direction: column; }
.discover-photo-page::backdrop { background: rgba(0, 0, 0, 0.72); }
.discover-photo-page [hidden] { display: none !important; }
.discover-photo-page .photo-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.discover-photo-page > header {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  padding: 10px 16px;
  background: linear-gradient(#090a0df2, #090a0d99, transparent);
  border: 0;
  pointer-events: none;
}
.discover-photo-page > header > div { display: none; }
.discover-photo-page > header button,
.discover-photo-page > footer button {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  background: #303032d9;
  color: white;
  cursor: pointer;
}
.discover-photo-page > header svg,
.discover-photo-rail svg,
.discover-photo-page > footer svg { width: 24px; height: 24px; }
.discover-photo-page.same-studio-editor > header [data-photo-save] {
  background: #61e5d6;
  color: #08201c;
  border-radius: 13px;
  border: 0;
}
.same-studio-editor > header .studio-header-music {
  position: static;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  max-width: 280px;
  margin: 0 auto;
  pointer-events: auto;
}
.same-studio-editor > header button.studio-header-music,
.same-studio-editor > header .studio-header-music > button {
  display: block;
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  flex: 1;
  padding: 8px 14px;
  border: 1px solid #ffffff25;
  border-radius: 20px;
  background: #1b2028;
  color: #eee;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.discover-photo-page .discover-photo-content {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 0;
  overflow: hidden;
  min-height: 0;
}
.discover-photo-page .discover-photo-stage {
  position: relative;
  flex: 1;
  height: auto;
  min-height: 0;
  max-height: none;
  border-radius: 0;
  background: #070709;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.discover-photo-page .discover-photo-canvas {
  position: relative;
  flex: none;
  background: repeating-conic-gradient(#172d35 0% 25%, #203942 0% 50%) 0 0 / 16px 16px;
}
.discover-photo-stage .discover-photo-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  touch-action: none;
}
.discover-photo-stage [role=status] {
  position: absolute;
  color: white;
  font-size: 14px;
}
.discover-photo-stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  touch-action: none;
}
.discover-photo-stickers [data-photo-sticker] {
  position: absolute;
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
}
.discover-photo-stickers [data-photo-sticker].is-selected {
  outline: 2px dashed #fff;
  box-shadow: 0 0 0 1px #087b7e;
}
.discover-photo-stickers [data-photo-sticker] svg {
  display: block;
  width: 100%;
  height: 100%;
}
.discover-photo-stickers [data-photo-sticker-resize],
.discover-photo-stickers [data-photo-sticker-move],
.discover-photo-stickers [data-photo-sticker-delete-inline] {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: white;
  pointer-events: auto;
  touch-action: none;
  cursor: pointer;
}
.discover-photo-stickers [data-photo-sticker-resize] > span,
.discover-photo-stickers [data-photo-sticker-move] > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid white;
  border-radius: 50%;
  background: #087b7e;
  box-shadow: 0 1px 3px #0005;
  font-size: 12px;
  pointer-events: none;
}
.discover-photo-stickers [data-photo-sticker-resize] svg { width: 12px; height: 12px; }
.discover-photo-stickers [data-photo-sticker-delete-inline] > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #b33443;
  box-shadow: 0 1px 3px #0005;
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}
.discover-photo-page.is-cropping .discover-photo-canvas { overflow: hidden; }
.discover-photo-crop-region {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2000px #0008;
  touch-action: none;
  cursor: move;
  background:
    linear-gradient(to right, transparent 33%, #ffffff70 33%, #ffffff70 calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, #ffffff70 66%, #ffffff70 calc(66% + 1px), transparent calc(66% + 1px)),
    linear-gradient(to bottom, transparent 33%, #ffffff70 33%, #ffffff70 calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, #ffffff70 66%, #ffffff70 calc(66% + 1px), transparent calc(66% + 1px));
}

/* Bottom Dock, Quick Options & Tool Rail */
.discover-photo-page.same-studio-editor { --studio-accent: #61e5d6; --studio-panel: #181a20; }
.discover-photo-page.same-studio-editor > .discover-photo-bottom-dock {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 6px 0 0;
  background: #090a0d;
  box-sizing: border-box;
}
.discover-photo-page.same-studio-editor .discover-photo-bottom-dock > footer {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  min-height: 50px;
  max-width: 720px;
  width: calc(100% - 24px);
  margin: 0 auto;
  padding: 4px 10px;
  border: 1px solid #486e75;
  border-radius: 12px;
  background: #102129;
}
.discover-photo-page.same-studio-editor .discover-photo-bottom-dock > footer button {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.discover-photo-page.same-studio-editor .discover-photo-bottom-dock > footer [data-photo-add-image] {
  background: #087b7e;
  border: 1px solid #87dbd0;
}
.discover-photo-navigation { display: flex; align-items: center; gap: 6px; flex: none; }
.discover-photo-count {
  align-self: center;
  font-size: 12px;
  color: #fff;
  background: #15232bcc;
  border-radius: 12px;
  padding: 4px 9px;
}
.discover-photo-page.same-studio-editor .discover-photo-bottom-dock > .discover-photo-rail,
.discover-photo-page.same-studio-editor .discover-photo-bottom-dock > .discover-photo-sticker-tools {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  height: 68px;
  min-height: 68px;
  margin: 0;
  padding: 6px 14px;
  border-top: 1px solid #ffffff24;
  background: #17191e;
  overflow-x: auto;
}
.discover-photo-page.same-studio-editor .discover-photo-rail > button,
.discover-photo-page.same-studio-editor .discover-photo-sticker-tools > button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 74px;
  min-width: 74px;
  height: 54px;
  min-height: 54px;
  padding: 5px 4px;
  border: 1px solid rgba(136, 184, 190, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fafafa;
  font-size: 13px;
  cursor: pointer;
}
.discover-photo-page .discover-photo-rail small,
.discover-photo-page .discover-photo-sticker-tools small {
  font-size: 10px;
  line-height: 1.15;
  white-space: nowrap;
}
.discover-photo-page.same-studio-editor .discover-photo-rail > button[aria-pressed=true],
.discover-photo-page.same-studio-editor .discover-photo-sticker-tools > button[aria-pressed=true] {
  border: 1px solid #54d2c6;
  background: #145e64;
  color: #61e5d6;
}
.discover-photo-page.same-studio-editor.has-selected-object .discover-photo-bottom-dock > .discover-photo-rail {
  display: none;
}
.discover-photo-page.same-studio-editor.has-photo-tool > .discover-photo-bottom-dock,
.discover-photo-page.same-studio-editor.is-cropping > .discover-photo-bottom-dock,
.discover-photo-page.same-studio-editor.is-editing-photo-text > .discover-photo-bottom-dock {
  visibility: hidden;
  pointer-events: none;
}
.discover-photo-page.same-studio-editor .photo-quick-options {
  flex: none;
  max-width: 720px;
  width: calc(100% - 24px);
  max-height: 240px;
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid #588388;
  border-radius: 14px;
  background: rgba(18, 39, 48, 0.96);
  color: #e8f4f4;
  overflow: auto;
}
.photo-quick-options > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.photo-quick-options > header button {
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 30px;
  border: 1px solid #6a9297;
  border-radius: 7px;
  background: #1d3b43;
  color: #fff;
  cursor: pointer;
}
.photo-quick-options .discover-photo-look-choices,
.discover-photo-frame-choices {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.photo-quick-options .discover-photo-look-choices button,
.photo-quick-options .discover-photo-frame-choices button,
.discover-photo-frames button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid #6b858d;
  border-radius: 999px;
  background: #233e48;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.photo-quick-options button[aria-pressed=true],
.discover-photo-frames button[aria-pressed=true] {
  border-color: #54d2c6;
  background: #146b6c;
}
.photo-quick-options .discover-photo-adjust {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 12px;
}
.photo-quick-options input[type=range] { width: 100%; accent-color: #39d4c8; }
.photo-quick-options [data-photo-light-reset] {
  margin-top: 4px;
  padding: 6px 12px;
  border: 1px solid #527174;
  border-radius: 8px;
  background: transparent;
  color: #d5eeeb;
  font-size: 12px;
  cursor: pointer;
}

/* Child Tool Sheets (.discover-photo-sheet) */
dialog.discover-photo-sheet {
  position: fixed;
  inset: auto 0 0;
  z-index: 9850;
  margin: 0 auto;
  width: 100%;
  max-width: 760px;
  box-sizing: border-box;
  max-height: 68dvh;
  padding: 0;
  border: 1px solid #688087;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: #17222b;
  color: #eef9fb;
  overflow: hidden;
  box-shadow: 0 -8px 36px #0008;
}
dialog.discover-photo-sheet[open] { display: flex; flex-direction: column; }
dialog.discover-photo-sheet::backdrop { background: rgba(6, 16, 24, 0.45); }
.discover-photo-sheet > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #ffffff18;
}
.discover-photo-sheet > header strong { flex: 1; font-size: 15px; }
.discover-photo-sheet > header button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #71868d;
  background: #3a4b56;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.discover-photo-sheet-body {
  overflow: auto;
  padding: 14px 16px 20px;
}
.discover-photo-sheet button {
  color: #eefaff;
  background: #324c57;
  border: 1px solid #5c7780;
  border-radius: 10px;
  min-height: 40px;
  padding: 6px 12px;
  cursor: pointer;
}
.discover-photo-sheet button[aria-pressed=true] {
  background: #126f72;
  border-color: #62d7ce;
}

/* Crop dock */
dialog.discover-photo-crop-dock {
  background: #172b35;
  border-radius: 16px 16px 0 0;
}
.discover-photo-crop-toolbar { display: flex; align-items: center; gap: 8px; }
.discover-photo-crop-toolbar button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 9px;
}
.discover-photo-crop-toolbar [data-photo-ratios] {
  flex: 1;
  width: auto;
  justify-content: space-between;
  font-size: 13px;
}
.discover-photo-crop-dock .discover-photo-frames {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  margin: 8px 0;
}
.discover-photo-crop-dock .discover-photo-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.discover-photo-crop-dock .discover-photo-zoom input { flex: 1; accent-color: #29d5ca; }

/* Text Editor on Photo */
dialog.discover-photo-sheet.discover-photo-text-editor {
  inset: 0;
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-radius: 0;
  background: rgba(6, 16, 24, 0.55);
}
dialog.discover-photo-text-editor .discover-photo-sheet-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
}
dialog.discover-photo-text-editor .discover-photo-text-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 16px;
}
.discover-photo-inline-text {
  border: 1px solid #ffffff40;
  border-radius: 12px;
  background: rgba(16, 27, 35, 0.85);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
dialog.discover-photo-text-editor .discover-photo-text-stage textarea {
  display: block;
  min-height: 56px;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
}
.discover-photo-inline-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 8px;
  border-top: 1px solid #ffffff20;
  background: #17252dd9;
}
.discover-photo-inline-actions > [data-photo-text-delete] { margin-right: auto; color: #ffb5c2; }
.discover-photo-inline-actions > [data-photo-text-done] {
  background: #0c7974;
  color: #fff;
  font-weight: 700;
}
.discover-photo-text-editor .discover-photo-text-controls {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  background: #0b0b0e;
  border-radius: 16px 16px 0 0;
  padding: 12px 16px 18px;
}
.discover-photo-text-editor .discover-photo-text-formats { display: none; }
.media-text-tool-shelf {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #ffffff20;
}
.media-text-tool-shelf button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 64px;
  min-height: 52px;
  background: #242426 !important;
  color: #eee !important;
  border-radius: 9px;
  font-size: 11px;
}
.media-text-tool-shelf button[aria-pressed=true] {
  background: #096f6a !important;
  color: #fff !important;
}
.discover-photo-text-colors {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 4px;
}
.discover-photo-text-colors button {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 2px solid #ffffff88;
  border-radius: 50%;
}
.discover-photo-text-scale {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px 48px;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.text-background-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

/* Sticker Picker & Layers & AI Background Editor */
.discover-photo-sticker-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  background: #3a4b57;
  border: 1px solid #617a85;
  padding: 0 12px;
  border-radius: 12px;
}
.discover-photo-sticker-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: white;
  min-height: 40px;
}
.discover-photo-sticker-groups {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.discover-photo-sticker-picker .discover-status-sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}
.discover-photo-sticker-picker .discover-status-sticker-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 104px;
  padding: 8px;
  background: #2d424c;
  border: 1px solid #49626c;
}
.discover-photo-sticker-picker .discover-status-sticker-grid svg { width: 52px; height: 52px; }
.discover-photo-sticker-picker .discover-status-sticker-grid span { font-size: 11px; text-align: center; }
.photo-layer-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.photo-layer-row [data-photo-layer-select] { flex: 1; text-align: left; }
dialog.discover-photo-sheet.discover-photo-background-editor {
  inset: 0;
  max-width: 820px;
  height: 90dvh;
  max-height: 90dvh;
  margin: auto;
  border-radius: 18px;
  background: #101c24;
}
.photo-ai-modes, .photo-ai-fills, .photo-ai-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.photo-ai-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  max-height: 46dvh;
  background: repeating-conic-gradient(#253941 0% 25%, #354a53 0% 50%) 0 0 / 20px 20px;
  border-radius: 12px;
  overflow: hidden;
}
.photo-ai-preview canvas { max-width: 100%; max-height: 44dvh; object-fit: contain; }

/* Full-screen SAMe Studio Workspace Dialog (.same-studio-workspace) */
dialog.same-studio-workspace {
  position: fixed;
  inset: 0;
  z-index: 9800;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #08151b;
  color: white;
  overflow: hidden;
  box-sizing: border-box;
}
.same-studio-shadow { height: 100%; min-width: 0; overflow: hidden; }
.same-studio-workspace > .studio-opening {
  box-sizing: border-box;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  color: #f4fbfc;
  text-align: center;
  font: 16px/1.45 system-ui, sans-serif;
}
.same-studio-workspace > .studio-opening progress { width: min(260px, 72vw); height: 8px; accent-color: #29d5ca; }
.same-studio-workspace > .studio-opening button {
  min-width: 104px;
  min-height: 42px;
  border: 1px solid #496168;
  border-radius: 12px;
  background: #10242b;
  color: #fff;
  cursor: pointer;
}
.studio-opening-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid #31515a;
  border-top-color: #29d5ca;
  border-radius: 50%;
  animation: studio-opening-spin 0.8s linear infinite;
}
@keyframes studio-opening-spin { to { transform: rotate(360deg); } }

/* Studio Montage Modal (.discover-composer-window) */
dialog.discover-composer-window {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 9820;
  width: min(680px, 94vw);
  max-height: 86dvh;
  margin: auto;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  color: #203e45;
  background: #f5f9f9;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.35);
}
dialog.discover-composer-window[open] { display: flex; flex-direction: column; }
dialog.discover-composer-window::backdrop { background: rgba(15, 23, 42, 0.6); }
.discover-composer-window > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 8px 16px;
  border-bottom: 1px solid #dce9e8;
  background: linear-gradient(115deg, #e5f4f0, #eef0fa);
  color: #205957;
}
.discover-composer-window > header button {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid #cce1dd;
  border-radius: 10px;
  background: #fff;
  color: #29635e;
  cursor: pointer;
}
.discover-composer-window .discover-composer-page-body {
  flex: 1;
  padding: 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.discover-composer-window > footer {
  padding: 12px 16px;
  border-top: 1px solid #d8e8e5;
  background: #fff;
}
.discover-composer-window > footer button {
  width: 100%;
  min-height: 44px;
  border: 1px solid #087c78;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(#168f84, #087c7b);
  cursor: pointer;
}
.same-studio-photo-list {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 8px;
}
.same-studio-photo-item {
  flex: 0 0 116px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #c4dfdc;
  border-radius: 12px;
  background: #ffffff;
}
.same-studio-photo-item img {
  width: 100%;
  height: 112px;
  object-fit: contain;
  background: #13212a;
  border-radius: 6px;
}
.same-studio-photo-item > div { display: flex; gap: 4px; }
.same-studio-photo-item button {
  flex: 1;
  min-height: 34px;
  border: 1px solid #8ec8c1;
  border-radius: 8px;
  background: #eef9f7;
  color: #0c6663;
  font-weight: 700;
  cursor: pointer;
}
.same-studio-duration {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #bee0dc;
  border-radius: 12px;
  background: #f2faf8;
}

/* ==========================================================================
   SIDEBAR HASHTAGS "+ XEM TẤT CẢ" & DEDICATED SEARCH + HASHTAG PAGE (/explore/hashtags)
   ========================================================================== */
.explore-hashtag-chip.is-view-all {
  border-color: rgba(254, 44, 85, 0.45);
  background: rgba(254, 44, 85, 0.14);
  color: #ff6b8b;
  font-weight: 800;
}

.explore-hashtag-chip.is-view-all:hover {
  background: #fe2c55;
  border-color: #fe2c55;
  color: #ffffff;
}

.explore-desktop-shell.is-light-theme .explore-hashtag-chip.is-view-all {
  border-color: #fecdd6;
  background: #fff0f3;
  color: #e11d48;
}

.explore-desktop-shell.is-light-theme .explore-hashtag-chip.is-view-all:hover {
  background: #fe2c55;
  border-color: #fe2c55;
  color: #ffffff;
}

.explore-hashtags-search-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 28px 48px;
}

.explore-hashtags-search-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.explore-desktop-shell.is-light-theme .explore-hashtags-search-header {
  border-color: #e2e8f0;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.explore-hashtags-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.explore-hashtags-top-row h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.explore-hashtags-top-row p {
  margin: 4px 0 0;
  font-size: 0.84rem;
  opacity: 0.72;
}

.explore-hashtags-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.explore-hashtags-search-field {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.55);
}

.explore-desktop-shell.is-light-theme .explore-hashtags-search-field {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.explore-hashtags-search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-size: 0.92rem;
  font-weight: 600;
}

.explore-hashtags-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.explore-hashtags-sec-head h2,
.explore-hashtags-sec-head h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
}

.explore-search-help-text {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

.explore-history-clear-btn {
  border: 0;
  background: transparent;
  color: #fe2c55;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.explore-search-history-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.explore-search-recent-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.explore-desktop-shell.is-light-theme .explore-search-recent-pill {
  border-color: #cbd5e1;
  background: #ffffff;
}

.explore-search-recent-term {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.explore-search-recent-remove {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.65;
  font-size: 1rem;
  cursor: pointer;
}

.explore-search-recent-remove:hover {
  opacity: 1;
  color: #fe2c55;
}

.explore-hashtag-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.explore-hashtag-directory-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.explore-desktop-shell.is-light-theme .explore-hashtag-directory-card {
  border-color: #cbd5e1;
  background: #ffffff;
}

.explore-hashtag-directory-card:hover,
.explore-hashtag-directory-card.is-active {
  border-color: #fe2c55;
  background: rgba(254, 44, 85, 0.12);
  transform: translateY(-1px);
}

.explore-desktop-shell.is-light-theme .explore-hashtag-directory-card:hover,
.explore-desktop-shell.is-light-theme .explore-hashtag-directory-card.is-active {
  border-color: #fe2c55;
  background: #fff0f3;
}

.explore-hashtag-dir-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.explore-hashtag-dir-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: rgba(254, 44, 85, 0.16);
  color: #fe2c55;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 900;
}

.explore-hashtag-dir-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.explore-hashtag-dir-text strong {
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-hashtag-dir-text small {
  font-size: 0.74rem;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-hashtag-play-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(254, 44, 85, 0.4);
  background: rgba(254, 44, 85, 0.14);
  color: #ff6b8b;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.explore-desktop-shell.is-light-theme .explore-hashtag-play-btn {
  border-color: #fecdd6;
  background: #fff0f3;
  color: #e11d48;
}

.explore-hashtag-play-btn:hover {
  background: #fe2c55 !important;
  border-color: #fe2c55 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   HOSTING-MANAGED AD SYSTEM & APPEARANCE CONTROLLER (4 Placements - Images 1, 2, 3)
   ========================================================================== */

/* Placement 1: 1-Line Small Headline Ad directly above the video seek bar */
.explore-hosting-ad-headline-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 2px 0;
}

.explore-ad-sponsored-label {
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.explore-ad-info-btn {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.74rem;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.explore-ad-info-btn:hover {
  color: #fde047;
}

.explore-ad-seq {
  color: rgba(255, 255, 255, 0.78);
  flex-shrink: 0;
}

.explore-ad-headline-url {
  flex: 1;
  min-width: 0;
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explore-ad-headline-motto {
  color: #fde68a;
  font-weight: 700;
}

.explore-ad-headline-url:hover {
  text-decoration: underline;
  color: #fde047;
}

.explore-ad-dismiss-mini {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}

.explore-ad-dismiss-mini:hover {
  background: rgba(254, 44, 85, 0.9);
  color: #ffffff;
}

.explore-hosting-ad-headline-line,
.explore-hosting-ad-headline-line.is-width-full {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Placement 2: Small Banner Ad above the video seek bar (Images 2 & 3) */
.explore-hosting-ad-small-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  padding: 7px 26px 7px 9px;
  border-radius: 10px;
  background: rgba(15, 19, 28, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.42);
  color: #ffffff;
  box-sizing: border-box;
  transition: width 0.18s ease;
}

.explore-hosting-ad-small-banner.is-width-third {
  width: 33.333%;
  min-width: min(275px, 100%);
  max-width: 100%;
}

.explore-hosting-ad-small-banner.is-width-half {
  width: 50%;
  min-width: min(330px, 100%);
  max-width: 100%;
}

.explore-hosting-ad-small-banner.is-width-full {
  width: 100%;
  max-width: 100%;
}

.explore-hosting-ad-small-banner.is-in-fullvideo {
  width: fit-content;
  max-width: min(360px, 100%);
  padding-right: 11px;
}

.explore-ad-small-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.explore-ad-small-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.explore-ad-small-meta {
  display: flex;
  flex-direction: column;
  min-width: 92px;
  flex: 1;
  line-height: 1.22;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.explore-ad-small-meta:hover .explore-ad-small-brand,
.explore-ad-small-meta:hover .explore-ad-small-domain,
.explore-ad-small-meta:hover .explore-ad-small-motto {
  text-decoration: underline;
}

.explore-ad-small-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-ad-small-brand {
  font-size: 0.78rem;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-ad-small-domain {
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-ad-small-motto {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fde68a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.explore-hosting-ad-small-banner.is-width-half .explore-ad-small-motto,
.explore-hosting-ad-small-banner.is-width-full .explore-ad-small-motto {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.28;
}

.explore-hosting-ad-fullvideo-sponsored-line {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

.explore-hosting-ad-fullvideo-sponsored-line:hover {
  text-decoration: underline;
}

.explore-right-ad-direct-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.explore-right-ad-direct-link:hover .explore-right-ad-title,
.explore-right-ad-direct-link:hover .explore-right-ad-domain {
  text-decoration: underline;
}

.explore-right-ad-motto {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fde68a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-desktop-shell.is-light-theme .explore-right-ad-motto {
  color: #b45309;
}

.explore-ad-small-cta {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  border: 0;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.71rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease;
}

.explore-ad-small-cta:hover {
  background: #ffffff;
  transform: scale(1.03);
}

.explore-ad-small-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.6rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.explore-ad-small-close:hover {
  background: #fe2c55;
  color: #ffffff;
}

/* Placement 3: Full-Frame Video Advertisement inside the entire video frame (Image 3) */
.explore-hosting-ad-fullvideo {
  position: absolute;
  inset: 0;
  z-index: 26;
  background: #05060a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.explore-hosting-ad-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05060a;
  z-index: 1;
}

.explore-hosting-ad-fullvideo-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
}

.explore-hosting-ad-fullvideo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

.explore-hosting-ad-fullvideo-ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.explore-hosting-ad-mute-btn.is-icon-only {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
}

.explore-hosting-ad-mute-btn.is-muted {
  background: rgba(127, 29, 29, 0.86);
  border-color: rgba(248, 113, 113, 0.65);
  color: #fecaca;
}

.explore-ad-mute-svg {
  display: block;
  flex-shrink: 0;
}

/* Suppress underlying post hover controls & progress bar while full-frame video ad is active */
.explore-media-frame.is-fullvideo-ad-active .explore-top-controls,
.explore-media-frame:has(.explore-hosting-ad-fullvideo) .explore-top-controls {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.explore-media-frame.is-fullvideo-ad-active .explore-progress-bar,
.explore-media-frame:has(.explore-hosting-ad-fullvideo) .explore-progress-bar {
  opacity: 0 !important;
  visibility: hidden !important;
  max-height: 0 !important;
  margin-top: 0 !important;
  pointer-events: none !important;
}

.explore-hosting-ad-fullvideo-bottom {
  position: relative;
  z-index: 3;
  padding: 20px 14px 10px;
  background: linear-gradient(0deg, rgba(3, 105, 161, 0.92) 0%, rgba(15, 23, 42, 0.62) 68%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.explore-hosting-ad-fullvideo-caption {
  font-size: 0.95rem;
  font-weight: 900;
  color: #fde047;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.explore-hosting-ad-fullvideo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.73rem;
  font-weight: 700;
  color: #ffffff;
}

.explore-hosting-ad-skip-btn {
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-size: 0.71rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.explore-hosting-ad-skip-btn:hover {
  background: #fe2c55;
  border-color: #fe2c55;
}

.explore-hosting-ad-yellow-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.explore-hosting-ad-yellow-fill {
  width: 28%;
  height: 100%;
  background: #facc15;
  transition: width 0.15s linear;
}

/* Full-Frame Video Ad End-Screen (Advertiser Registration CTA + Inactivity Auto-Close Countdown — Mobile & Desktop Compatible) */
.explore-hosting-ad-fullvideo:has(.explore-hosting-ad-endscreen) .explore-hosting-ad-fullvideo-bottom {
  display: none !important;
}

.explore-hosting-ad-endscreen {
  position: absolute;
  inset: 0;
  z-index: 8;
  container-type: inline-size;
  background: radial-gradient(circle at 50% 35%, rgba(15, 23, 42, 0.9) 0%, rgba(5, 6, 10, 0.97) 100%);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 4%, 18px);
  box-sizing: border-box;
  animation: exploreFadeIn 0.22s ease-out;
}

.explore-hosting-ad-endscreen-card {
  position: relative;
  width: min(308px, 100%);
  max-width: 100%;
  max-height: calc(100% - 8px);
  overflow-y: auto;
  scrollbar-width: none;
  border-radius: 16px;
  padding: clamp(13px, 4cqw, 17px) clamp(12px, 3.8cqw, 16px) clamp(11px, 3.2cqw, 14px);
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.97) 0%, rgba(15, 23, 42, 0.99) 100%);
  border: 1px solid rgba(250, 204, 21, 0.45);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(7px, 2.2cqw, 10px);
  box-sizing: border-box;
}

.explore-hosting-ad-endscreen-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  z-index: 2;
}

.explore-hosting-ad-endscreen-close:hover {
  background: #fe2c55;
  border-color: #fe2c55;
  transform: scale(1.06);
}

.explore-hosting-ad-endscreen-card::-webkit-scrollbar {
  display: none;
}

.explore-hosting-ad-endscreen-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.78);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
  flex-shrink: 0;
}

.explore-hosting-ad-endscreen-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fde047;
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-hosting-ad-endscreen-brand {
  font-size: clamp(0.92rem, 3.8cqw, 1.02rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.22;
}

.explore-hosting-ad-endscreen-headline {
  font-size: clamp(0.76rem, 3.2cqw, 0.84rem);
  font-weight: 800;
  color: #fde047;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.explore-hosting-ad-endscreen-motto {
  font-size: clamp(0.69rem, 2.8cqw, 0.74rem);
  color: #cbd5e1;
  line-height: 1.36;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.explore-hosting-ad-endscreen-domain {
  max-width: 100%;
  font-size: 0.71rem;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-hosting-ad-endscreen-domain:hover {
  text-decoration: underline;
}

.explore-hosting-ad-endscreen-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fe2c55 0%, #e11d48 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(254, 44, 85, 0.36);
  transition: transform 0.15s ease, filter 0.15s ease;
  box-sizing: border-box;
}

.explore-hosting-ad-endscreen-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.explore-hosting-ad-endscreen-actions {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
}

.explore-hosting-ad-endscreen-sec-btn {
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-hosting-ad-endscreen-sec-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.explore-hosting-ad-endscreen-timer-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 1px;
}

.explore-hosting-ad-endscreen-timer-text {
  font-size: 0.67rem;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1.25;
}

.explore-hosting-ad-endscreen-timer-track {
  width: 100%;
  height: 3.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.explore-hosting-ad-endscreen-timer-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #facc15 0%, #fe2c55 100%);
  transition: width 0.2s linear;
}

@container (max-width: 310px) {
  .explore-hosting-ad-endscreen-card {
    padding: 11px 10px 10px;
    gap: 6px;
  }
  .explore-hosting-ad-endscreen-logo {
    width: 38px;
    height: 38px;
    font-size: 0.75rem;
  }
  .explore-hosting-ad-endscreen-cta {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
  .explore-hosting-ad-endscreen-sec-btn {
    padding: 5px 6px;
    font-size: 0.66rem;
  }
}

@media (max-width: 600px) {
  .explore-hosting-ad-endscreen {
    padding: 10px;
  }
  .explore-hosting-ad-endscreen-card {
    width: min(292px, 100%);
    padding: 12px 11px 10px;
    gap: 6px;
  }
}

/* Placement 4: Right-Column Banner & Content Ad above User Profile Card (Image 1) */
.explore-hosting-ad-right-banner {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  padding: 11px 12px 11px;
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1.5px solid rgba(148, 163, 184, 0.42);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.35),
    0 10px 22px -6px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.explore-hosting-ad-right-banner:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.62);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.38),
    0 14px 26px -6px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.explore-desktop-shell.is-light-theme .explore-hosting-ad-right-banner {
  background: linear-gradient(160deg, #ffffff 0%, #fffdf8 55%, #f4f9ff 100%);
  border: 1.5px solid #94a3b8;
  color: #0f172a;
  box-shadow:
    0 2.5px 0 #94a3b8,
    0 10px 20px -6px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 #ffffff;
}

.explore-desktop-shell.is-light-theme .explore-hosting-ad-right-banner:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow:
    0 3px 0 #cbd5e1,
    0 14px 26px -6px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 #ffffff;
}

.explore-right-ad-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.explore-right-ad-head-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.explore-right-ad-badge {
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(245, 158, 11, 0.28);
  flex-shrink: 0;
}

.explore-desktop-shell.is-light-theme .explore-right-ad-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
}

.explore-right-ad-sponsor-pill {
  font-size: 0.66rem;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(14, 165, 233, 0.28);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 155px;
}

.explore-desktop-shell.is-light-theme .explore-right-ad-sponsor-pill {
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
  border-color: rgba(14, 165, 233, 0.24);
}

.explore-right-ad-voucher-pill {
  font-size: 0.64rem;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 5px;
  background: rgba(244, 63, 94, 0.16);
  color: #fda4af;
  border: 1px dashed rgba(244, 63, 94, 0.45);
  white-space: nowrap;
}

.explore-desktop-shell.is-light-theme .explore-right-ad-voucher-pill {
  background: #fff1f2;
  color: #e11d48;
  border-color: #fda4af;
}

.explore-right-ad-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.explore-right-ad-ctrl-btn,
.explore-right-ad-close-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 0.68rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.explore-desktop-shell.is-light-theme .explore-right-ad-ctrl-btn,
.explore-desktop-shell.is-light-theme .explore-right-ad-close-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

.explore-right-ad-ctrl-btn:hover,
.explore-right-ad-close-btn:hover {
  background: #fe2c55;
  border-color: #fe2c55;
  color: #ffffff;
}

.explore-right-ad-body {
  display: flex;
  align-items: stretch;
  gap: 11px;
  min-width: 0;
}

.explore-right-ad-thumb {
  position: relative;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  border-radius: 12px;
  overflow: hidden;
  border: 0;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  color: #f59e0b;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  align-self: center;
}

.explore-desktop-shell.is-light-theme .explore-right-ad-thumb {
  background: #ffffff;
  border: 0;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.explore-right-ad-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.22s ease;
}

.explore-right-ad-img.is-product-contain {
  object-fit: contain;
  padding: 0;
  box-sizing: border-box;
}

.explore-hosting-ad-right-banner:hover .explore-right-ad-img {
  transform: scale(1.04);
}

.explore-right-ad-thumb-discount {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  padding: 1.5px 5px;
  border-radius: 5px;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 850;
  line-height: 1.2;
  box-shadow: 0 2px 5px rgba(225, 29, 72, 0.3);
}

.explore-right-ad-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3px;
}

.explore-right-ad-title {
  font-size: 0.81rem;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.explore-right-ad-desc {
  margin: 0;
  font-size: 0.71rem;
  line-height: 1.36;
  color: rgba(226, 232, 240, 0.84);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.explore-desktop-shell.is-light-theme .explore-right-ad-desc {
  color: #475569;
}

.explore-right-ad-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1px;
}

.explore-right-ad-price-current {
  font-size: 0.85rem;
  font-weight: 900;
  color: #fb7185;
  letter-spacing: -0.01em;
}

.explore-desktop-shell.is-light-theme .explore-right-ad-price-current {
  color: #e11d48;
}

.explore-right-ad-price-old {
  font-size: 0.68rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.explore-right-ad-price-tag {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}

.explore-desktop-shell.is-light-theme .explore-right-ad-price-tag {
  background: #fef3c7;
  color: #b45309;
}

.explore-right-ad-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 3px;
  padding-top: 5px;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
  min-width: 0;
}

.explore-right-ad-domain {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(203, 213, 225, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.explore-desktop-shell.is-light-theme .explore-right-ad-domain {
  color: #0f766e;
}

.explore-right-ad-cta {
  padding: 3.5px 10px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #0f766e 0%, #0284c7 100%);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 7px rgba(2, 132, 199, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.explore-right-ad-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

@media (max-width: 420px) {
  .explore-hosting-ad-right-banner {
    padding: 9px 10px;
  }
  .explore-right-ad-thumb {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
  }
  .explore-right-ad-sponsor-pill {
    max-width: 115px;
  }
}

/* Left / Right In-Player Alignment Controlled by Hosting */
.explore-hosting-ad-headline-line.is-align-left,
.explore-hosting-ad-small-banner.is-align-left {
  align-self: flex-start;
  margin-right: auto;
  margin-left: 0;
}

.explore-hosting-ad-headline-line.is-align-right,
.explore-hosting-ad-small-banner.is-align-right {
  align-self: flex-end;
  margin-left: auto;
  margin-right: 0;
}

/* ==========================================================================
   USER MONETIZATION, AD PLACEMENT & HOSTING DISTRIBUTION PAGE (/explore/monetization)
   ========================================================================== */
.explore-monetization-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.explore-monetization-header {
  padding: 18px 20px 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.explore-desktop-shell.is-light-theme .explore-monetization-header {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #161823;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.explore-monetization-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.explore-monetization-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2px;
}

.explore-desktop-shell.is-light-theme .explore-monetization-tabs {
  border-top-color: #e2e8f0;
}

.explore-monetization-tab-btn {
  padding: 11px 14px;
  border: 0;
  border-bottom: 2.5px solid transparent;
  background: transparent;
  color: inherit;
  opacity: 0.68;
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.explore-monetization-tab-btn:hover {
  opacity: 0.95;
}

.explore-monetization-tab-btn.is-active {
  opacity: 1;
  color: #fe2c55;
  border-bottom-color: #fe2c55;
}

.explore-monetization-deploy-banner {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.explore-desktop-shell.is-light-theme .explore-monetization-deploy-banner {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.explore-monetization-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.explore-monetization-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.explore-monetization-kpi-card {
  padding: 14px 16px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.explore-desktop-shell.is-light-theme .explore-monetization-kpi-card {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #161823;
}

.explore-monetization-kpi-card small {
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0.72;
}

.explore-monetization-kpi-card strong {
  font-size: 1.24rem;
  font-weight: 900;
  color: #f59e0b;
}

.explore-desktop-shell.is-light-theme .explore-monetization-kpi-card strong {
  color: #e11d48;
}

.explore-monetization-kpi-card span {
  font-size: 0.74rem;
  opacity: 0.68;
}

.explore-monetization-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.explore-desktop-shell.is-light-theme .explore-monetization-card {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #161823;
}

.explore-monetization-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.explore-desktop-shell.is-light-theme .explore-monetization-switch-row {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.explore-monetization-check-tile {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.explore-desktop-shell.is-light-theme .explore-monetization-check-tile {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.explore-monetization-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.explore-monetization-video-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.explore-monetization-video-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  flex-wrap: wrap;
}

.explore-desktop-shell.is-light-theme .explore-monetization-video-row {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.explore-monetization-video-thumb {
  width: 60px;
  height: 76px;
  flex: 0 0 60px;
  border-radius: 9px;
  overflow: hidden;
  background: #0f172a;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.explore-monetization-video-thumb video,
.explore-monetization-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.explore-monetization-video-info {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.explore-monetization-adv-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.15fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 980px) {
  .explore-monetization-adv-grid {
    grid-template-columns: 1fr;
  }
}

.explore-monetization-campaign-item {
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.explore-desktop-shell.is-light-theme .explore-monetization-campaign-item {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* ==========================================================================
   Shopee-Style Search Filter Sidebar & Location / GPS / Near You (Km) Filters
   ========================================================================== */

.shop-filter-sidebar.shopee-style-sidebar {
  padding: 16px 16px 20px;
  position: static;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.shopee-cat-section {
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.shopee-section-main-header,
.shopee-filter-main-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.87);
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.shopee-filter-main-header {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.shopee-header-icon {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.75);
}

.shopee-cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shopee-cat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 4px 5px 12px;
  border: 0;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.8);
  text-align: left;
  position: relative;
  cursor: pointer;
}

.shopee-cat-item:hover {
  color: #ee4d2d;
}

.shopee-cat-item.is-active {
  color: #ee4d2d;
  font-weight: 700;
}

.shopee-cat-item .cat-arrow {
  position: absolute;
  left: 0;
  color: #ee4d2d;
  font-size: 0.78rem;
}

.shopee-filter-group {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

.shopee-group-title {
  margin: 0 0 10px !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  color: rgba(0, 0, 0, 0.85) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.shopee-subgroup-title {
  margin: 12px 0 7px;
  font-size: 0.79rem;
  font-weight: 700;
  color: #475569;
}

.shopee-locate-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: #fff7f5;
  border: 1px solid rgba(238, 77, 45, 0.25);
  margin-bottom: 10px;
  position: relative;
}

.shopee-address-search-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shopee-address-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  align-items: stretch;
}

.shopee-address-input {
  width: 100%;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.77rem;
  font-weight: 600;
  color: #0f172a;
  box-sizing: border-box;
}

.shopee-address-input::placeholder {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
}

.shopee-address-input:focus {
  outline: none;
  border-color: #ee4d2d;
  box-shadow: 0 0 0 2px rgba(238, 77, 45, 0.14);
}

.shopee-address-submit-btn {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 35px;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid #ee4d2d;
  background: linear-gradient(135deg, #ee4d2d 0%, #f97316 100%);
  color: #ffffff;
  font-size: 0.77rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(238, 77, 45, 0.22);
}

.shopee-address-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #d73211 0%, #ea580c 100%);
}

.shopee-address-submit-btn svg { width: 21px; height: 21px; display: block; }
.shopee-locate-btn svg { width: 15px; height: 15px; display: block; }
.shopee-locate-btn .loc-pin { flex: 0 0 15px; }
.shopee-address-submit-btn:focus-visible, .shopee-locate-btn:focus-visible { outline: 2px solid #176c68; outline-offset: 2px; }
.shopee-address-submit-btn:disabled, .shopee-locate-btn:disabled { opacity: .6; cursor: wait; }

.shopee-address-suggestions {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  z-index: 45;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  max-height: 230px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.shopee-address-suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 7px 9px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
  text-align: left;
  font-size: 0.77rem;
  color: #1e293b;
  cursor: pointer;
  line-height: 1.3;
}

.shopee-address-suggestion-item:last-child {
  border-bottom: 0;
}

.shopee-address-suggestion-item:hover {
  background: #fff1ee;
  color: #d73211;
}

.shopee-address-suggestion-item .sug-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.shopee-address-suggestion-item .sug-text small {
  font-size: 0.69rem;
  color: #64748b;
}

.shopee-located-status {
  font-size: 0.74rem;
  line-height: 1.35;
  color: #475569;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed #cbd5e1;
}

.shopee-located-status.is-located {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.shopee-located-status small {
  color: #047857;
  font-weight: 600;
}

.shopee-locate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 29px;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid #b6d3d1;
  background: #eaf4f3;
  color: #176c68;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.shopee-locate-btn:hover:not(:disabled),
.shopee-locate-btn.is-active {
  background: #dcecea;
  color: #145b58;
}

.shopee-locate-sublabel {
  font-size: 0.73rem;
  font-weight: 600;
  color: #64748b;
}

.shopee-locality-select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 0.79rem;
  font-weight: 600;
  color: #1e293b;
}

.shopee-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shopee-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.84rem;
  color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
  line-height: 1.32;
  user-select: none;
}

.shopee-checkbox-row:hover {
  color: #ee4d2d;
}

.shopee-checkbox-row.is-checked {
  color: #ee4d2d;
  font-weight: 600;
}

.shopee-checkbox-input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: #ee4d2d;
  cursor: pointer;
  flex-shrink: 0;
}

.shopee-more-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  align-self: flex-start;
  width: fit-content;
  margin-top: 4px;
  padding: 4px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: #475569;
  cursor: pointer;
  text-align: center;
  transition: all 0.16s ease;
}

.shopee-cat-list .shopee-more-toggle-btn {
  margin-left: 12px;
}

.shopee-more-toggle-btn .chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.shopee-more-toggle-btn .chev-svg {
  width: 12px;
  height: 12px;
  display: block;
  flex-shrink: 0;
  transition: transform 0.16s ease;
}

.shopee-more-toggle-btn:hover {
  color: #ee4d2d;
  background: #fff1f0;
  border-color: #ffccc7;
}

.shopee-more-toggle-btn.is-expanded {
  color: #334155;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.shopee-more-toggle-btn.is-expanded:hover {
  color: #ee4d2d;
  background: #fff1f0;
  border-color: #ffccc7;
}

.shopee-km-custom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-top: 8px;
}

.shopee-km-input {
  width: 100%;
  padding: 6px 9px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 4px;
  font-size: 0.8rem;
}

.shopee-km-apply-btn {
  padding: 6px 12px;
  border-radius: 4px;
  border: 0;
  background: #ee4d2d;
  color: #fff;
  font-size: 0.79rem;
  font-weight: 700;
  cursor: pointer;
}

.shopee-district-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.shopee-district-pill {
  padding: 4px 9px;
  border-radius: 99px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.shopee-district-pill:hover,
.shopee-district-pill.is-active {
  background: #fff1ee;
  border-color: #ee4d2d;
  color: #ee4d2d;
  font-weight: 700;
}

.shopee-price-inputs input {
  padding: 6px 8px;
  border: 1px solid rgba(0, 0, 0, 0.26);
  border-radius: 2px;
  font-size: 0.8rem;
  background: #fff;
}

.shopee-price-dash {
  color: rgba(0, 0, 0, 0.35);
  font-size: 0.8rem;
}

.shopee-apply-btn,
.shopee-clear-all-btn {
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 2px;
  background: #ee4d2d;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.shopee-apply-btn:hover,
.shopee-clear-all-btn:hover {
  opacity: 0.91;
}

.shopee-clear-all-btn {
  margin-top: 4px;
}

.shopee-rating-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shopee-rating-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 0;
  background: transparent;
  font-size: 0.88rem;
  cursor: pointer;
  width: fit-content;
}

.shopee-rating-row:hover,
.shopee-rating-row.is-active {
  background: #ebebeb;
}

.shopee-rating-row .stars-filled {
  color: #ffce3d;
  letter-spacing: 1px;
}

.shopee-rating-row .stars-empty {
  color: #cbd5e1;
  letter-spacing: 1px;
}

.shopee-rating-row .stars-label {
  margin-left: 5px;
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.8);
}

.desktop-product-distance-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fff1ee;
  color: #d73211;
  border: 1px solid rgba(238, 77, 45, 0.25);
  font-size: 0.71rem;
  font-weight: 700;
  line-height: 1.3;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-word;
}

.desktop-product-loc-text {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.71rem;
  font-weight: 600;
  line-height: 1.3;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-word;
}

.shop-active-filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #fff8f6;
  border: 1px solid rgba(238, 77, 45, 0.24);
}

.shop-active-filters-bar .chip-bar-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
}

.shop-active-filter-chip {
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(238, 77, 45, 0.35);
  background: #fff;
  color: #d73211;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.shop-active-filter-chip:hover {
  background: #ee4d2d;
  color: #fff;
}

.shop-active-filter-clear-link {
  border: 0;
  background: transparent;
  color: #ee4d2d;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  margin-left: auto;
}

/* ==========================================================================
   Synchronized Mobile Shop Buyer Utilities, Store Policies & Order Stepper
   ========================================================================== */

.shop-utilities-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.shop-utility-quick-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.shop-utility-quick-tile:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: rgba(254, 44, 85, 0.42);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.shop-utility-quick-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff0f3 0%, #ffe4e6 100%);
  border: 1px solid #fecdd6;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.shop-utility-quick-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.shop-utility-quick-copy strong {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
}

.shop-utility-quick-copy small {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.3;
}

/* Storefront Policy Cards */
.shop-store-policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.shop-store-policy-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.shop-store-policy-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.shop-store-policy-card p {
  margin: 0;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
}

/* Order Detail Page & 4-Step Visual Stepper (Compact & Action-Friendly) */
.is-compact-order-detail-page {
  padding-top: 12px;
  padding-bottom: 36px;
}

.order-detail-card {
  padding: 14px 18px;
  margin-bottom: 16px;
  border-radius: 12px;
}

.order-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.order-detail-head-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.order-detail-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 850;
  color: var(--ink);
  line-height: 1.25;
}

.order-detail-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.order-detail-back-btn,
.order-detail-action-btn {
  width: auto !important;
  height: 30px;
  min-height: 30px;
  padding: 0 11px !important;
  font-size: 0.77rem !important;
  font-weight: 750 !important;
  border-radius: 7px !important;
  white-space: nowrap;
}

.desktop-order-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}

.desktop-order-step {
  padding: 7px 11px;
  min-height: 34px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.77rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.desktop-order-step.is-done {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.desktop-order-step.is-current {
  background: #fff0f3;
  border-color: #fe2c55;
  color: #be123c;
  box-shadow: 0 2px 6px rgba(254, 44, 85, 0.1);
}

.desktop-order-step.is-cancelled {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.desktop-order-step-note {
  margin: 0 0 10px;
  padding: 6px 11px;
  border-radius: 7px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.77rem;
  font-weight: 700;
}

.order-detail-workflow-bar {
  padding: 6px 10px;
  margin-bottom: 12px;
  border-radius: 9px;
  background: #f8fafc;
}

.order-detail-workflow-btns {
  gap: 6px;
}

.order-detail-workflow-btns .shop-sort-btn {
  width: auto;
  height: 30px;
  padding: 0 11px;
  font-size: 0.77rem;
  font-weight: 750;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.order-detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 760px) {
  .order-detail-info-grid {
    grid-template-columns: 1fr;
  }
}

.order-detail-info-card {
  padding: 11px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-detail-info-card h3 {
  margin: 0 0 3px;
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
}

.order-detail-info-card p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #334155;
}

.order-detail-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.order-detail-items-table {
  font-size: 0.81rem;
}

.order-detail-items-table thead th {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 7px 12px;
  border-bottom: 1px solid #e2e8f0;
  width: auto;
}

.order-detail-items-table tbody th,
.order-detail-items-table tbody td {
  padding: 7px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.order-detail-items-table tbody th {
  width: 44%;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
}

.order-detail-sku-cell {
  color: #64748b;
  font-size: 0.76rem;
  white-space: nowrap;
}

.order-detail-items-table .is-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.order-detail-items-table .is-bold {
  font-weight: 750;
  color: #0f172a;
}

.order-detail-items-table .is-discount {
  color: #059669;
  font-weight: 700;
}

.order-detail-summary-tr th,
.order-detail-summary-tr td {
  background: #fcfdff !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  color: #475569 !important;
  font-weight: 600 !important;
}

.order-detail-total-tr th,
.order-detail-total-tr td {
  background: #fff9fa !important;
  border-bottom: 0 !important;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
  font-weight: 850 !important;
}

.order-detail-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.order-detail-timeline-box {
  flex: 1 1 420px;
  min-width: 0;
}

.order-detail-timeline-box h3 {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
}

.order-detail-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.order-detail-timeline-item {
  padding: 6px 10px;
  border-left: 3px solid #fe2c55;
  border-radius: 0 7px 7px 0;
  background: #f8fafc;
  font-size: 0.79rem;
  line-height: 1.35;
  color: #334155;
}

.order-detail-timeline-item small {
  color: #64748b;
}

.order-detail-bottom-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

/* Embedded Mobile Shop Commerce Container & Desktop Portal Architecture (Shopee / Tiki / Amazon Style) */
.desktop-portal-section {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 18px 20px;
  border-radius: 18px;
}

.desktop-portal-top-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 9px 14px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f766e 100%);
  color: #ffffff;
  box-shadow: none;
}

.desktop-portal-top-banner.is-buyer-portal {
  background: linear-gradient(135deg, #161823 0%, #31102f 52%, #be123c 100%);
}

.desktop-portal-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.desktop-portal-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 850;
  color: #fff;
  flex-shrink: 0;
}

.desktop-portal-id-copy {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
}

.desktop-portal-kicker {
  display: none;
}

.desktop-portal-id-copy h1 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 850;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.desktop-portal-id-copy small {
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.desktop-portal-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  flex-shrink: 0;
}

.desktop-portal-head-actions button {
  min-height: 30px;
  padding: 5px 11px;
  font-size: 0.76rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* Actionable KPI Summary Strip — Compact Single-Line Horizontal Spreadsheet Grid */
.desktop-portal-kpi-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.desktop-portal-kpi-bar:has(> .desktop-portal-kpi-row-title) {
  grid-template-columns: 160px repeat(5, minmax(0, 1fr)) minmax(0, 1.16fr);
}

.desktop-portal-kpi-row-title {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #0c4a6e;
  background: #f0f9ff;
  border-right: 1px solid #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.desktop-portal-kpi-row-title.is-resale-kpi-title {
  color: #0f766e;
  background: #f0fdfa;
}

@media (max-width: 1200px) {
  .desktop-portal-kpi-bar,
  .desktop-portal-kpi-bar:has(> .desktop-portal-kpi-row-title) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .desktop-portal-kpi-row-title {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }
}

@media (max-width: 720px) {
  .desktop-portal-kpi-bar,
  .desktop-portal-kpi-bar:has(> .desktop-portal-kpi-row-title) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.desktop-portal-kpi-card,
.desktop-portal-kpi-card.is-amber,
.desktop-portal-kpi-card.is-blue,
.desktop-portal-kpi-card.is-teal,
.desktop-portal-kpi-card.is-rose,
.desktop-portal-kpi-card.is-purple,
.desktop-portal-kpi-card.is-emerald {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 5px 10px;
  min-height: 33px;
  border-radius: 0;
  background: #ffffff;
  border: 0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 0;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
  min-width: 0;
}

.desktop-portal-kpi-card:last-child {
  border-right: 0;
}

.desktop-portal-kpi-card:hover {
  background: #f1f5f9;
}

.desktop-portal-kpi-top {
  display: contents;
}

.desktop-portal-kpi-icon {
  order: 1;
  font-size: 0.86rem;
  line-height: 1;
  flex-shrink: 0;
}

.desktop-portal-kpi-label {
  order: 2;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: auto;
  min-width: 0;
}

.desktop-portal-kpi-val {
  order: 3;
  font-size: 0.79rem;
  font-weight: 850;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 1px 7px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  flex-shrink: 0;
}

.desktop-portal-kpi-sub {
  display: none;
}

/* 2-Column Portal Workspace: Left Categorized Collapsible Sidebar + Right Focused Stage */
.desktop-commerce-hub-tabs {
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
}

.desktop-portal-grid {
  position: relative;
  display: grid;
  grid-template-columns: clamp(248px, 18.5vw, 286px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  transition: grid-template-columns 0.2s ease, gap 0.2s ease;
}

.desktop-portal-grid.is-sidebar-collapsed {
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
}

@media (max-width: 1024px) {
  .desktop-portal-grid,
  .desktop-portal-grid.is-sidebar-collapsed {
    grid-template-columns: 1fr;
  }
}

.desktop-portal-sidebar {
  position: sticky;
  top: 6px;
  max-height: none;
  overflow: visible;
  padding: 0;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.desktop-portal-sidebar-scroll {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100dvh - 18px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  border-radius: 6px;
  scrollbar-gutter: stable;
}

.desktop-portal-sidebar-scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  background: transparent;
}

.desktop-portal-sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.desktop-portal-sidebar-scroll::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.desktop-portal-sidebar:hover .desktop-portal-sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.48);
}

.desktop-portal-sidebar:hover .desktop-portal-sidebar-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 85, 105, 0.75);
}

@supports not selector(::-webkit-scrollbar) {
  .desktop-portal-sidebar-scroll {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
  }
  .desktop-portal-sidebar:hover .desktop-portal-sidebar-scroll {
    scrollbar-color: rgba(100, 116, 139, 0.48) transparent;
  }
}

.desktop-portal-grid.is-sidebar-collapsed .desktop-portal-sidebar {
  position: sticky;
  top: 6px;
  z-index: 30;
  width: 14px;
  min-width: 14px;
  min-height: 40px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.desktop-portal-grid.is-sidebar-collapsed .desktop-portal-sidebar > .desktop-portal-sidebar-scroll,
.desktop-portal-grid.is-sidebar-collapsed .desktop-portal-sidebar .desktop-portal-top-quick-nav,
.desktop-portal-grid.is-sidebar-collapsed .desktop-portal-sidebar .desktop-portal-nav-group,
.desktop-portal-grid.is-sidebar-collapsed .desktop-portal-sidebar > .desktop-portal-nav-group {
  display: none !important;
}

/* Stylized square toggle button with dark-blue decorative border for user web portal sidebar */
.desktop-portal-sidebar-toggle {
  position: absolute;
  z-index: 40;
  top: 6px;
  right: -13px;
  display: grid !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  place-items: center;
  border: 1.75px solid #1d4ed8 !important;
  border-radius: 7px !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #1e40af !important;
  background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%) !important;
  cursor: pointer;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.95),
    0 2px 7px rgba(29, 78, 216, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 150ms ease;
}

.desktop-portal-sidebar-toggle:hover {
  border-color: #1e3a8a !important;
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%) !important;
  color: #1e3a8a !important;
  box-shadow:
    0 0 0 2px #ffffff,
    0 3px 10px rgba(30, 58, 138, 0.3),
    inset 0 1px 0 #ffffff !important;
  transform: translateY(-0.5px);
}

.desktop-portal-sidebar-toggle:active {
  transform: translateY(0);
}

.desktop-portal-sidebar-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease;
}

.desktop-portal-sidebar-toggle svg .portal-toggle-chevron {
  transform-origin: 10.25px 9px;
  transition: transform 0.22s ease;
}

.desktop-portal-grid.is-sidebar-collapsed .desktop-portal-sidebar-toggle svg .portal-toggle-chevron {
  transform: rotate(180deg);
}

.desktop-portal-grid.is-sidebar-collapsed .desktop-portal-sidebar-toggle span:not(.portal-toggle-icon-wrap) {
  transform: rotate(180deg);
}

.desktop-portal-nav-group:first-of-type > .desktop-portal-nav-title {
  padding-right: 18px;
}

.desktop-portal-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 0;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  padding: 0;
}

.desktop-portal-nav-group:last-child {
  border-bottom: 0;
}

.desktop-portal-nav-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 11px;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #334155;
  background: #f1f5f9;
  border-left: 3.5px solid transparent;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-radius: 0;
}

.desktop-portal-nav-title::-webkit-details-marker {
  display: none;
}

.desktop-portal-nav-title:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.desktop-portal-nav-group.has-active-item > .desktop-portal-nav-title,
.desktop-portal-nav-group.has-active-item > .desktop-portal-nav-title:hover,
.desktop-portal-nav-group:has(.desktop-portal-nav-btn.is-active) > .desktop-portal-nav-title {
  background: #e0f2fe;
  color: #0369a1;
  border-left-color: #0284c7;
}

.desktop-portal-nav-title .nav-group-chev {
  font-size: 0.85rem;
  color: #475569;
  transition: transform 0.16s ease;
  flex-shrink: 0;
}

.desktop-portal-nav-group.has-active-item > .desktop-portal-nav-title .nav-group-chev,
.desktop-portal-nav-group:has(.desktop-portal-nav-btn.is-active) > .desktop-portal-nav-title .nav-group-chev {
  color: #0369a1;
}

.desktop-portal-nav-group:not([open]) .desktop-portal-nav-title .nav-group-chev {
  transform: rotate(-90deg);
}

.desktop-portal-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 2px 0;
  border-top: 1px solid #e2e8f0;
}

.desktop-portal-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 11px;
  border-radius: 0;
  border: 0;
  border-left: 3.5px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.desktop-portal-nav-btn:hover {
  background: #f0f9ff;
}

.desktop-portal-nav-btn:hover .nav-btn-copy strong {
  color: #0369a1;
}

.desktop-portal-nav-btn.is-active,
.desktop-portal-nav-btn.is-active:hover {
  background: #e0f2fe;
  border-left-color: #0284c7;
  box-shadow: inset 0 1px 0 #bae6fd, inset 0 -1px 0 #bae6fd;
}

.desktop-portal-nav-btn .nav-btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
  font-size: 0.86rem;
  flex-shrink: 0;
}

.desktop-portal-nav-btn.is-active .nav-btn-icon {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.16);
}

.desktop-portal-nav-btn .nav-btn-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.desktop-portal-nav-btn .nav-btn-copy strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}

.desktop-portal-nav-btn.is-active .nav-btn-copy strong {
  color: #0c4a6e;
  font-weight: 850;
}

/* Main Stage & Breadcrumb Header */
.desktop-portal-main {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html.is-inbox-route,
html.is-inbox-route body,
html:has(.desktop-portal-section .shop-care-workspace-page),
body:has(.desktop-portal-section .shop-care-workspace-page),
html:has(.desktop-portal-section.is-inbox-center-mode),
body:has(.desktop-portal-section.is-inbox-center-mode) {
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

html.is-inbox-route .desktop-header,
html.is-inbox-route #shopSubnavBar,
body:has(.desktop-portal-section .shop-care-workspace-page) .desktop-header,
body:has(.desktop-portal-section.is-inbox-center-mode) .desktop-header,
body:has(.desktop-portal-section .shop-care-workspace-page) #shopSubnavBar,
body:has(.desktop-portal-section.is-inbox-center-mode) #shopSubnavBar {
  display: none !important;
}

.shop-desktop-container:has(.shop-care-workspace-page),
.shop-desktop-container:has(.desktop-portal-section.is-inbox-center-mode) {
  height: 100dvh !important;
  max-height: 100dvh !important;
  padding: 6px 10px !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.desktop-portal-section:has(.shop-care-workspace-page),
.desktop-portal-section.is-inbox-center-mode {
  height: calc(100dvh - 12px) !important;
  max-height: calc(100dvh - 12px) !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.desktop-portal-section.is-inbox-center-mode > .desktop-portal-top-banner,
.desktop-portal-section.is-inbox-center-mode > .desktop-portal-kpi-bar,
.desktop-portal-section.is-inbox-center-mode > .desktop-resale-tracking-row,
.desktop-portal-section.is-inbox-center-mode > .desktop-order-flow-tools,
.desktop-portal-section:has(.shop-care-workspace-page) > .desktop-portal-top-banner,
.desktop-portal-section:has(.shop-care-workspace-page) > .desktop-portal-kpi-bar,
.desktop-portal-section:has(.shop-care-workspace-page) > .desktop-resale-tracking-row,
.desktop-portal-section:has(.shop-care-workspace-page) > .desktop-order-flow-tools {
  display: none !important;
}

.desktop-portal-grid:has(.shop-care-workspace-page) {
  height: calc(100dvh - 12px) !important;
  max-height: calc(100dvh - 12px) !important;
}

.desktop-portal-grid:has(.shop-care-workspace-page) .desktop-portal-sidebar-scroll {
  max-height: calc(100dvh - 14px) !important;
}

.desktop-portal-grid:has(.shop-care-workspace-page) > .desktop-portal-main {
  position: sticky;
  top: 0;
  bottom: 0;
  height: calc(100dvh - 12px) !important;
  max-height: calc(100dvh - 12px) !important;
  align-self: start;
  z-index: 15;
  overflow: hidden;
}

.desktop-portal-section:has(.shop-care-workspace-page) .desktop-commerce-embed-box,
.desktop-portal-section:has(.shop-care-workspace-page) .desktop-commerce-embed-box .shop-commerce-page.shop-commerce-embedded.shop-care-workspace-page {
  height: calc(100dvh - 12px) !important;
  max-height: calc(100dvh - 12px) !important;
  min-height: 0 !important;
}

.desktop-portal-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

.desktop-portal-bc-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.81rem;
}

.desktop-portal-bc-left .bc-root {
  font-weight: 700;
  color: #64748b;
}

.desktop-portal-bc-left .bc-sep {
  color: #94a3b8;
}

.desktop-portal-bc-left .bc-group {
  font-weight: 700;
  color: #334155;
}

.desktop-portal-bc-left .bc-current {
  font-weight: 850;
  color: #0f172a;
}

.desktop-portal-bc-right small {
  font-size: 0.76rem;
  font-weight: 600;
  color: #475569;
}

/* Desktop Widescreen Overrides for Embedded Mobile Shop Commerce Subpages */
.desktop-commerce-embed-box .shop-commerce-page.shop-commerce-embedded {
  position: static;
  inset: auto;
  width: 100%;
  max-width: 100%;
  min-height: 0 !important;
  height: auto !important;
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
  transform: none;
}

/* Compact Single-Border Header Search Bar on Desktop (No Double Box Frame, No Vertical Stretch) */
.desktop-commerce-embed-box .shop-commerce-page.shop-commerce-embedded > header {
  border-radius: 6px;
  margin-bottom: 8px;
  padding: 0;
  background: transparent;
  color: #0f172a;
  border: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.desktop-commerce-embed-box .shop-commerce-page.shop-commerce-embedded > header > button {
  display: none !important;
}

.desktop-commerce-embed-box .shop-commerce-page.shop-commerce-embedded > header > strong {
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 850;
}

.desktop-commerce-embed-box .shop-commerce-page.shop-commerce-embedded > header:not(:has(.shop-commerce-header-search)) {
  display: none;
}

.desktop-commerce-embed-box .shop-commerce-page.shop-commerce-embedded .shop-commerce-header-search,
.desktop-commerce-embed-box .shop-commerce-page.shop-commerce-embedded .shop-commerce-header-search.is-docked-below-hero {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: 100%;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
}

.desktop-commerce-embed-box .shop-commerce-page.shop-commerce-embedded .shop-commerce-header-search.hidden {
  display: none !important;
}

.desktop-commerce-embed-box .shop-commerce-page.shop-commerce-embedded .shop-commerce-header-search .mobile-inbox-search {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 calc(100% / 3) !important;
  width: calc(100% / 3) !important;
  min-width: 280px !important;
  max-width: 100%;
  box-sizing: border-box !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.desktop-commerce-embed-box .shop-commerce-notice:empty,
.desktop-commerce-embed-box .shop-commerce-notice.is-merged-into-sheet,
.desktop-commerce-embed-box .shop-list-search-empty:empty,
.desktop-commerce-embed-box .shop-order-search-empty:empty {
  display: none !important;
}

.desktop-spreadsheet-table tr.desktop-spreadsheet-empty-row td.sheet-cell-empty-notice {
  padding: 20px 14px !important;
  text-align: center !important;
  color: #64748b !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  background: #ffffff !important;
}

.desktop-commerce-embed-box .shop-commerce-form.is-inline-search-toolbar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.desktop-commerce-embed-box .shop-commerce-form.is-inline-search-toolbar > label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 calc(100% / 3) !important;
  width: calc(100% / 3) !important;
  min-width: 280px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.desktop-commerce-embed-box .shop-commerce-form.is-inline-search-toolbar > label .inline-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 0.9rem;
  line-height: 1;
  color: #475569;
}

.desktop-commerce-embed-box .shop-commerce-form.is-inline-search-toolbar > label > input {
  display: block !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 4px !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 0.81rem !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

.desktop-commerce-embed-box .shop-commerce-form.is-inline-search-toolbar > button {
  flex: 0 0 auto !important;
  width: auto !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border-radius: 6px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0369a1 !important;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.16) !important;
}

.desktop-commerce-embed-box .shop-commerce-page.shop-commerce-embedded .shop-commerce-header-search .mobile-inbox-search span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 0.9rem;
  line-height: 1;
  color: #475569;
  margin: 0;
}

.desktop-commerce-embed-box .shop-commerce-page.shop-commerce-embedded .shop-commerce-header-search .mobile-inbox-search input {
  display: block !important;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 4px !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 0.81rem !important;
  color: #0f172a;
  box-shadow: none !important;
}

.desktop-commerce-embed-box .shop-commerce-page.shop-commerce-embedded > .shop-commerce-body {
  flex: 0 0 auto !important;
  height: auto !important;
  padding: 0 0 16px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.desktop-commerce-embed-box .shop-commerce-page.shop-commerce-embedded > .shop-commerce-body > * {
  flex: 0 0 auto !important;
}

/* Eliminate ALL Double/Nested Rounded Borders & Flashy Colored Borders Inside Embedded Views */
.desktop-commerce-embed-box article.shop-commerce-card,
.desktop-commerce-embed-box section.shop-seller-hero-card,
.desktop-commerce-embed-box section.shop-showcase-hero,
.desktop-commerce-embed-box article.shop-showcase-product-card,
.desktop-commerce-embed-box article.shop-voucher-ticket,
.desktop-commerce-embed-box article.shop-reward-store-card,
.desktop-commerce-embed-box article.shop-commerce-order-card,
.desktop-commerce-embed-box article.shop-notification-card,
.desktop-commerce-embed-box article.shop-carrier-card {
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  padding: 12px 14px !important;
  margin: 0 !important;
}

.desktop-commerce-embed-box article.shop-carrier-card[hidden] {
  display: none !important;
}

.desktop-commerce-embed-box .shop-order-compact-main,
.desktop-commerce-embed-box .shop-product-summary,
.desktop-commerce-embed-box .shop-order-summary,
.desktop-commerce-embed-box .shop-policy-block,
.desktop-commerce-embed-box .shop-reward-balance-box {
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 2px 0 !important;
}

.desktop-commerce-embed-box .shop-seller-badge,
.desktop-commerce-embed-box .shop-seller-badge.is-gold,
.desktop-commerce-embed-box .shop-seller-kpi-pill,
.desktop-commerce-embed-box .shop-mall-product-seal,
.desktop-commerce-embed-box .shop-mall-product-subseal,
.desktop-commerce-embed-box .shop-policy-chip {
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  background: #f8fafc !important;
  color: #334155 !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  padding: 2px 7px !important;
}

/* Compact Single-Line Main Title Header Bar Inside Embedded Views — Strip All Kicker Badges, Path Notes & Subpage KPI Clutter */
.desktop-portal-breadcrumb,
.desktop-commerce-embed-box .shop-seller-hero-card > .shop-seller-hero-top,
.desktop-commerce-embed-box .shop-seller-hero-card > .shop-seller-kpi-strip,
.desktop-commerce-embed-box .shop-seller-hero-card > .shop-subpage-kpi-grid,
.desktop-commerce-embed-box .shop-seller-hero-card > .shop-orders-ops-strip,
.desktop-commerce-embed-box .shop-seller-hero-card > .shop-pill-scroll-strip:not(.shop-commerce-order-tabs):not(.shop-commerce-actions),
.desktop-commerce-embed-box .shop-address-summary-card {
  display: none !important;
}

.desktop-commerce-embed-box .shop-seller-hero-card:not(.shop-info-summary-card),
.desktop-commerce-embed-box section.shop-seller-hero-card:not(.shop-info-summary-card),
.desktop-commerce-embed-box article.shop-seller-hero-card:not(.shop-info-summary-card),
.desktop-commerce-embed-box section.shop-showcase-hero {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 8px 14px !important;
  padding: 10px 16px !important;
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%) !important;
  border: 1px solid #93c5fd !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.1), 0 1px 2px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.desktop-commerce-embed-box section.shop-info-summary-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 10px !important;
  padding: 12px 16px 14px !important;
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%) !important;
  border: 1px solid #93c5fd !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  overflow: hidden !important;
}

.desktop-commerce-embed-box section.shop-info-summary-card > .seller-mall-banner.is-info-banner {
  width: fit-content !important;
  margin: -12px 0 0 -16px !important;
  padding: 6px 14px !important;
  border-radius: 0 0 10px 0 !important;
}

.desktop-commerce-embed-box section.shop-info-summary-card > .shop-info-identity-row {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) auto !important;
  align-items: flex-start !important;
  width: 100% !important;
  gap: 12px !important;
}

.desktop-commerce-embed-box section.shop-info-summary-card .shop-info-cta-col {
  position: absolute !important;
  top: 12px !important;
  right: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  margin-left: auto !important;
  z-index: 2 !important;
}

.desktop-commerce-embed-box section.shop-info-summary-card .seller-identity-main {
  padding-right: 220px !important;
}

.desktop-commerce-embed-box section.shop-info-summary-card > .shop-info-facts {
  width: 100% !important;
  max-width: 720px !important;
  box-sizing: border-box !important;
}

.desktop-commerce-embed-box .shop-seller-hero-card > div:only-child {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  flex: 1 1 100% !important;
  width: 100% !important;
  gap: 8px 14px !important;
}

.desktop-commerce-embed-box .shop-seller-hero-card > h2,
.desktop-commerce-embed-box .shop-seller-hero-card > h3,
.desktop-commerce-embed-box .shop-seller-hero-card h2,
.desktop-commerce-embed-box .shop-seller-hero-card h3,
.desktop-commerce-embed-box section.shop-showcase-hero > h2,
.desktop-commerce-embed-box section.shop-showcase-hero > h3 {
  margin: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
  font-size: 0.96rem !important;
  font-weight: 850 !important;
  color: #0c4a6e !important;
  line-height: 1.25 !important;
}

.desktop-commerce-embed-box .shop-seller-hero-card > .shop-commerce-order-tabs,
.desktop-commerce-embed-box .shop-seller-hero-card > .shop-order-inline-actions,
.desktop-commerce-embed-box .shop-seller-hero-card > .shop-commerce-actions,
.desktop-commerce-embed-box .shop-seller-hero-card > .sheet-actions-group,
.desktop-commerce-embed-box .shop-seller-hero-card .sheet-actions-group {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 0 0 auto !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.desktop-commerce-embed-box .shop-seller-hero-card .shop-commerce-order-tabs button {
  background: #ffffff !important;
  border: 1px solid #93c5fd !important;
  color: #1e3a8a !important;
  font-weight: 750 !important;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.desktop-commerce-embed-box .shop-seller-hero-card .shop-commerce-order-tabs button::before {
  display: none !important;
  content: none !important;
}

.desktop-commerce-embed-box .shop-seller-hero-card .shop-commerce-order-tabs button:hover {
  background: #eff6ff !important;
  border-color: #0284c7 !important;
  color: #0369a1 !important;
}

.desktop-commerce-embed-box .shop-seller-hero-card .shop-commerce-order-tabs button[aria-pressed="true"],
.desktop-commerce-embed-box .shop-seller-hero-card .shop-commerce-order-tabs button.is-active {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%) !important;
  border-color: #0369a1 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.25) !important;
}

.order-tab-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 18px;
  padding: 0 6px;
  margin-left: 5px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  font-variant-numeric: tabular-nums;
}

.desktop-commerce-embed-box .shop-seller-hero-card .shop-commerce-order-tabs button[aria-pressed="true"] .order-tab-count-badge,
.desktop-commerce-embed-box .shop-seller-hero-card .shop-commerce-order-tabs button.is-active .order-tab-count-badge,
.shop-sort-btn.is-active .order-tab-count-badge {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.sheet-actions-group button.is-confirm-cancel-btn {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
  font-weight: 800 !important;
}

.sheet-actions-group button.is-confirm-cancel-btn:hover {
  background: #ffedd5 !important;
  border-color: #f97316 !important;
}

.sheet-actions-group button.is-cancelled-done-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
  opacity: 0.85 !important;
  cursor: default !important;
}

/* Transform Seller Center Summary (.shop-seller-center-summary) Into a Flat 4-Column Spreadsheet Status Table */
.desktop-commerce-embed-box .shop-seller-center-summary {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  align-items: stretch !important;
  padding: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.desktop-commerce-embed-box .shop-seller-center-summary > .shop-seller-summary-status {
  grid-column: 1 / 3;
  margin: 0 !important;
  padding: 8px 12px !important;
  background: #f1f5f9 !important;
  border: 0 !important;
  border-right: 1px solid #cbd5e1 !important;
  font-size: 0.79rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  display: flex;
  align-items: center;
}

.desktop-commerce-embed-box .shop-seller-center-summary > .shop-seller-refresh-btn,
.desktop-commerce-embed-box .shop-seller-center-summary > .shop-seller-setup-cta {
  margin: 0 !important;
  min-height: 36px !important;
  padding: 6px 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

.desktop-commerce-embed-box .shop-seller-center-summary > .shop-seller-refresh-btn {
  grid-column: 3 / 4;
  border-right: 1px solid #cbd5e1 !important;
}

.desktop-commerce-embed-box .shop-seller-center-summary > .shop-seller-setup-cta {
  grid-column: 4 / 5;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.desktop-commerce-embed-box .shop-seller-center-summary > .shop-seller-refresh-btn:hover,
.desktop-commerce-embed-box .shop-seller-center-summary > .shop-seller-setup-cta:hover {
  background: #e2e8f0 !important;
}

.desktop-commerce-embed-box .shop-seller-center-summary > .shop-seller-todo-tile,
.desktop-commerce-embed-box .shop-seller-todo-tile[data-seller-count],
.desktop-commerce-embed-box .shop-seller-todo-tile[data-order-filter] {
  min-height: 58px !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-top: 1px solid #cbd5e1 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.desktop-commerce-embed-box .shop-seller-center-summary > .shop-seller-todo-tile:hover {
  background: #f8fafc !important;
}

/* Transform Seller Center Menu (.shop-seller-center-menu) Into a 4-Column Spreadsheet Directory Table */
.desktop-commerce-embed-box .shop-seller-center-menu {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.desktop-commerce-embed-box .shop-seller-center-menu::before {
  content: "NHÓM · PHÂN HỆ / CHỨC NĂNG VẬN HÀNH — BẢNG ĐIỀU HƯỚNG QUẢN LÝ";
  display: block;
  padding: 8px 12px;
  background: #f1f5f9;
  border-bottom: 1.5px solid #cbd5e1;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  color: #334155;
}

.desktop-commerce-embed-box .shop-seller-center-menu > button {
  display: grid !important;
  grid-template-columns: 42px minmax(210px, 270px) minmax(0, 1fr) 82px !important;
  align-items: center !important;
  gap: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  padding: 0 !important;
  min-height: 38px !important;
  box-shadow: none !important;
  transform: none !important;
  text-align: left !important;
}

.desktop-commerce-embed-box .shop-seller-center-menu > button:nth-child(even) {
  background: #fcfcfd !important;
}

.desktop-commerce-embed-box .shop-seller-center-menu > button:last-child {
  border-bottom: 0 !important;
}

.desktop-commerce-embed-box .shop-seller-center-menu > button:hover {
  background: #f0fdfa !important;
}

.desktop-commerce-embed-box .shop-seller-center-menu > button .shop-seller-center-icon {
  width: 100% !important;
  height: 100% !important;
  min-height: 38px !important;
  border: 0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  display: grid !important;
  place-items: center !important;
  font-size: 0.88rem !important;
  color: #334155 !important;
}

.desktop-commerce-embed-box .shop-seller-center-menu > button .shop-seller-center-copy {
  display: contents !important;
}

.desktop-commerce-embed-box .shop-seller-center-menu > button .shop-seller-center-copy > strong {
  padding: 8px 12px !important;
  border-right: 1px solid #e2e8f0 !important;
  font-size: 0.81rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  height: 100%;
  display: flex;
  align-items: center;
}

.desktop-commerce-embed-box .shop-seller-center-menu > button .shop-seller-center-copy > small {
  padding: 8px 12px !important;
  border-right: 1px solid #e2e8f0 !important;
  font-size: 0.77rem !important;
  color: #475569 !important;
  height: 100%;
  display: flex;
  align-items: center;
}

.desktop-commerce-embed-box .shop-seller-center-menu > button .shop-seller-center-arrow {
  padding: 6px 10px !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  color: #0f766e !important;
  text-align: center !important;
  justify-self: center;
}

/* Hide Duplicate Navigation Pill Strips Inside Desktop Portal Where Left Column Menu Already Exists */
.desktop-portal-main .desktop-commerce-embed-box .shop-seller-hero-card > .shop-pill-scroll-strip:not(.shop-commerce-order-tabs):not(.shop-commerce-actions),
.desktop-portal-main .desktop-commerce-embed-box .shop-orders-ops-strip,
.desktop-portal-main .desktop-commerce-embed-box .shop-commerce-menu.is-pill-strip {
  display: none !important;
}

/* Transform Buyer / Commerce Pill Menu (.shop-commerce-menu) Into a 2-Column Spreadsheet Grid When Outside Portal */
.desktop-commerce-embed-box .shop-commerce-menu.is-pill-strip {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.desktop-commerce-embed-box .shop-commerce-menu.is-pill-strip > button {
  border: 0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  padding: 9px 12px !important;
  font-size: 0.8rem !important;
  font-weight: 750 !important;
  color: #0f172a !important;
  text-align: left !important;
  box-shadow: none !important;
}

.desktop-commerce-embed-box .shop-commerce-menu.is-pill-strip > button:hover {
  background: #f0fdfa !important;
}

/* ==========================================================================
   SPREADSHEET / DATA-TABLE MANAGEMENT SYSTEM (.desktop-spreadsheet-table & .shop-admin-grid)
   ========================================================================== */
.desktop-spreadsheet-wrap,
.desktop-commerce-embed-box .shop-admin-table-card,
.desktop-commerce-embed-box .shop-admin-grid {
  width: 100%;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: hidden;
  margin: 0;
}

.shop-admin-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.desktop-commerce-embed-box .shop-import-note-card {
  padding: 7px 12px !important;
  margin: 0 0 8px !important;
  border: 1px solid #bae6fd !important;
  border-radius: 6px !important;
  background: #f0f9ff !important;
  color: #0c4a6e !important;
  font-size: 0.77rem !important;
  line-height: 1.4 !important;
}

.desktop-commerce-embed-box .shop-import-note-card p {
  margin: 0 !important;
  font-size: 0.77rem !important;
  color: #0c4a6e !important;
}

.desktop-spreadsheet-toolbar,
.desktop-commerce-embed-box .shop-admin-table-head,
.desktop-commerce-embed-box .shop-admin-grid-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(90deg, #eff6ff 0%, #f0f9ff 60%, #f8fafc 100%);
  border-bottom: 1px solid #bae6fd;
}

.sheet-toolbar-title,
.desktop-commerce-embed-box .shop-admin-grid-toolbar > strong {
  font-size: 0.81rem;
  font-weight: 850;
  color: #0c4a6e;
  margin-right: auto !important;
  text-align: left !important;
}

.desktop-commerce-embed-box .shop-admin-grid-toolbar > .shop-admin-grid-search {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 0 1 220px;
}

.desktop-commerce-embed-box .shop-admin-grid-toolbar > .shop-admin-grid-search input[type="search"] {
  height: 30px !important;
  min-height: 30px !important;
  padding: 4px 10px !important;
  font-size: 0.76rem !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  margin: 0 !important;
}

.desktop-commerce-embed-box .shop-admin-grid-toolbar > button,
.desktop-commerce-embed-box .shop-admin-grid-toolbar > .shop-admin-grid-search button {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  margin: 0 !important;
  white-space: nowrap;
}

.desktop-commerce-embed-box .shop-admin-grid-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.74rem;
  font-weight: 700;
  color: #334155;
}

.desktop-commerce-embed-box .shop-admin-grid-pager label {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 0 !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  color: #475569 !important;
  white-space: nowrap;
}

.desktop-commerce-embed-box .shop-admin-grid-pager select {
  width: auto !important;
  min-width: 54px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 2px 6px !important;
  margin: 0 !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
}

.desktop-commerce-embed-box .shop-admin-grid-pager button {
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 7px !important;
  margin: 0 !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  font-size: 0.74rem !important;
  font-weight: 750 !important;
}

.sheet-toolbar-count {
  font-size: 0.73rem;
  font-weight: 800;
  color: #0369a1;
  background: #ffffff;
  border: 1px solid #7dd3fc;
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.desktop-commerce-embed-box .shop-admin-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.desktop-spreadsheet-scroll,
.desktop-commerce-embed-box .shop-admin-table-scroll,
.desktop-commerce-embed-box .shop-admin-grid-scroll {
  width: 100%;
  overflow-x: auto;
}

.desktop-spreadsheet-table,
.desktop-commerce-embed-box .shop-admin-grid table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.8rem;
  background: #ffffff;
}

.desktop-spreadsheet-table thead tr,
.desktop-spreadsheet-table tbody tr,
.desktop-commerce-embed-box .shop-admin-grid thead tr,
.desktop-commerce-embed-box .shop-admin-grid tbody tr {
  display: table-row !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.desktop-spreadsheet-table thead tr[hidden],
.desktop-spreadsheet-table tbody tr[hidden],
.desktop-spreadsheet-table tbody tr.is-page-hidden,
.desktop-commerce-embed-box .shop-admin-grid thead tr[hidden],
.desktop-commerce-embed-box .shop-admin-grid tbody tr[hidden] {
  display: none !important;
}

.desktop-commerce-embed-box .shop-load-more,
.desktop-commerce-embed-box .shop-commerce-body > .shop-pagination {
  display: none !important;
}

/* Desktop Spreadsheet Pagination Footer Bar (Buyer & Seller Tables) */
.desktop-spreadsheet-pagination,
.desktop-commerce-embed-box .shop-admin-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 9px 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #cbd5e1;
  font-size: 0.76rem;
  color: #334155;
}

.sheet-page-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.sheet-page-summary {
  font-weight: 750;
  color: #334155;
  font-variant-numeric: tabular-nums;
}

.sheet-page-size-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #475569;
  margin: 0 !important;
}

.sheet-page-size-select {
  height: 28px !important;
  min-height: 28px !important;
  width: auto !important;
  padding: 2px 8px !important;
  margin: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 0.74rem !important;
  font-weight: 750 !important;
  cursor: pointer;
}

.sheet-page-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.sheet-page-btn,
.desktop-commerce-embed-box .shop-admin-pager button {
  min-width: 30px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 9px !important;
  margin: 0 !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #1e293b !important;
  font-size: 0.74rem !important;
  font-weight: 750 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.sheet-page-btn:hover:not(:disabled),
.desktop-commerce-embed-box .shop-admin-pager button:hover:not(:disabled) {
  background: #eff6ff !important;
  border-color: #38bdf8 !important;
  color: #0369a1 !important;
}

.sheet-page-btn.is-active {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%) !important;
  border-color: #0369a1 !important;
  color: #ffffff !important;
  font-weight: 850 !important;
}

.sheet-page-btn:disabled,
.desktop-commerce-embed-box .shop-admin-pager button:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

.desktop-spreadsheet-table thead th,
.desktop-spreadsheet-table tbody td,
.desktop-commerce-embed-box .shop-admin-grid thead th,
.desktop-commerce-embed-box .shop-admin-grid tbody td {
  display: table-cell !important;
}

.desktop-spreadsheet-table thead th,
.desktop-commerce-embed-box .shop-admin-grid thead th {
  background: #f1f5f9;
  color: #0f172a;
  font-size: 0.73rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1.5px solid #94a3b8;
  border-right: 1px solid #cbd5e1;
  white-space: nowrap;
  user-select: none;
}

.desktop-spreadsheet-table thead th:first-child {
  width: 42px;
  text-align: center;
}

.desktop-spreadsheet-table thead th:last-child,
.desktop-commerce-embed-box .shop-admin-grid thead th:last-child {
  border-right: 0;
  text-align: right;
}

.desktop-spreadsheet-table tbody td,
.desktop-commerce-embed-box .shop-admin-grid tbody td {
  padding: 7px 10px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
  line-height: 1.35;
}

.desktop-spreadsheet-table tbody td:last-child,
.desktop-commerce-embed-box .shop-admin-grid tbody td:last-child {
  border-right: 0;
}

.desktop-spreadsheet-table tbody tr:nth-child(even) td,
.desktop-commerce-embed-box .shop-admin-grid tbody tr:nth-child(even) td {
  background: #fcfcfd;
}

.desktop-spreadsheet-table tbody tr:hover td,
.desktop-commerce-embed-box .shop-admin-grid tbody tr:hover td {
  background: #f0fdfa;
}

.desktop-spreadsheet-table tbody tr:last-child td,
.desktop-commerce-embed-box .shop-admin-grid tbody tr:last-child td {
  border-bottom: 0;
}

/* Specific Spreadsheet Cell Types */
.sheet-cell-index {
  width: 42px;
  text-align: center;
  font-weight: 750;
  color: #64748b !important;
  font-variant-numeric: tabular-nums;
  background: #f8fafc !important;
}

.sheet-cell-code {
  white-space: nowrap;
  font-weight: 750;
}

.sheet-sku-code,
.desktop-spreadsheet-table .shop-voucher-code-title,
.desktop-spreadsheet-table tr.shop-voucher-ticket .shop-voucher-code-title,
.desktop-spreadsheet-table tr.is-voucher-flash .shop-voucher-code-title,
.desktop-spreadsheet-table tr.is-voucher-freeship .shop-voucher-code-title,
.desktop-spreadsheet-table tr.is-voucher-muted .shop-voucher-code-title {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  padding: 3px 8px !important;
  margin: 0 !important;
  letter-spacing: 0.02em;
}

.desktop-spreadsheet-table tr.is-voucher-flash .shop-voucher-code-title {
  background: #fff1f2 !important;
  border-color: #fda4af !important;
  color: #9f1239 !important;
}

.desktop-spreadsheet-table tr.is-voucher-freeship .shop-voucher-code-title {
  background: #f0f9ff !important;
  border-color: #7dd3fc !important;
  color: #075985 !important;
}

.desktop-spreadsheet-table tr.shop-voucher-ticket {
  border-color: #e2e8f0 !important;
  background: #ffffff !important;
}

.desktop-spreadsheet-table .sheet-cell-badge {
  white-space: nowrap;
}

.desktop-spreadsheet-table .shop-voucher-stub-value {
  display: inline-block;
  font-size: 0.85rem !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  margin-right: 6px;
}

.desktop-spreadsheet-table .shop-voucher-stub-tag {
  display: inline-block;
  font-size: 0.69rem !important;
  font-weight: 800 !important;
  color: #334155 !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  padding: 2px 6px !important;
}

.desktop-spreadsheet-table tr.is-voucher-flash .shop-voucher-stub-tag {
  color: #9f1239 !important;
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
}

.desktop-spreadsheet-table tr.is-voucher-freeship .shop-voucher-stub-tag {
  color: #075985 !important;
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
}

.desktop-spreadsheet-table .shop-voucher-remaining-pill {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-size: 0.72rem !important;
  font-weight: 750 !important;
}

.desktop-spreadsheet-table .shop-voucher-shop-pill.is-clickable-shop-pill {
  cursor: pointer;
  color: #0f172a !important;
  transition: color 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.desktop-spreadsheet-table .shop-voucher-shop-pill.is-clickable-shop-pill:hover {
  color: #0284c7 !important;
  border-color: #7dd3fc !important;
  background: #f0f9ff !important;
  text-decoration: underline;
}

/* Proportional Column Width Allocation for Content-Rich Spreadsheet Cells Across All Schema Types */
/* 1. General Schema (6 cols: STT | Phân loại / Nhãn | Đối tượng / Hạng mục | Chi tiết & Số liệu | Trạng thái | Thao tác) */
.desktop-spreadsheet-wrap[data-sheet-schema="general"] .desktop-spreadsheet-table th:nth-child(1),
.desktop-spreadsheet-wrap[data-sheet-schema="general"] .desktop-spreadsheet-table td:nth-child(1) {
  width: 46px;
  min-width: 46px;
}
.desktop-spreadsheet-wrap[data-sheet-schema="general"] .desktop-spreadsheet-table th:nth-child(2),
.desktop-spreadsheet-wrap[data-sheet-schema="general"] .desktop-spreadsheet-table td:nth-child(2) {
  width: 12%;
  min-width: 125px;
}
.desktop-spreadsheet-wrap[data-sheet-schema="general"] .desktop-spreadsheet-table th:nth-child(3),
.desktop-spreadsheet-wrap[data-sheet-schema="general"] .desktop-spreadsheet-table td:nth-child(3) {
  width: 18%;
  min-width: 170px;
}
.desktop-spreadsheet-wrap[data-sheet-schema="general"] .desktop-spreadsheet-table th:nth-child(4),
.desktop-spreadsheet-wrap[data-sheet-schema="general"] .desktop-spreadsheet-table td:nth-child(4) {
  width: 43%;
  min-width: 280px;
  white-space: normal;
  line-height: 1.48;
}
.desktop-spreadsheet-wrap[data-sheet-schema="general"] .desktop-spreadsheet-table th:nth-child(5),
.desktop-spreadsheet-wrap[data-sheet-schema="general"] .desktop-spreadsheet-table td:nth-child(5) {
  width: 11%;
  min-width: 110px;
}
.desktop-spreadsheet-wrap[data-sheet-schema="general"] .desktop-spreadsheet-table th:nth-child(6),
.desktop-spreadsheet-wrap[data-sheet-schema="general"] .desktop-spreadsheet-table td:nth-child(6) {
  width: 13%;
  min-width: 135px;
}

/* 2. Order & Payment Reconciliation Schema (7 cols: STT | Mã đơn / Thời gian | Gian hàng / Khách nhận | Sản phẩm & Số lượng | Tổng tiền | Trạng thái | Thao tác) */
.desktop-spreadsheet-wrap[data-sheet-schema="order"] .desktop-spreadsheet-table th:nth-child(1),
.desktop-spreadsheet-wrap[data-sheet-schema="order"] .desktop-spreadsheet-table td:nth-child(1) {
  width: 44px;
  min-width: 44px;
}
.desktop-spreadsheet-wrap[data-sheet-schema="order"] .desktop-spreadsheet-table th:nth-child(2),
.desktop-spreadsheet-wrap[data-sheet-schema="order"] .desktop-spreadsheet-table td:nth-child(2) {
  width: 11%;
  min-width: 115px;
}
.desktop-spreadsheet-wrap[data-sheet-schema="order"] .desktop-spreadsheet-table th:nth-child(3),
.desktop-spreadsheet-wrap[data-sheet-schema="order"] .desktop-spreadsheet-table td:nth-child(3) {
  width: 23%;
  min-width: 205px;
  white-space: normal;
}
.desktop-spreadsheet-wrap[data-sheet-schema="order"] .desktop-spreadsheet-table th:nth-child(4),
.desktop-spreadsheet-wrap[data-sheet-schema="order"] .desktop-spreadsheet-table td:nth-child(4) {
  width: 31%;
  min-width: 260px;
  white-space: normal;
}
.desktop-spreadsheet-wrap[data-sheet-schema="order"] .desktop-spreadsheet-table th:nth-child(5),
.desktop-spreadsheet-wrap[data-sheet-schema="order"] .desktop-spreadsheet-table td:nth-child(5) {
  width: 10%;
  min-width: 105px;
}
.desktop-spreadsheet-wrap[data-sheet-schema="order"] .desktop-spreadsheet-table th:nth-child(6),
.desktop-spreadsheet-wrap[data-sheet-schema="order"] .desktop-spreadsheet-table td:nth-child(6) {
  width: 10%;
  min-width: 105px;
}
.desktop-spreadsheet-wrap[data-sheet-schema="order"] .desktop-spreadsheet-table th:nth-child(7),
.desktop-spreadsheet-wrap[data-sheet-schema="order"] .desktop-spreadsheet-table td:nth-child(7) {
  width: 15%;
  min-width: 165px;
}

/* 3. Product & Inventory Schema (7 cols: STT | Mã SKU / Phân nhóm | Sản phẩm | Gian hàng & Thông số | Giá bán & Ưu đãi | Tình trạng | Thao tác) */
.desktop-spreadsheet-wrap[data-sheet-schema="product"] .desktop-spreadsheet-table th:nth-child(1),
.desktop-spreadsheet-wrap[data-sheet-schema="product"] .desktop-spreadsheet-table td:nth-child(1) {
  width: 44px;
  min-width: 44px;
}
.desktop-spreadsheet-wrap[data-sheet-schema="product"] .desktop-spreadsheet-table th:nth-child(2),
.desktop-spreadsheet-wrap[data-sheet-schema="product"] .desktop-spreadsheet-table td:nth-child(2) {
  width: 12%;
  min-width: 120px;
}
.desktop-spreadsheet-wrap[data-sheet-schema="product"] .desktop-spreadsheet-table th:nth-child(3),
.desktop-spreadsheet-wrap[data-sheet-schema="product"] .desktop-spreadsheet-table td:nth-child(3) {
  width: 27%;
  min-width: 230px;
  white-space: normal;
}
.desktop-spreadsheet-wrap[data-sheet-schema="product"] .desktop-spreadsheet-table th:nth-child(4),
.desktop-spreadsheet-wrap[data-sheet-schema="product"] .desktop-spreadsheet-table td:nth-child(4) {
  width: 24%;
  min-width: 210px;
  white-space: normal;
}
.desktop-spreadsheet-wrap[data-sheet-schema="product"] .desktop-spreadsheet-table th:nth-child(5),
.desktop-spreadsheet-wrap[data-sheet-schema="product"] .desktop-spreadsheet-table td:nth-child(5) {
  width: 11%;
  min-width: 110px;
}
.desktop-spreadsheet-wrap[data-sheet-schema="product"] .desktop-spreadsheet-table th:nth-child(6),
.desktop-spreadsheet-wrap[data-sheet-schema="product"] .desktop-spreadsheet-table td:nth-child(6) {
  width: 10%;
  min-width: 105px;
}
.desktop-spreadsheet-wrap[data-sheet-schema="product"] .desktop-spreadsheet-table th:nth-child(7),
.desktop-spreadsheet-wrap[data-sheet-schema="product"] .desktop-spreadsheet-table td:nth-child(7) {
  width: 16%;
  min-width: 155px;
}

/* Warehouse: ten requested columns; keep actions accessible while scrolling. */
.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table th:nth-child(1),.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table td:nth-child(1){width:42px;min-width:42px;white-space:normal}
.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table th:nth-child(2),.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table td:nth-child(2){width:110px;min-width:110px;white-space:normal}
.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table th:nth-child(3),.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table td:nth-child(3){width:190px;min-width:190px;white-space:normal}
.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table th:nth-child(4),.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table td:nth-child(4){width:75px;min-width:75px;white-space:normal}
.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table th:nth-child(5),.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table td:nth-child(5){width:130px;min-width:130px;white-space:normal}
.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table th:nth-child(6),.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table td:nth-child(6){width:105px;min-width:105px;white-space:normal}
.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table th:nth-child(7),.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table td:nth-child(7){width:105px;min-width:105px;white-space:normal}
.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table th:nth-child(8),.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table td:nth-child(8){width:185px;min-width:185px;white-space:normal}
.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table th:nth-child(9),.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table td:nth-child(9){width:100px;min-width:100px;white-space:normal}
.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table th:nth-child(10),.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table td:nth-child(10){width:140px;min-width:140px;white-space:normal}
.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table th:last-child,.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table td:last-child{position:sticky;right:0;background:var(--card,#fff);z-index:2;box-shadow:-2px 0 3px #21344a16}
.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table th:last-child{background:#f1f5f9;z-index:3}
.warehouse-extra-actions summary{cursor:pointer;color:#075985;margin-top:5px}.warehouse-extra-actions button{display:block;margin-top:5px;padding:5px 8px;font-size:11px}
.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table .sheet-cell-num small{display:block;font-weight:400}

.desktop-spreadsheet-wrap[data-sheet-schema="voucher"] .desktop-spreadsheet-table th:nth-child(1),
.desktop-spreadsheet-wrap[data-sheet-schema="voucher"] .desktop-spreadsheet-table td:nth-child(1) {
  width: 44px;
  min-width: 44px;
}
.desktop-spreadsheet-wrap[data-sheet-schema="voucher"] .desktop-spreadsheet-table th:nth-child(2),
.desktop-spreadsheet-wrap[data-sheet-schema="voucher"] .desktop-spreadsheet-table td:nth-child(2) {
  width: 12%;
  min-width: 120px;
}
.desktop-spreadsheet-wrap[data-sheet-schema="voucher"] .desktop-spreadsheet-table th:nth-child(3),
.desktop-spreadsheet-wrap[data-sheet-schema="voucher"] .desktop-spreadsheet-table td:nth-child(3) {
  width: 14%;
  min-width: 130px;
}
.desktop-spreadsheet-wrap[data-sheet-schema="voucher"] .desktop-spreadsheet-table th:nth-child(4),
.desktop-spreadsheet-wrap[data-sheet-schema="voucher"] .desktop-spreadsheet-table td:nth-child(4) {
  width: 29%;
  min-width: 235px;
  white-space: normal;
}
.desktop-spreadsheet-wrap[data-sheet-schema="voucher"] .desktop-spreadsheet-table th:nth-child(5),
.desktop-spreadsheet-wrap[data-sheet-schema="voucher"] .desktop-spreadsheet-table td:nth-child(5) {
  width: 16%;
  min-width: 150px;
}
.desktop-spreadsheet-wrap[data-sheet-schema="voucher"] .desktop-spreadsheet-table th:nth-child(6),
.desktop-spreadsheet-wrap[data-sheet-schema="voucher"] .desktop-spreadsheet-table td:nth-child(6) {
  width: 13%;
  min-width: 130px;
}
.desktop-spreadsheet-wrap[data-sheet-schema="voucher"] .desktop-spreadsheet-table th:nth-child(7),
.desktop-spreadsheet-wrap[data-sheet-schema="voucher"] .desktop-spreadsheet-table td:nth-child(7) {
  width: 16%;
  min-width: 145px;
}

.sheet-cell-main {
  min-width: 190px;
}

.sheet-cell-main.sheet-cell-shop {
  min-width: 145px;
}

.sheet-cell-main strong,
.sheet-cell-main h3,
.sheet-cell-main h2 {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.sheet-cell-meta {
  color: #475569 !important;
  font-size: 0.77rem;
}

.sheet-cell-meta p,
.sheet-cell-meta small {
  margin: 0;
  font-size: 0.76rem;
  color: #475569;
}

.sheet-cell-num {
  white-space: nowrap;
  font-weight: 850;
  color: #0f172a !important;
  font-variant-numeric: tabular-nums;
}

.sheet-cell-num .shop-summary-price,
.sheet-cell-num .shop-order-total-line {
  font-size: 0.83rem;
  font-weight: 850;
  color: #0f172a !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block;
}

.sheet-old-price {
  display: block;
  font-size: 0.71rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.sheet-cell-status {
  white-space: nowrap;
}

.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .warehouse-sale-label {
  display: block;
  margin-top: 4px;
  color: #be123c !important;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.sheet-status-tag,
.desktop-spreadsheet-table .shop-order-status-badge,
.desktop-spreadsheet-table .shop-voucher-status-pill,
.desktop-spreadsheet-table .shop-voucher-shop-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
  color: #334155 !important;
  font-size: 0.72rem !important;
  font-weight: 750 !important;
}

.sheet-status-tag.is-ok {
  border-color: #a7f3d0 !important;
  background: #ecfdf5 !important;
  color: #065f46 !important;
}

.sheet-status-tag.is-warn {
  border-color: #fde68a !important;
  background: #fffbeb !important;
  color: #92400e !important;
}

.sheet-muted-cell {
  color: #94a3b8;
  font-size: 0.74rem;
}

/* Flatten Product Summary & Inventory Body Inside Spreadsheet Cells */
.desktop-spreadsheet-table .shop-product-summary,
.desktop-spreadsheet-table .shop-inventory-item-body {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  text-align: left;
}

.desktop-spreadsheet-table .shop-summary-photo {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 4px !important;
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
  flex-shrink: 0;
}

.desktop-spreadsheet-table .shop-summary-copy strong {
  font-size: 0.81rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
}

.desktop-spreadsheet-table .shop-product-summary + .shop-product-summary {
  margin-top: 6px !important;
  padding-top: 6px !important;
  border-top: 1px dashed #e2e8f0 !important;
}

.desktop-spreadsheet-table .shop-summary-price {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 0.76rem !important;
}

.desktop-spreadsheet-table .shop-summary-price::before {
  display: none !important;
}

.desktop-spreadsheet-table .sheet-order-date-sub,
.desktop-spreadsheet-table .shop-order-date {
  display: block !important;
  margin-top: 3px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
}

.desktop-spreadsheet-table .shop-order-date::before {
  display: none !important;
}

.desktop-spreadsheet-table .shop-order-origin-warehouse,
.desktop-spreadsheet-table .shop-order-resale-tracking,
.desktop-spreadsheet-table .shop-order-recipient-line,
.desktop-spreadsheet-table .shop-order-verified-note {
  display: block !important;
  margin-top: 3px !important;
  font-size: 0.74rem !important;
  color: #475569 !important;
  line-height: 1.3 !important;
}

.desktop-spreadsheet-table .shop-reward-balance-box {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-bottom: 3px !important;
}

.desktop-spreadsheet-table .shop-reward-points-badge {
  font-size: 0.84rem !important;
  font-weight: 850 !important;
  color: #0f172a !important;
}

.desktop-spreadsheet-table .shop-reward-worth-badge {
  font-size: 0.72rem !important;
  font-weight: 750 !important;
  color: #334155 !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  padding: 1px 6px !important;
}

/* Structured Multi-Clause Policy & Detail Lists With Soft Checkmark Icons */
.sheet-structured-policy-box,
.desktop-spreadsheet-table .shop-carrier-facts {
  padding: 6px 9px !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  margin: 0 !important;
}

.product-policy-bullet-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-policy-origin-line {
  font-size: 0.82rem;
  font-weight: 750;
  color: #0f172a;
}

.shop-policy-inline-head {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.shop-policy-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.71rem;
  font-weight: 800;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

.shop-policy-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-policy-point {
  position: relative;
  padding-left: 19px;
  font-size: 0.77rem;
  line-height: 1.42;
  color: #334155;
}

.shop-policy-point + .shop-policy-point {
  padding-top: 4px;
  border-top: 1px dashed #e2e8f0;
}

.shop-policy-point::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 2px;
  width: 13px;
  height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230d9488'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center/contain;
}

.shop-policy-point + .shop-policy-point::before {
  top: 6px;
}

.desktop-footer .sheet-structured-policy-box {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  padding: 8px 10px !important;
}

.desktop-footer .shop-policy-point {
  color: #cbd5e1;
}

.desktop-footer .shop-policy-point + .shop-policy-point {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.desktop-footer .shop-policy-badge {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

.desktop-spreadsheet-table .shop-showcase-discount-pill {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 5px !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  border-radius: 3px !important;
  background: #fff1f2 !important;
  color: #be123c !important;
  border: 1px solid #fecdd3 !important;
}

.sheet-order-item-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
}

.sheet-order-item-line + .sheet-order-item-line {
  border-top: 1px dashed #e2e8f0;
}

.sheet-order-product-link,
.sheet-order-shop-link {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.sheet-order-shop-link {
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sheet-order-product-link:hover,
.sheet-order-shop-link:hover,
.desktop-spreadsheet-table .shop-product-summary.is-hoverable-product-link:hover .sheet-order-product-link,
.desktop-spreadsheet-table .shop-product-summary:hover .shop-summary-copy strong,
.desktop-spreadsheet-table .shop-inventory-item-body:hover .sheet-order-product-link,
.desktop-product-title:hover {
  color: #0284c7 !important;
  text-decoration: underline !important;
}

.desktop-spreadsheet-table .shop-product-summary.is-hoverable-product-link {
  cursor: pointer !important;
}

.desktop-spreadsheet-table .shop-product-summary.is-hoverable-product-link:hover .shop-summary-photo,
.desktop-spreadsheet-table .shop-inventory-item-body:hover .shop-summary-photo,
.cart-item-thumb:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.22);
}

.sheet-spec-inline-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.sheet-spec-sep {
  color: #94a3b8;
  padding: 0 2px;
}

.sheet-cell-actions {
  text-align: right;
}

/* Compact Spreadsheet Inline Action Buttons — Single Row Right-Aligned by Default, Wraps When Narrow */
.sheet-actions-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.sheet-actions-group button,
.desktop-commerce-embed-box .shop-admin-grid td button {
  min-height: 27px !important;
  height: auto !important;
  padding: 3px 8px !important;
  font-size: 0.73rem !important;
  font-weight: 750 !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #1e293b !important;
  box-shadow: none !important;
  white-space: nowrap;
  cursor: pointer;
}

.sheet-actions-group button:hover,
.desktop-commerce-embed-box .shop-admin-grid td button:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

.sheet-actions-group button.is-gray-detail-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  border-radius: 6px !important;
  color: #334155 !important;
}

.sheet-actions-group button.is-gray-detail-btn:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.sheet-actions-group button.is-primary-action,
.sheet-actions-group button.is-solid-action,
.sheet-actions-group button.btn-primary {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

.sheet-actions-group button.is-primary-action:hover,
.sheet-actions-group button.is-solid-action:hover,
.sheet-actions-group button.btn-primary:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* Clean 2-Column Form Layout Inside Embedded Views */
@media (min-width: 860px) {
  .desktop-commerce-embed-box .shop-commerce-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    align-items: start;
    background: #ffffff;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    box-shadow: none;
  }

  .desktop-commerce-embed-box .shop-commerce-form > .shop-seller-section-head,
  .desktop-commerce-embed-box .shop-commerce-form > .shop-seller-hero-card,
  .desktop-commerce-embed-box .shop-commerce-form > p,
  .desktop-commerce-embed-box .shop-commerce-form > small,
  .desktop-commerce-embed-box .shop-commerce-form > div,
  .desktop-commerce-embed-box .shop-commerce-form > details,
  .desktop-commerce-embed-box .shop-commerce-form > button[type="submit"],
  .desktop-commerce-embed-box .shop-commerce-form > .shop-action-status-note {
    grid-column: 1 / -1;
  }

  .desktop-commerce-embed-box .shop-commerce-form > label:has(textarea) {
    grid-column: 1 / -1;
  }
}

/* Compact, fit-content Save / Send / Submit / Action buttons inside Desktop forms */
.desktop-commerce-embed-box .shop-commerce-form > button,
.desktop-commerce-embed-box .shop-commerce-form > button[type="submit"],
.desktop-commerce-embed-box .shop-commerce-card .shop-commerce-form > button,
.desktop-commerce-embed-box .shop-commerce-card .shop-commerce-form > button[type="submit"],
.desktop-resale-page .shop-commerce-form > button,
.desktop-resale-page .shop-commerce-form > button[type="submit"] {
  justify-self: start;
  align-self: flex-start;
  width: auto !important;
  min-width: 120px;
  max-width: 100%;
  min-height: 34px !important;
  height: 34px;
  padding: 0 20px !important;
  border-radius: 8px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(15, 118, 110, 0.16);
}

.desktop-commerce-embed-box .shop-commerce-form > button[type="button"]:not(.primary-button) {
  box-shadow: none;
}

.shop-action-status-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.38;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
.shop-action-status-note[hidden] {
  display: none !important;
}
.shop-action-status-note.is-saving {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1d4ed8;
}
.shop-action-status-note.is-saved,
.shop-action-status-note.is-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}
.shop-action-status-note.is-error {
  background: #fff1f2;
  border: 1px solid #fda4af;
  color: #be123c;
}
button[data-action-state="saving"] {
  background: #eff6ff !important;
  border-color: #60a5fa !important;
  color: #1d4ed8 !important;
}
button[data-action-state="saved"] {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.24) !important;
}

/* Compact, Systematic 4-Column Desktop Form Layout for "Tạo chiến dịch popup" (.shop-popup-campaign-form) */
.desktop-commerce-embed-box .shop-commerce-form.shop-popup-campaign-form[hidden] {
  display: none !important;
}

@media (min-width: 860px) {
  .desktop-commerce-embed-box .shop-commerce-form.shop-popup-campaign-form {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px 14px !important;
    padding: 16px 18px !important;
    border-radius: 10px !important;
  }

  .desktop-commerce-embed-box .shop-commerce-form.shop-popup-campaign-form > .shop-seller-section-head,
  .desktop-commerce-embed-box .shop-commerce-form.shop-popup-campaign-form > .shop-popup-editing-notice,
  .desktop-commerce-embed-box .shop-commerce-form.shop-popup-campaign-form > label.popup-field-desc,
  .desktop-commerce-embed-box .shop-commerce-form.shop-popup-campaign-form > label.popup-field-terms,
  .desktop-commerce-embed-box .shop-commerce-form.shop-popup-campaign-form > .shop-popup-form-actions {
    grid-column: 1 / -1 !important;
  }

  .desktop-commerce-embed-box .shop-commerce-form.shop-popup-campaign-form > label.popup-field-code {
    grid-column: 1 / 2 !important;
  }

  .desktop-commerce-embed-box .shop-commerce-form.shop-popup-campaign-form > label.popup-field-title {
    grid-column: 2 / 5 !important;
  }

  .desktop-commerce-embed-box .shop-commerce-form.shop-popup-campaign-form > label.popup-field-short {
    grid-column: span 1 !important;
  }

  .desktop-commerce-embed-box .shop-commerce-form.shop-popup-campaign-form > label.popup-field-image {
    grid-column: 3 / 5 !important;
  }

  .desktop-commerce-embed-box .shop-commerce-form.shop-popup-campaign-form > label textarea {
    min-height: 62px !important;
  }
}

.desktop-commerce-embed-box .shop-popup-editing-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 9px 14px;
  border-radius: 8px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.desktop-commerce-embed-box .shop-popup-editing-notice strong {
  font-size: 0.84rem;
  font-weight: 800;
  color: #0369a1;
}

.desktop-commerce-embed-box .shop-popup-editing-notice p {
  margin: 0;
  font-size: 0.78rem;
  color: #334155;
}

.desktop-commerce-embed-box .shop-popup-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.desktop-commerce-embed-box .shop-popup-form-actions > button {
  width: auto !important;
  min-height: 34px !important;
  height: 34px;
  padding: 0 18px !important;
  border-radius: 8px !important;
  font-size: 0.81rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
}

.desktop-commerce-embed-box .shop-popup-form-actions > button[type="submit"] {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%) !important;
  border: 1px solid #0f766e !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 118, 110, 0.18) !important;
}

/* ==========================================================================
   BANK ACCOUNT MANAGEMENT & RECONCILIATION SETTINGS (.shop-bank-settings-form)
   — Multi-account list, Default transaction selection, 3-column compact inputs
   ========================================================================== */
.desktop-commerce-embed-box > .shop-commerce-page > .shop-commerce-body > nav.shop-commerce-actions[aria-label="Tài chính, VietQR & Đối soát"] {
  display: none !important;
}

@media (min-width: 860px) {
  .desktop-commerce-embed-box .shop-commerce-form.shop-bank-settings-form {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px 14px !important;
    padding: 16px 18px !important;
    border-radius: 10px !important;
  }

  .desktop-commerce-embed-box .shop-commerce-form.shop-bank-settings-form > .shop-bank-accounts-manager,
  .desktop-commerce-embed-box .shop-commerce-form.shop-bank-settings-form > .shop-bank-section-bar,
  .desktop-commerce-embed-box .shop-commerce-form.shop-bank-settings-form > .shop-bank-top-checks-row,
  .desktop-commerce-embed-box .shop-commerce-form.shop-bank-settings-form > .shop-bank-editor-quick-actions,
  .desktop-commerce-embed-box .shop-commerce-form.shop-bank-settings-form > label.shop-bank-field-terms,
  .desktop-commerce-embed-box .shop-commerce-form.shop-bank-settings-form > .shop-bank-staff-section,
  .desktop-commerce-embed-box .shop-commerce-form.shop-bank-settings-form > .shop-bank-confirm-row,
  .desktop-commerce-embed-box .shop-commerce-form.shop-bank-settings-form > button[type="submit"],
  .desktop-commerce-embed-box .shop-commerce-form.shop-bank-settings-form > .shop-finance-feedback {
    grid-column: 1 / -1 !important;
  }

  .desktop-commerce-embed-box .shop-commerce-form.shop-bank-settings-form > label.shop-bank-field-col {
    grid-column: span 1 !important;
  }

  .desktop-commerce-embed-box .shop-commerce-form.shop-bank-settings-form > label.shop-bank-field-terms textarea {
    min-height: 60px !important;
  }
}

.desktop-commerce-embed-box .shop-bank-accounts-manager {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

.desktop-commerce-embed-box .shop-bank-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.desktop-commerce-embed-box .shop-bank-section-bar.is-editor-head {
  padding-top: 2px;
}

.desktop-commerce-embed-box .shop-bank-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.desktop-commerce-embed-box .shop-bank-section-bar strong,
.desktop-commerce-embed-box .shop-bank-section-bar h3 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 850;
  color: #0c4a6e;
}

.desktop-commerce-embed-box .shop-bank-add-btn {
  width: auto !important;
  min-height: 29px !important;
  height: 29px;
  padding: 0 12px !important;
  border-radius: 7px !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  background: #ffffff !important;
  border: 1px solid #0284c7 !important;
  color: #0369a1 !important;
  margin: 0 !important;
}

.desktop-commerce-embed-box .shop-bank-add-btn:hover {
  background: #e0f2fe !important;
}

.desktop-commerce-embed-box .shop-bank-accounts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 8px;
}

.desktop-commerce-embed-box .shop-bank-account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.desktop-commerce-embed-box .shop-bank-account-item.is-default {
  border: 1.5px solid #0d9488;
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
}

.desktop-commerce-embed-box .shop-bank-account-item.is-editing {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.desktop-commerce-embed-box .shop-bank-account-info {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1 1 200px;
}

.desktop-commerce-embed-box .shop-bank-account-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.desktop-commerce-embed-box .shop-bank-account-title-line strong {
  font-size: 0.83rem;
  font-weight: 850;
  color: #0f172a;
}

.desktop-commerce-embed-box .shop-bank-default-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  background: #0f766e;
  color: #ffffff;
}

.desktop-commerce-embed-box .shop-bank-sub-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.desktop-commerce-embed-box .shop-bank-editing-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.desktop-commerce-embed-box .shop-bank-account-detail-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: #334155;
}

.desktop-commerce-embed-box .shop-bank-acc-num {
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.desktop-commerce-embed-box .shop-bank-acc-holder {
  font-weight: 700;
  color: #1e293b;
}

.desktop-commerce-embed-box .shop-bank-account-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.desktop-commerce-embed-box .shop-bank-act-btn {
  width: auto !important;
  min-height: 27px !important;
  height: 27px;
  padding: 0 10px !important;
  border-radius: 6px !important;
  font-size: 0.74rem !important;
  font-weight: 750 !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  margin: 0 !important;
}

.desktop-commerce-embed-box .shop-bank-act-btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

.desktop-commerce-embed-box .shop-bank-act-btn.is-set-default {
  background: #f0fdfa !important;
  border-color: #5eead4 !important;
  color: #0f766e !important;
  font-weight: 800 !important;
}

.desktop-commerce-embed-box .shop-bank-act-btn.is-set-default:hover {
  background: #ccfbf1 !important;
  border-color: #14b8a6 !important;
}

.desktop-commerce-embed-box .shop-bank-act-btn.is-delete {
  color: #be123c !important;
  border-color: #fecdd3 !important;
  background: #fff1f2 !important;
}

.desktop-commerce-embed-box .shop-bank-act-btn.is-delete:hover {
  background: #ffe4e6 !important;
  border-color: #fda4af !important;
}

.desktop-commerce-embed-box .shop-bank-active-indicator {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 800;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  white-space: nowrap;
}

.desktop-commerce-embed-box .shop-bank-top-checks-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.desktop-commerce-embed-box .shop-bank-check-label {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
  font-size: 0.8rem !important;
  font-weight: 750 !important;
  color: #0f172a !important;
  cursor: pointer;
}

.desktop-commerce-embed-box .shop-bank-check-label input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  min-height: 15px !important;
  margin: 0 !important;
  flex: 0 0 15px !important;
}

.desktop-commerce-embed-box .shop-bank-editor-quick-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.desktop-commerce-embed-box .shop-bank-apply-btn,
.desktop-commerce-embed-box .shop-bank-cancel-btn {
  width: auto !important;
  min-height: 30px !important;
  height: 30px;
  padding: 0 14px !important;
  border-radius: 7px !important;
  font-size: 0.77rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
}

.desktop-commerce-embed-box .shop-bank-apply-btn {
  background: #f0f9ff !important;
  border: 1px solid #7dd3fc !important;
  color: #0369a1 !important;
}

.desktop-commerce-embed-box .shop-bank-apply-btn:hover {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
}

.desktop-commerce-embed-box .shop-bank-cancel-btn {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

.desktop-commerce-embed-box .shop-bank-staff-section {
  display: grid;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.desktop-commerce-embed-box .shop-bank-staff-grid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.desktop-commerce-embed-box .shop-bank-staff-chip {
  padding: 5px 12px !important;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.desktop-commerce-embed-box .shop-bank-confirm-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.desktop-commerce-embed-box .shop-bank-password-field {
  flex: 0 1 340px;
  max-width: 360px;
  margin: 0 !important;
}

/* ==========================================================================
   Image 1: Main /explore Video Frame Placeholder When Floating Player Is On
   ========================================================================== */
.explore-floating-active-placeholder {
  position: absolute;
  inset: 0;
  z-index: 65;
  background: #0b0c10;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  user-select: none;
}

.explore-floating-active-placeholder.hidden {
  display: none !important;
}

.explore-media-frame.is-floating-mode .explore-top-controls,
.explore-media-frame.is-floating-mode .explore-bottom-overlay,
.explore-media-frame.is-floating-mode .explore-cc-subtitles-overlay {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.explore-floating-placeholder-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.explore-floating-placeholder-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.explore-floating-placeholder-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.explore-floating-turnoff-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #2f3138;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.14s ease, transform 0.1s ease;
}

.explore-floating-turnoff-btn:hover {
  background: #3f424b;
}

.explore-floating-turnoff-btn:active {
  transform: scale(0.97);
}

.explore-floating-placeholder-steps {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.explore-floating-placeholder-step-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.explore-floating-placeholder-step-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* ==========================================================================
   Image 2: Bottom-Right Corner Floating Player (#exploreFloatingMiniPlayer)
   ========================================================================== */
.explore-floating-mini-player {
  position: fixed;
  right: 8px;
  bottom: 8px;
  width: 236px;
  background: #0b0c10;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.65);
  z-index: 9800;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.explore-floating-mini-player.hidden {
  display: none !important;
}

.explore-floating-mini-resize-handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
  z-index: 30;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.38) 36%, transparent 37%);
  border-top-left-radius: 9px;
}

.explore-floating-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  height: 32px;
  padding: 0 6px 0 10px;
  background: #14151b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.explore-floating-mini-badge-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.explore-floating-mini-brand-icon {
  display: inline-flex;
  align-items: center;
  color: #cbd5e1;
  flex-shrink: 0;
}

.explore-floating-mini-brand-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-floating-mini-inline-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 2px;
  flex-shrink: 0;
}

.explore-floating-mini-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.explore-floating-mini-chip-btn {
  height: 20px;
  padding: 0 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  font-size: 0.63rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.explore-floating-mini-chip-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.explore-floating-mini-icon-btn {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.explore-floating-mini-icon-btn.is-nav-btn {
  width: 21px;
  height: 21px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.explore-floating-mini-icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.explore-floating-mini-icon-btn.is-close:hover {
  background: #fe2c55;
  color: #ffffff;
}

.explore-floating-mini-video-wrap {
  width: 100%;
  height: 420px;
  background: #050608;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.explore-floating-mini-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #050608;
}

.explore-floating-mini-speaker-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 15;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.explore-floating-mini-speaker-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.explore-floating-mini-side-steps {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.explore-floating-mini-step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.explore-floating-mini-step-circle:hover {
  background: rgba(255, 255, 255, 0.26);
}

.explore-floating-mini-bottom-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 14;
  padding: 16px 8px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.68) 48%, rgba(0, 0, 0, 0.9) 100%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}

.explore-floating-mini-ads-host {
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: auto;
}

.explore-floating-mini-ads-host:empty {
  display: none;
}

.explore-floating-mini-ad-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.explore-floating-mini-ad-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.54rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.explore-floating-mini-ad-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  color: #f8fafc;
  text-decoration: none;
}

.explore-floating-mini-ad-body strong {
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-floating-mini-ad-body small {
  font-size: 0.62rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-floating-mini-ad-headline {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.78);
  font-size: 0.64rem;
}

.explore-floating-mini-ad-tag {
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 800;
  flex-shrink: 0;
}

.explore-floating-mini-ad-hline-link {
  color: #e2e8f0;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.explore-floating-mini-ad-hline-link:hover {
  text-decoration: underline;
}

.explore-floating-mini-ad-close {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.explore-floating-mini-ad-close:hover {
  background: #fe2c55;
  color: #ffffff;
}

.explore-floating-mini-title {
  margin: 0;
  padding: 0 2px 2px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  display: block;
  width: fit-content;
  max-width: 50%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-floating-mini-progress-track {
  width: calc(100% + 16px);
  margin-left: -8px;
  height: 3px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  pointer-events: auto;
}

.explore-floating-mini-progress-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  transition: width 0.1s linear;
}

/* ==========================================================================
   Seller Overview Dashboard: Financial KPIs, Sales Charts, Funnel & Initial Setup
   ========================================================================== */
.seller-exec-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 1120px) {
  .seller-exec-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.seller-exec-kpi-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seller-exec-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.seller-exec-kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}

.seller-exec-kpi-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.seller-exec-kpi-badge.is-emerald {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.seller-exec-kpi-badge.is-amber {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.seller-exec-kpi-badge.is-purple {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.seller-exec-kpi-value {
  font-size: 1.18rem;
  font-weight: 850;
  color: #0f172a;
  line-height: 1.25;
}

.seller-exec-kpi-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.seller-analytics-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 1120px) {
  .seller-analytics-grid {
    grid-template-columns: 1fr;
  }
}

.seller-chart-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seller-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.seller-chart-head h4 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 850;
  color: #0f172a;
}

.seller-chart-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
}

.seller-legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}

.seller-bar-chart-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  height: 196px;
  padding: 26px 8px 6px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.seller-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 5px;
  min-width: 0;
}

.seller-bar-val {
  font-size: 0.68rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.seller-bar-orders-tag {
  font-size: 0.64rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

.seller-bar-track {
  width: 100%;
  max-width: 38px;
  height: 112px;
  background: #f1f5f9;
  border-radius: 6px 6px 2px 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.seller-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #0284c7 0%, #0d9488 100%);
  border-radius: 5px 5px 0 0;
  min-height: 6px;
}

.seller-bar-fill.is-pending-mix {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
}

/* Soft, soothing, non-glaring muted indigo & dusty mauve palette for Buyer Portal Spending Chart ("Biểu đồ chi tiêu") — distinct from Seller Portal cyan/teal */
[data-buyer-spending-chart="1"] .seller-bar-orders-tag {
  color: #5b527a;
  background: #f3f0f9;
  border: 1px solid #e2dcf0;
}

[data-buyer-spending-chart="1"] .seller-bar-track {
  background: #f6f5fa;
  border-color: #e4e1ee;
}

[data-buyer-spending-chart="1"] .seller-bar-fill,
.seller-bar-fill.is-buyer-bar-fill {
  background: linear-gradient(180deg, #867db0 0%, #655c8f 100%);
}

[data-buyer-spending-chart="1"] .seller-bar-fill.is-pending-mix,
.seller-bar-fill.is-buyer-bar-fill.is-pending-mix {
  background: linear-gradient(180deg, #bda0b0 0%, #9b7a8c 100%);
}

[data-buyer-overview-dashboard="1"] .seller-revenue-share-fill {
  background: linear-gradient(90deg, #7e74ab, #9b7a8c);
}

.seller-bar-label {
  font-size: 0.68rem;
  font-weight: 750;
  color: #475569;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.seller-chart-footer-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 4px;
}

.seller-chart-stat-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.seller-chart-stat-pill small {
  font-size: 0.67rem;
  font-weight: 600;
  color: #64748b;
}

.seller-chart-stat-pill strong {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
}

.seller-funnel-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.seller-funnel-row {
  display: grid;
  grid-template-columns: 138px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.seller-funnel-row:hover {
  background: #f0f9ff;
  border-color: #7dd3fc;
}

.seller-funnel-name {
  font-size: 0.75rem;
  font-weight: 750;
  color: #1e293b;
  white-space: nowrap;
}

.seller-funnel-bar-wrap {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.seller-funnel-bar-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 6px;
}

.seller-funnel-meta {
  font-size: 0.72rem;
  font-weight: 750;
  color: #334155;
  text-align: right;
  white-space: nowrap;
}

.seller-channel-split-box {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seller-channel-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seller-channel-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.71rem;
  font-weight: 700;
  color: #334155;
}

.seller-channel-dual-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.seller-revenue-share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seller-revenue-share-track {
  flex: 1;
  height: 7px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  min-width: 54px;
}

.seller-revenue-share-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #0d9488);
  border-radius: 999px;
}

/* Merged "Cấu hình khởi đầu" Card on Seller Voucher Shop */
.seller-initial-setup-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seller-initial-setup-card[hidden] {
  display: none !important;
}

.seller-setup-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

@media (max-width: 820px) {
  .seller-setup-preset-grid {
    grid-template-columns: 1fr;
  }
}

.seller-setup-check-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  padding: 8px 11px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 750;
  color: #0f172a;
  cursor: pointer;
  margin: 0 !important;
}

.seller-setup-check-item:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.seller-setup-check-item input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  accent-color: #0d9488;
  flex-shrink: 0;
  cursor: pointer;
}

/* ==========================================================================
   CLAIM SHOP & AGENCY HANDOVER HUB (view=claimShop on Seller Portal)
   ========================================================================== */
.claim-shop-top-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.claim-shop-code-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap;
  gap: 10px !important;
  padding: 10px 14px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

.claim-shop-code-label {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  width: auto !important;
  flex: 0 0 auto !important;
}

.claim-shop-code-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.claim-shop-code-input {
  width: 260px !important;
  min-width: 220px !important;
  max-width: 300px !important;
  height: 34px !important;
  padding: 6px 12px !important;
  border: 1.5px solid #94a3b8 !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

.claim-shop-code-input:focus {
  outline: none !important;
  border-color: #0284c7 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14) !important;
}

.claim-shop-check-btn {
  width: auto !important;
  min-width: 136px !important;
  max-width: 180px !important;
  height: 34px !important;
  padding: 0 14px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  background: #0d9488 !important;
  border: 1px solid #0f766e !important;
  color: #ffffff !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

.claim-shop-check-btn:hover {
  background: #0f766e !important;
}

.claim-shop-code-hint {
  font-size: 0.76rem;
  font-weight: 650;
  color: #475569;
  margin-left: 4px;
  flex: 1 1 240px;
}

.claim-shop-inline-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 8px;
  color: #065f46;
  font-size: 0.82rem;
  font-weight: 750;
}

/* Proportional Column Widths for Handover Shops & Handover Products Tables */
.desktop-spreadsheet-wrap[data-sheet-schema="handover-shops"] .desktop-spreadsheet-table th:nth-child(1),
.desktop-spreadsheet-wrap[data-sheet-schema="handover-shops"] .desktop-spreadsheet-table td:nth-child(1) {
  width: 46px;
}

.desktop-spreadsheet-wrap[data-sheet-schema="handover-shops"] .desktop-spreadsheet-table th:nth-child(2),
.desktop-spreadsheet-wrap[data-sheet-schema="handover-shops"] .desktop-spreadsheet-table td:nth-child(2) {
  width: 22%;
}

.desktop-spreadsheet-wrap[data-sheet-schema="handover-shops"] .desktop-spreadsheet-table th:nth-child(3),
.desktop-spreadsheet-wrap[data-sheet-schema="handover-shops"] .desktop-spreadsheet-table td:nth-child(3) {
  width: 18%;
}

.desktop-spreadsheet-wrap[data-sheet-schema="handover-shops"] .desktop-spreadsheet-table th:nth-child(4),
.desktop-spreadsheet-wrap[data-sheet-schema="handover-shops"] .desktop-spreadsheet-table td:nth-child(4) {
  width: 17%;
}

.desktop-spreadsheet-wrap[data-sheet-schema="handover-shops"] .desktop-spreadsheet-table th:nth-child(5),
.desktop-spreadsheet-wrap[data-sheet-schema="handover-shops"] .desktop-spreadsheet-table td:nth-child(5) {
  width: 21%;
}

.desktop-spreadsheet-wrap[data-sheet-schema="handover-shops"] .desktop-spreadsheet-table th:nth-child(6),
.desktop-spreadsheet-wrap[data-sheet-schema="handover-shops"] .desktop-spreadsheet-table td:nth-child(6) {
  width: 110px;
}

.desktop-spreadsheet-wrap[data-sheet-schema="handover-products"] .desktop-spreadsheet-table th:nth-child(1),
.desktop-spreadsheet-wrap[data-sheet-schema="handover-products"] .desktop-spreadsheet-table td:nth-child(1) {
  width: 44px;
}

.desktop-spreadsheet-wrap[data-sheet-schema="handover-products"] .desktop-spreadsheet-table th:nth-child(2),
.desktop-spreadsheet-wrap[data-sheet-schema="handover-products"] .desktop-spreadsheet-table td:nth-child(2) {
  width: 15%;
}

.desktop-spreadsheet-wrap[data-sheet-schema="handover-products"] .desktop-spreadsheet-table th:nth-child(3),
.desktop-spreadsheet-wrap[data-sheet-schema="handover-products"] .desktop-spreadsheet-table td:nth-child(3) {
  width: 22%;
}

.desktop-spreadsheet-wrap[data-sheet-schema="handover-products"] .desktop-spreadsheet-table th:nth-child(4),
.desktop-spreadsheet-wrap[data-sheet-schema="handover-products"] .desktop-spreadsheet-table td:nth-child(4) {
  width: 100px;
}

.desktop-spreadsheet-wrap[data-sheet-schema="handover-products"] .desktop-spreadsheet-table th:nth-child(5),
.desktop-spreadsheet-wrap[data-sheet-schema="handover-products"] .desktop-spreadsheet-table td:nth-child(5) {
  width: 105px;
}

.desktop-spreadsheet-wrap[data-sheet-schema="handover-products"] .desktop-spreadsheet-table th:nth-child(6),
.desktop-spreadsheet-wrap[data-sheet-schema="handover-products"] .desktop-spreadsheet-table td:nth-child(6) {
  width: 125px;
}

.desktop-spreadsheet-wrap[data-sheet-schema="handover-products"] .desktop-spreadsheet-table th:nth-child(7),
.desktop-spreadsheet-wrap[data-sheet-schema="handover-products"] .desktop-spreadsheet-table td:nth-child(7) {
  width: 17%;
}

/* ==========================================================================
   ADDRESS BOOK & ACCOUNT PHONE / EMAIL VERIFICATION (view=address)
   ========================================================================== */
@media (min-width: 960px) {
  .desktop-commerce-embed-box form.shop-commerce-form.is-address-verification-form {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px 16px !important;
    padding: 16px 18px !important;
    border-radius: 10px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    align-items: stretch !important;
  }

  .desktop-commerce-embed-box form.shop-commerce-form.is-address-verification-form > label.shop-address-col-field {
    grid-column: span 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    padding: 11px 13px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    margin: 0 !important;
  }

  .desktop-commerce-embed-box form.shop-commerce-form.is-address-verification-form > .shop-pill-scroll-strip {
    grid-column: 1 / 3 !important;
    align-self: center !important;
    margin: 0 !important;
  }

  .desktop-commerce-embed-box form.shop-commerce-form.is-address-verification-form > button.shop-address-save-btn {
    grid-column: 3 / 4 !important;
    align-self: center !important;
  }
}

.shop-address-head-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.desktop-commerce-embed-box form.shop-commerce-form button.shop-address-save-btn {
  grid-column: 1 / -1;
  justify-self: end !important;
  align-self: flex-end !important;
  margin-left: auto !important;
  width: auto !important;
  min-width: 152px !important;
  max-width: 240px !important;
  height: 36px !important;
  padding: 0 22px !important;
  border-radius: 8px !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%) !important;
  border: 1px solid #0f766e !important;
  color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(13, 148, 136, 0.2) !important;
  cursor: pointer;
}

.desktop-commerce-embed-box form.shop-commerce-form button.shop-address-save-btn:hover {
  background: linear-gradient(135deg, #0f766e 0%, #0369a1 100%) !important;
}

.shop-phone-inline-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 2px;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
  box-sizing: border-box;
}

.shop-phone-inline-status .shop-phone-status-text {
  flex: 1 1 auto;
  min-width: 0;
}

.shop-phone-inline-status.is-verified {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.shop-phone-inline-status.is-unverified {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #c2410c;
}

.shop-phone-inline-status.is-neutral {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

.shop-phone-verify-toggle-btn {
  width: auto !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 11px !important;
  border-radius: 6px !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  background: #ffffff !important;
  border: 1px solid #94a3b8 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  margin: 0 !important;
  cursor: pointer;
}

.shop-phone-verify-toggle-btn.is-urgent {
  background: #ea580c !important;
  border-color: #c2410c !important;
  color: #ffffff !important;
}

.shop-phone-verify-panel {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #93c5fd;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.06);
}

.shop-phone-verify-panel[hidden] {
  display: none !important;
}

.shop-phone-verify-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.shop-phone-verify-head strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0c4a6e;
}

.shop-phone-verify-head small {
  font-size: 0.76rem;
  color: #475569;
}

.shop-phone-verify-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 14px;
}

.shop-phone-verify-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.79rem;
  font-weight: 750;
  color: #1e293b;
}

.shop-phone-verify-grid label[hidden] {
  display: none !important;
}

.shop-phone-verify-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-phone-verify-actions button {
  width: auto !important;
  min-width: 150px !important;
  height: 34px !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
}

.shop-phone-otp-step {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}

.shop-phone-otp-step[hidden] {
  display: none !important;
}

.shop-phone-otp-step label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.79rem;
  font-weight: 750;
  color: #0f172a;
  flex: 0 1 220px;
}

.shop-phone-otp-step button {
  width: auto !important;
  min-width: 150px !important;
  height: 36px !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
}

.shop-phone-preview-code {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0369a1;
  padding-bottom: 8px;
}

/* ==========================================================================
   PRODUCT PROMO, SALE % & VOUCHER STATUS IN BUYER COLLECTION TABLES
   ========================================================================== */
.shop-product-promo-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.shop-promo-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.shop-promo-status-pill.is-sale {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}

.shop-promo-status-pill.is-stock {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.shop-promo-status-pill.is-out {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
}

.shop-promo-status-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  color: #334155;
}

.shop-promo-status-line.is-voucher {
  color: #0369a1;
}

.shop-promo-status-line.is-gift {
  color: #0f766e;
}
/* Shared resale controls mounted within the seller portal, not a mobile overlay. */
.desktop-resale-page{min-width:0;max-width:100%;padding:10px 12px;border:1px solid var(--line,#d5dce5);border-radius:12px;background:var(--card,#fff);overflow-wrap:anywhere}
.desktop-resale-page[aria-hidden="true"],.desktop-resale-page [hidden]{display:none!important}
.desktop-resale-page>.mobile-corner-menu-header,.desktop-resale-page .resale-sticky-menu>.mobile-corner-menu-header{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.96rem;font-weight:850;color:#0c4a6e;margin-bottom:6px}
.desktop-resale-page [data-mobile-corner-close]{display:none}
.desktop-resale-page .mobile-corner-menu-scroll{min-width:0}
.desktop-resale-page [data-reuse-help]{font-size:12px;color:var(--muted,#64748b);line-height:1.45;margin:4px 0}
.desktop-resale-page [data-resale-tabs]{display:flex;gap:5px;overflow-x:auto;margin:6px 0;padding-bottom:2px}
.desktop-resale-page button{border:1px solid #b9cbd5;border-radius:7px;padding:5px 11px;min-height:32px;background:var(--card,#fff);color:inherit;cursor:pointer;font:inherit;font-size:12px;font-weight:650}
.desktop-resale-page button:focus-visible{outline:2px solid #0f766e;outline-offset:2px}
.desktop-resale-page button:disabled{opacity:.5;cursor:default}
.desktop-resale-page [data-resale-tabs] button{white-space:nowrap;flex-shrink:0;min-height:30px;padding:4px 12px;border-radius:999px;font-size:.77rem;font-weight:750;border:1px solid #93c5fd;background:#fff;color:#1e3a8a;box-shadow:0 1px 2px rgba(15,23,42,.04);transition:background .14s ease,border-color .14s ease,color .14s ease}
.desktop-resale-page [data-resale-tabs] button:hover{background:#eff6ff;border-color:#0284c7;color:#0369a1}
.desktop-resale-page [aria-pressed="true"],.desktop-resale-page .primary-button{background:#0f766e;color:#fff;border-color:#0f766e}
.desktop-resale-page [data-resale-tabs] button[aria-pressed="true"]{background:linear-gradient(180deg,#0284c7 0%,#0369a1 100%);border-color:#0369a1;color:#fff;box-shadow:0 2px 6px rgba(2,132,199,.25)}
.desktop-resale-page .resale-hub-card{min-width:0;display:grid;gap:7px}
.desktop-resale-page h4{margin:0;font-size:13.5px;font-weight:800;color:#0f172a}
.desktop-resale-page .resale-hub-desc,.desktop-resale-page .field-help{font-size:11.5px;line-height:1.4;color:var(--muted,#64748b);margin:0}
.desktop-resale-page .resale-hub-card-head,.desktop-resale-page .resale-hub-item-top,.desktop-resale-page .reuse-post-actions,.desktop-resale-page .resale-rule-inline{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.desktop-resale-page .resale-hub-card-head{justify-content:space-between;padding:6px 10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}
.desktop-resale-page .resale-hub-head-main{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-width:0}
.desktop-resale-page .resale-hub-head-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-left:auto}
.desktop-resale-page .resale-summary-pill{margin:0;padding:3px 10px;border-radius:999px;background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;font-size:11.5px;font-weight:700;line-height:1.3}
.desktop-resale-page .resale-hub-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}
.desktop-resale-page .resale-policy-rate-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,320px));gap:12px;max-width:680px}
.desktop-resale-page .resale-hub-kpi,.desktop-resale-page .resale-hub-item,.desktop-resale-page .profile-reuse-card{display:grid;gap:4px;padding:9px 12px;border:1px solid #dce5eb;border-radius:9px;margin:0;min-width:0;background:#fbfdff}
.desktop-resale-page .resale-hub-kpi strong{font-size:16px;color:#0f172a}
.desktop-resale-page .resale-hub-pill,.desktop-resale-page .resale-hub-badge{font-size:11px;font-weight:700;border-radius:999px;background:#eef6f5;color:#14665f;padding:3px 9px;border:1px solid #cce3de}
.desktop-resale-page .resale-table-toolbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.desktop-resale-page [data-resale-owner-search]{flex:1 1 240px;min-width:180px}
.desktop-resale-page .resale-inline-field{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:650;color:#334155;white-space:nowrap;margin:0}
.desktop-resale-page .resale-table-search-box{display:flex;align-items:center;gap:6px;flex:1 1 240px;min-width:180px}
.desktop-resale-page input:not([type="checkbox"]),.desktop-resale-page select{min-width:0;max-width:100%;min-height:32px;height:32px;padding:4px 10px;border:1px solid #cbd5e1;border-radius:7px;background:var(--card,#fff);color:inherit;font:inherit;font-size:12px;box-sizing:border-box}
.desktop-resale-page .resale-table-search-box input{flex:1}
.desktop-resale-page .resale-table-scroll-wrap{overflow-x:auto;max-width:100%;min-width:0;border:1px solid #dce5eb;border-radius:8px}
.desktop-resale-page .resale-management-table{border-collapse:collapse;font-size:12px;width:100%}
.desktop-resale-page .resale-management-table th,.desktop-resale-page .resale-management-table td{padding:7px 10px;text-align:left;border-bottom:1px solid #e2e8f0;border-right:1px solid #e2e8f0;min-width:80px;vertical-align:middle}
.desktop-resale-page .resale-management-table th:last-child,.desktop-resale-page .resale-management-table td:last-child{border-right:0}
.desktop-resale-page .resale-management-table tbody tr:last-child td{border-bottom:0}
.desktop-resale-page .resale-management-table th{background:#f1f5f9;color:#1e293b;font-weight:750;font-size:11.5px;white-space:nowrap}
.desktop-resale-page .resale-management-table small,.desktop-resale-page .resale-management-table strong{display:block;margin:2px 0;line-height:1.35}
.desktop-resale-page .resale-policy-controls,.desktop-resale-page .resale-policy-rate-row label{display:grid;gap:8px}
.desktop-resale-page .resale-policy-controls .resale-save-policy-btn{justify-self:start;width:auto;min-height:30px;height:30px;padding:4px 16px;font-size:12px;font-weight:750;border-radius:7px;box-shadow:0 1px 2px rgba(15,118,110,.16)}
.desktop-resale-page .resale-policy-toggle{display:flex;align-items:flex-start;gap:8px}
.desktop-resale-page .resale-policy-toggle input{flex:none}
.desktop-resale-page [data-finance-receipt]{margin:8px 0;padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px}
/* Stock planning is edited in a small, accessible dialog; the table stays in place. */
.shop-stock-plan-dialog{box-sizing:border-box;width:min(520px,calc(100% - 32px));max-height:85vh;overflow:auto;padding:20px;border:1px solid #cbd5e1;border-radius:14px;background:var(--card,#fff);color:inherit}
.shop-stock-plan-dialog::backdrop{background:#14253470}
.shop-stock-plan-dialog form,.shop-stock-plan-dialog label{display:grid;gap:10px}
.shop-stock-plan-dialog input{width:100%;min-width:0;box-sizing:border-box;padding:9px;border:1px solid #bdcdd8;border-radius:8px;font:inherit}
.shop-stock-plan-dialog button{padding:9px 12px;border:1px solid #bdcdd8;border-radius:8px;background:#eff8f7;color:#0b655f;cursor:pointer}
.shop-stock-plan-dialog small{color:#526777}
.desktop-spreadsheet-table[data-schema-kind="warehouse"] .sheet-cell-meta button{font-size:11px;margin:3px 3px 0 0}
/* Product children use the same ten columns and never count as separate pages. */
.warehouse-variant-toggle{display:block;margin-top:5px;border:1px solid #b9d7df;border-radius:7px;padding:5px 8px;background:#f0fafb;color:#085e6c;cursor:pointer;font:inherit;font-size:11px}
.warehouse-variant-row[hidden]{display:none!important}
.warehouse-variant-row td{background:#f5f9fc;vertical-align:top;padding:10px;border-bottom:1px solid #dce7ec;font-size:12px;overflow-wrap:anywhere}
.warehouse-variant-row td:nth-child(2){border-left:3px solid #a5cedb}
.warehouse-variant-row td small{display:block;margin-top:4px;font-size:11px;color:#526677}
.warehouse-variant-row td:last-child{position:sticky;right:0;z-index:2;background:#f5f9fc;box-shadow:-2px 0 3px #21344a16}
.warehouse-variant-row button{border:1px solid #b9cbd5;padding:7px 10px;border-radius:7px;background:#fff;color:#075985;cursor:pointer}
.shop-variant-plan-dialog fieldset{border:1px solid #cadbe1;border-radius:9px;padding:12px;display:grid;gap:8px;min-width:0}
.shop-variant-plan-dialog legend{font-size:12px;font-weight:700;overflow-wrap:anywhere}
.shop-variant-plan-dialog input[type="checkbox"]{width:17px;height:17px;margin-right:8px;vertical-align:middle}
.shop-variant-plan-dialog select{font:inherit;border:1px solid #bdcdd8;border-radius:7px;padding:8px}
.shop-variant-plan-dialog label[hidden]{display:none}
.shop-industry-checklist{min-width:0;border:1px solid #dbe5ec;border-radius:12px;padding:12px;display:grid;gap:10px}.shop-industry-checklist>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;max-height:280px;overflow:auto}.shop-industry-checklist label{display:flex!important;align-items:center;gap:8px;min-width:0}.shop-industry-checklist input[type=checkbox]{width:18px;min-width:18px;height:18px}.shop-industry-checklist input[type=search]{min-width:0;max-width:100%}

.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table th:nth-child(11),.desktop-spreadsheet-wrap[data-sheet-schema="warehouse"] .desktop-spreadsheet-table td:nth-child(11){width:140px;min-width:140px;white-space:normal}
.desktop-spreadsheet-table td.warehouse-product-cell{vertical-align:top}
.warehouse-product-group{display:flex;align-items:baseline;gap:4px;margin:0 0 6px;font-size:11px;line-height:1.35;font-weight:400;color:#526677;overflow-wrap:anywhere}
.warehouse-product-group-tick{flex:none;color:#0f766e;font-size:10px}

.resale-settlement-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0}.resale-settlement-toolbar input{min-width:0;flex:1 1 140px;max-width:100%}.resale-settlement-table{max-width:100%;overflow-x:auto;border:1px solid #c8dae5;border-radius:8px}.resale-settlement-table table{border-collapse:collapse;min-width:950px;width:100%;font-size:12px}.resale-settlement-table th,.resale-settlement-table td{padding:10px;border-bottom:1px solid #dbe5ec;border-right:1px solid #e2e8f0;vertical-align:top;text-align:left}.resale-settlement-table th:last-child,.resale-settlement-table td:last-child{border-right:0}.resale-settlement-table tbody tr:last-child td{border-bottom:0}.resale-settlement-table th{background:#edf5f8}.resale-settlement-table small{display:block;margin-top:5px}:is(#shopResaleSettlementsPage,#shopResaleContractsPage) .shop-commerce-form{display:grid;gap:10px}:is(#shopResaleSettlementsPage,#shopResaleContractsPage) .shop-commerce-form label{min-width:0;display:flex;flex-wrap:wrap;gap:6px;align-items:center}:is(#shopResaleSettlementsPage,#shopResaleContractsPage) .shop-commerce-form input:not([type=checkbox]),:is(#shopResaleSettlementsPage,#shopResaleContractsPage) select{min-width:0;max-width:100%;flex:1 1 180px}:is(#shopResaleSettlementsPage,#shopResaleContractsPage) button{min-height:40px}:is(#shopResaleSettlementsPage,#shopResaleContractsPage) [role=status]{overflow-wrap:anywhere}
#profileRepostsResalePage header>span{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}#profileRepostsResalePage header>span button{font-size:11px;padding:4px 8px;min-height:34px}:is(#shopResaleContractsPage,#shopResaleSettlementsPage) .mobile-corner-menu-scroll{overflow-wrap:anywhere}:is(#shopResaleContractsPage,#shopResaleSettlementsPage) .resale-hub-item{display:grid;gap:8px;padding:12px;border:1px solid #c8dae5;border-radius:8px;margin:8px 0}

.shop-stock-plan-dialog [hidden]{display:none!important}.shop-quick-tabs{display:flex;gap:8px;margin-bottom:12px}.shop-quick-tabs button[aria-pressed=true]{background:#087f83;color:#fff}.shop-stock-plan-dialog select{min-width:0;max-width:100%;padding:9px;border:1px solid #bdcdd8;border-radius:8px;font:inherit}

.resale-tracking-entry{flex-shrink:0;margin:0;padding:8px 12px;border-bottom:1px solid #d9e5ec}.resale-tracking-entry[hidden]{display:none!important}#shopResaleTrackingPage input[type=search]{min-width:0;max-width:100%}#shopResaleTrackingPage select{max-width:100%}#shopResaleTrackingPage.desktop-resale-page,#profileRepostsResalePage.desktop-resale-page :is(#shopResaleTrackingPage,#shopResaleContractsPage,#shopResaleSettlementsPage){padding:0;border:0;border-radius:0;background:transparent}#shopResaleTrackingPage.desktop-resale-page>.mobile-corner-menu-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 14px;padding:10px 16px;margin-bottom:10px;background:linear-gradient(180deg,#f0f9ff 0%,#e0f2fe 100%);border:1px solid #93c5fd;border-radius:10px;box-shadow:0 3px 8px rgba(2,132,199,.1),0 1px 2px rgba(15,23,42,.05),inset 0 1px 0 rgba(255,255,255,.9)}#shopResaleTrackingPage.desktop-resale-page>.mobile-corner-menu-header>strong{text-align:left;margin:0;margin-right:auto;font-size:.96rem;font-weight:850;color:#0c4a6e;line-height:1.25}#shopResaleTrackingPage.desktop-resale-page>.mobile-corner-menu-header>[data-back]{margin-left:auto;background:#ffffff;border:1px solid #93c5fd;border-radius:999px;color:#1e3a8a;font-size:.77rem;font-weight:750;padding:5px 14px;min-height:30px;box-shadow:0 1px 2px rgba(15,23,42,.04);transition:background .14s ease,border-color .14s ease,color .14s ease}#shopResaleTrackingPage.desktop-resale-page>.mobile-corner-menu-header>[data-back]:hover{background:#eff6ff;border-color:#0284c7;color:#0369a1}#profileRepostsResalePage.desktop-resale-page :is(#shopResaleTrackingPage,#shopResaleContractsPage,#shopResaleSettlementsPage)>.mobile-corner-menu-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 10px;padding:6px 10px;margin-bottom:7px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;box-shadow:none;font-size:13.5px;font-weight:800;color:#0f172a}#profileRepostsResalePage.desktop-resale-page :is(#shopResaleTrackingPage,#shopResaleContractsPage,#shopResaleSettlementsPage)>.mobile-corner-menu-header>strong{text-align:left;margin:0;margin-right:auto;font-size:13.5px;font-weight:800;color:#0f172a;line-height:1.3}#profileRepostsResalePage.desktop-resale-page :is(#shopResaleTrackingPage,#shopResaleContractsPage,#shopResaleSettlementsPage)>.mobile-corner-menu-header>[data-back]{margin-left:auto;min-height:28px;padding:4px 10px;border:1px solid #93c5fd;border-radius:6px;background:#f0f9ff;color:#0369a1;font-size:11.5px;font-weight:700;box-shadow:none}#profileRepostsResalePage.desktop-resale-page :is(#shopResaleTrackingPage,#shopResaleContractsPage,#shopResaleSettlementsPage)>.mobile-corner-menu-header>[data-back]:hover{background:#e0f2fe;border-color:#0284c7}.resale-table-pager{justify-content:flex-end;margin-top:8px;font-size:12.5px;font-weight:600;color:#334155}

.resale-tracking-entry button{min-height:40px;border:1px solid #b8d9dc;border-radius:8px;background:#f1f9fa;color:#086b70;padding:7px 10px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}

.desktop-resale-page .resale-sticky-menu{position:relative;top:auto;z-index:1;min-width:0;padding:8px 14px;margin-bottom:8px;background:linear-gradient(180deg,#f0f9ff 0%,#e0f2fe 100%);border:1px solid #93c5fd;border-radius:10px;box-shadow:0 3px 8px rgba(2,132,199,.1),0 1px 2px rgba(15,23,42,.05),inset 0 1px 0 rgba(255,255,255,.9)}.desktop-resale-page .resale-sticky-menu [data-resale-tabs]{margin:2px 0 0;padding:2px 0 0}.desktop-resale-page .resale-sticky-menu>.mobile-corner-menu-header{margin-bottom:4px}

/* Avoid an unscrolled body overflow container capturing the resale sticky menu. */
body:has(#profileRepostsResalePage.desktop-resale-page.is-open:not([hidden])){overflow-x:clip}

.desktop-resale-tracking-row{margin:-2px 0 8px;min-width:0}.desktop-resale-tracking-row .desktop-portal-kpi-bar{margin-bottom:0}

.desktop-resale-tracking-row[hidden]{display:none!important}

/* One management section at a time; tabs retain their forms when switching. */
#profileRepostsResalePage [data-resale-tabs]{display:flex;gap:5px;overflow-x:auto;flex-shrink:0;max-width:100%;padding:2px 0}
#profileRepostsResalePage [data-resale-tabs] button{flex-shrink:0;white-space:nowrap;min-height:30px}
#profileRepostsResalePage [data-resale-section-tools]{display:flex;gap:6px;flex-wrap:wrap;margin:0;align-items:center}
#profileRepostsResalePage [data-resale-section-tools] select,#profileRepostsResalePage [data-resale-section-tools] button{min-width:0;max-width:100%;min-height:29px;height:29px;padding:3px 11px;border-radius:999px;font-size:.76rem;font-weight:750;border:1px solid #93c5fd;background:#fff;color:#0c4a6e}
#profileRepostsResalePage [hidden]{display:none!important}
#profileRepostsResalePage .resale-sales-orders{max-height:240px;overflow:auto;min-width:180px}
#profileRepostsResalePage .resale-sales-orders>div{padding:6px 0;border-bottom:1px solid #dbe3eb;overflow-wrap:anywhere}

#profileRepostsResalePage [data-resale-seller-pager],#profileRepostsResalePage [data-resale-owner-pager]{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap;margin-top:6px}
#profileRepostsResalePage [data-resale-seller-pager] button,#profileRepostsResalePage [data-resale-owner-pager] button{width:auto;min-height:30px;padding:4px 10px;border:1px solid #bfd1dc;border-radius:7px;background:#fff;color:#164e63;font-size:12px}
#profileRepostsResalePage [data-resale-seller-pager] button:disabled,#profileRepostsResalePage [data-resale-owner-pager] button:disabled{opacity:.55}
#profileRepostsResalePage [data-resale-seller-table]{min-width:980px}
#profileRepostsResalePage [data-resale-seller-table] td:first-child{min-width:170px}
#profileRepostsResalePage [data-successful-sales]{min-width:160px}

/* Stock state stays inside the product cell; text remains readable without color. */
#profileRepostsResalePage .resale-stock-state{display:inline-block;width:fit-content;padding:2px 8px;margin:2px 0;border-radius:999px;font-size:11.5px;line-height:1.35;font-weight:700;background:#e9f7ef;color:#17653d;border:1px solid #a8d9bc}
#profileRepostsResalePage .resale-stock-state.is-low_stock{background:#fff7df;color:#805700;border-color:#e9cd79}
#profileRepostsResalePage .resale-stock-state.is-out_of_stock{background:#fff0f0;color:#a32626;border-color:#efb8b8}
#profileRepostsResalePage .resale-stock-state.is-stopped{background:#eff1f5;color:#4b5563;border-color:#cbd1da}

#profileRepostsResalePage [data-resale-owner-table]{min-width:960px}
#profileRepostsResalePage [data-resale-owner-table] th:first-child,#profileRepostsResalePage [data-resale-owner-table] td:first-child{width:42px;min-width:42px;text-align:center;font-weight:700;color:#475569}
#profileRepostsResalePage [data-resale-owner-table] td{vertical-align:middle;overflow-wrap:anywhere}
#profileRepostsResalePage [data-resale-owner-table] td a{display:block;margin:2px 0;color:#0f172a;text-decoration:none}
#profileRepostsResalePage [data-resale-owner-table] td a:hover{color:#0284c7;text-decoration:underline}
#profileRepostsResalePage [data-resale-owner-table] td.resale-contact-cell a{white-space:nowrap}
#profileRepostsResalePage [data-resale-owner-table] td:last-child{min-width:190px}
#profileRepostsResalePage .resale-row-actions{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
#profileRepostsResalePage [data-partner-state-form] textarea{min-height:65px}
#profileRepostsResalePage [data-partner-detail]{max-height:200px;overflow:auto}

#profileRepostsResalePage [data-partner-reload],#profileRepostsResalePage [data-partner-state],#profileRepostsResalePage [data-partner-grant],#profileRepostsResalePage [data-partner-history]{min-height:28px;padding:4px 9px;border:1px solid #93c5fd;border-radius:6px;background:#f0f9ff;color:#0369a1;font-size:11.5px;font-weight:700;cursor:pointer;white-space:nowrap;transition:background .14s ease,border-color .14s ease}
#profileRepostsResalePage [data-partner-reload]:hover,#profileRepostsResalePage [data-partner-state]:hover,#profileRepostsResalePage [data-partner-grant]:hover,#profileRepostsResalePage [data-partner-history]:hover{background:#e0f2fe;border-color:#0284c7}
#profileRepostsResalePage .resale-month-explanation{position:relative;font-size:11.5px;color:#1e40af;margin:0}
#profileRepostsResalePage .resale-month-explanation summary{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:999px;background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;font-weight:700;cursor:pointer;user-select:none}
#profileRepostsResalePage.desktop-resale-page .resale-month-explanation[open]>small{position:absolute;top:calc(100% + 6px);left:0;z-index:25;width:min(440px,75vw);padding:8px 12px;background:#fff;border:1px solid #93c5fd;border-radius:8px;box-shadow:0 8px 20px rgba(15,23,42,.12);color:#334155;line-height:1.45;display:block}

#profileRepostsResalePage [data-resale-owner-table] .resale-amount-cell { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }

/* Per-item estimates are ranges across variants, never summed as settled earnings. */
#profileRepostsResalePage [data-resale-seller-table] .resale-earnings-cell { text-align:right; min-width:94px; font-variant-numeric:tabular-nums; }
#profileRepostsResalePage .resale-earnings-details { margin-top:4px; }
#profileRepostsResalePage .resale-earnings-details>div { padding:5px 0; border-top:1px solid #dce6ef; }

#profileRepostsResalePage [data-resale-repost-table] { min-width:850px; }
#profileRepostsResalePage [data-resale-repost-table] td { vertical-align:top; }
#profileRepostsResalePage [data-resale-repost-table] th:first-child { width:42px; }
#profileRepostsResalePage .resale-repost-summary { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; max-width:340px; overflow-wrap:anywhere; }
#profileRepostsResalePage .resale-repost-details { max-width:360px; margin-top:4px; overflow-wrap:anywhere; }
#profileRepostsResalePage .resale-repost-money { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
#profileRepostsResalePage [data-resale-repost-search] { flex:1 1 240px; min-width:0; }

#profileRepostsResalePage [data-resale-reward-table] { min-width:1320px; }
#profileRepostsResalePage [data-resale-reward-table] td { vertical-align:top; }
#profileRepostsResalePage .resale-reward-product { min-width:210px; max-width:310px; overflow-wrap:anywhere; }
#profileRepostsResalePage .resale-reward-product details { margin-top:4px; }
#profileRepostsResalePage .resale-reward-amount { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
#profileRepostsResalePage [data-resale-reward-search] { flex:1 1 240px; min-width:0; }

#profileRepostsResalePage [data-reward-state="RECOVERY_DUE"] .resale-hub-badge { color:#9d2222; background:#fff1f1; border-color:#efb6b6; }

/* Readable type shared by the compact resale management tables. */
:is(#profileRepostsResalePage,#shopResaleContractsPage) .resale-management-table {
 font-family:var(--app-font-ui); font-size:13px; line-height:1.5;
 font-weight:400; letter-spacing:normal; color:#1e293b; font-variant-numeric:tabular-nums;
}
:is(#profileRepostsResalePage,#shopResaleContractsPage) .resale-management-table th { font-size:12.5px; line-height:1.45; font-weight:600; }
:is(#profileRepostsResalePage,#shopResaleContractsPage) .resale-management-table td { padding:10px; line-height:1.5; }
:is(#profileRepostsResalePage,#shopResaleContractsPage) .resale-management-table td strong { font-size:13px; line-height:1.5; font-weight:600; margin:0 0 4px; }
:is(#profileRepostsResalePage,#shopResaleContractsPage) .resale-management-table td small { font-size:12px; line-height:1.5; margin:4px 0 0; color:#475569; }
:is(#profileRepostsResalePage,#shopResaleContractsPage) .resale-management-table .resale-hub-badge,
:is(#profileRepostsResalePage,#shopResaleContractsPage) .resale-management-table .resale-stock-state {
 display:inline-flex; box-sizing:border-box; max-width:100%; white-space:normal;
 font-size:12px; line-height:1.45; font-weight:600; padding:4px 8px; margin:0 0 5px;
}
:is(#profileRepostsResalePage,#shopResaleContractsPage) .resale-management-table .resale-payout-cell { min-width:180px; }
:is(#profileRepostsResalePage,#shopResaleContractsPage) .resale-management-table .resale-payout-line { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:baseline; }
:is(#profileRepostsResalePage,#shopResaleContractsPage) .resale-management-table .resale-payout-line b { white-space:nowrap; color:#1e293b; font-weight:600; }
:is(#profileRepostsResalePage,#shopResaleContractsPage) .resale-management-table button { font-family:inherit; font-size:12px; line-height:1.45; }

#shopResaleContractsPage .resale-table-scroll-wrap { max-width:100%; min-width:0; overflow-x:auto; border:1px solid #dce5eb; border-radius:8px; margin-top:6px; }
#shopResaleContractsPage [data-supplier-table] { min-width:820px; }
#shopResaleContractsPage [data-supplier-table] th:first-child,#shopResaleContractsPage [data-supplier-table] td:first-child { width:42px; min-width:42px; text-align:center; font-weight:700; color:#475569; }
#shopResaleContractsPage [data-supplier-table] td { vertical-align:middle; border-right:1px solid #e2e8f0; }
#shopResaleContractsPage [data-supplier-table] td:last-child { border-right:0; }
#shopResaleContractsPage [data-supplier-table] td:nth-child(2) { min-width:190px; max-width:340px; overflow-wrap:anywhere; }
#shopResaleContractsPage .supplier-contract-state { display:inline-flex; padding:3px 9px; border:1px solid #cbd5e1; border-radius:999px; font-size:11.5px; font-weight:700; line-height:1.35; background:#f1f5f9; color:#334155; }
#shopResaleContractsPage .supplier-contract-state[data-state=active] { color:#17653d; background:#e9f7ef; border-color:#a8d9bc; }
#shopResaleContractsPage .supplier-contract-state[data-state=pending],#shopResaleContractsPage .supplier-contract-state[data-state=changed] { color:#805700; background:#fff7df; border-color:#e9cd79; }
#shopResaleContractsPage .resale-contract-help { margin:0; font-size:11.5px; line-height:1.45; }
#shopResaleContractsPage .resale-contract-pager { justify-content:flex-end; margin-top:6px; }
#shopResaleContractsPage .resale-contract-toolbar { margin:0 0 6px; gap:6px; }
#shopResaleContractsPage .resale-contract-subnav { display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
#shopResaleContractsPage .resale-contract-subnav button { min-height:28px; padding:4px 11px; border-radius:999px; font-size:11.5px; font-weight:700; border:1px solid #cbd5e1; background:#fff; color:#1e293b; }
#shopResaleContractsPage .resale-contract-subnav button.is-icon-btn { min-width:28px; width:28px; height:28px; padding:0; display:inline-grid; place-items:center; font-size:13.5px; line-height:1; }
#shopResaleContractsPage .resale-contract-subnav button:hover { background:#f0f9ff; border-color:#0284c7; color:#0369a1; }
#shopResaleContractsPage .resale-contract-subnav button[aria-pressed="true"] { background:linear-gradient(180deg,#0284c7 0%,#0369a1 100%); border-color:#0369a1; color:#fff; }
#shopResaleContractsPage .resale-contract-status-card { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 14px; padding:8px 12px; margin-bottom:8px; background:#f0f9ff; border:1px solid #bae6fd; border-radius:8px; }
#shopResaleContractsPage .resale-contract-status-main { display:grid; gap:4px; min-width:0; }
#shopResaleContractsPage .resale-contract-status-main h3 { margin:0; font-size:14px; font-weight:800; color:#0c4a6e; }
#shopResaleContractsPage .resale-contract-parties-row { display:flex; flex-wrap:wrap; gap:5px 8px; }
#shopResaleContractsPage .resale-contract-party-pill { margin:0; padding:2px 8px; background:#fff; border:1px solid #cbd5e1; border-radius:6px; font-size:11.5px; color:#334155; }
#shopResaleContractsPage .resale-contract-status-actions { display:flex; align-items:center; gap:6px; margin-left:auto; }
#shopResaleContractsPage .resale-contract-detail-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:8px; align-items:start; }
#shopResaleContractsPage .resale-contract-col { display:grid; gap:8px; min-width:0; }
#shopResaleContractsPage .resale-hub-item { margin:0; padding:10px 12px; gap:6px; border:1px solid #dbe5ec; border-radius:8px; background:#fff; }
#shopResaleContractsPage .resale-hub-item p { margin:0; font-size:12px; line-height:1.45; color:#334155; }
#shopResaleContractsPage .resale-contract-terms-split { display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; align-items:flex-start; }
#shopResaleContractsPage .resale-terms-product-col { flex:1 1 240px; min-width:0; display:grid; gap:5px; }
#shopResaleContractsPage .resale-terms-policy-col { flex:2 1 360px; min-width:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:5px 8px; }
#shopResaleContractsPage .resale-term-cell { margin:0; padding:6px 9px; border-radius:6px; font-size:11.5px; line-height:1.45; }
#shopResaleContractsPage .resale-term-cell.is-product-cell { background:#f1f5f9; border:1px solid #cbd5e1; color:#0f172a; font-weight:500; }
#shopResaleContractsPage .resale-term-cell.is-product-cell:first-child { font-weight:700; background:#e2e8f0; border-color:#94a3b8; }
#shopResaleContractsPage .resale-term-cell.is-policy-cell { background:#ffffff; border:1px solid #e2e8f0; color:#334155; }
#shopResaleContractsPage .resale-contract-notes-box p { font-size:11.5px; color:#64748b; }
#shopResaleContractsPage .resale-contract-archive-heading { margin:0 0 6px; font-size:13.5px; font-weight:800; color:#0f172a; }
#shopResaleContractsPage .resale-contract-archive-card { margin-bottom:6px; }
#shopResaleContractsPage .resale-contract-history-list { display:grid; gap:6px; }
#shopResaleContractsPage .shop-commerce-form button { min-height:30px; }
#shopResaleContractsPage .resale-contract-sign-card { display:grid; gap:8px; justify-items:start; }
#shopResaleContractsPage .resale-contract-issue-btn { width:auto !important; min-height:30px !important; height:30px; padding:4px 14px !important; font-size:12px !important; font-weight:750 !important; border-radius:7px !important; border:1px solid #93c5fd !important; background:#f0f9ff !important; color:#0369a1 !important; }
#shopResaleContractsPage .resale-contract-issue-btn:hover { background:#e0f2fe !important; border-color:#0284c7 !important; }
#shopResaleContractsPage .resale-contract-accept-form { width:100% !important; box-sizing:border-box; display:grid !important; grid-template-columns:1fr !important; gap:9px !important; padding:11px 13px !important; border:1px solid #dbe5ec !important; border-radius:8px !important; background:#f8fafc !important; }
#shopResaleContractsPage .resale-contract-accept-form .resale-contract-code-field { grid-column:1 / -1 !important; display:grid !important; gap:5px !important; font-size:12px !important; font-weight:700 !important; color:#1e293b !important; margin:0 !important; }
#shopResaleContractsPage .resale-contract-accept-form .resale-contract-code-field input { max-width:260px !important; min-height:30px !important; height:30px !important; background:#ffffff !important; }
#shopResaleContractsPage .resale-contract-accept-form .resale-contract-check-row { grid-column:1 / -1 !important; display:flex !important; flex-direction:row !important; flex-wrap:nowrap !important; align-items:flex-start !important; gap:8px !important; font-size:12px !important; font-weight:500 !important; line-height:1.45 !important; color:#1e293b !important; margin:0 !important; cursor:pointer; }
#shopResaleContractsPage .resale-contract-accept-form .resale-contract-check-row input[type="checkbox"] { flex:0 0 15px !important; width:15px !important; height:15px !important; min-height:15px !important; margin:2px 0 0 !important; cursor:pointer; }
#shopResaleContractsPage .resale-contract-accept-form .resale-contract-submit-btn { grid-column:1 / -1 !important; justify-self:start !important; width:auto !important; min-height:30px !important; height:30px !important; padding:4px 18px !important; font-size:12px !important; font-weight:750 !important; border-radius:7px !important; }
.product-top-report-btn {
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:2px 8px;
  border:1px solid transparent;
  border-radius:6px;
  background:transparent;
  color:#94a3b8;
  font-size:.74rem;
  font-weight:500;
  line-height:1.35;
  cursor:pointer;
  transition:color .15s ease,background .15s ease,border-color .15s ease;
}
.product-top-report-btn:hover {
  color:#64748b;
  background:#f8fafc;
  border-color:#e2e8f0;
}

/* Ordered fulfillment stages; utilities never interrupt the shipment sequence. */
.desktop-portal-kpi-bar.is-order-flow,
.desktop-portal-kpi-bar.is-order-flow:has(> .desktop-portal-kpi-row-title) {
  grid-template-columns:156px repeat(8,minmax(106px,1fr));
  overflow-x:auto; max-width:100%; min-width:0;
}
.is-order-flow > .desktop-portal-kpi-row-title {
  grid-column:auto;
  min-height:26px !important;
  height:28px;
  padding:2px 8px !important;
  font-size:0.71rem !important;
  font-weight:850 !important;
  white-space:nowrap !important;
  text-align:left;
  border:0;
}
.is-order-flow .desktop-portal-kpi-card {
  min-height:26px !important;
  height:28px;
  padding:2px 6px !important;
  gap:3px !important;
  border-radius:0 !important;
}
.is-order-flow .desktop-portal-kpi-icon {
  font-size:0.74rem !important;
}
.is-order-flow .desktop-portal-kpi-label {
  font-size:0.69rem !important;
  font-weight:750 !important;
  white-space:nowrap !important;
  line-height:1.2 !important;
  letter-spacing:-0.01em;
}
.is-order-flow .desktop-portal-kpi-val {
  font-size:0.69rem !important;
  padding:1px 5px !important;
  line-height:1.15 !important;
}

/* Row 1: Vận đơn của Shop — Clean Sky-Blue solid table cells */
.desktop-portal-kpi-bar.is-order-flow[data-seller-kpi-bar="1"] {
  padding:2px;
  gap:3px;
  margin-bottom:5px;
  background:linear-gradient(180deg,#f0f9ff 0%,#e0f2fe 100%);
  border:1.5px solid #38bdf8;
  border-radius:7px;
  box-shadow:0 1px 3px rgba(2,132,199,0.08);
}
.desktop-portal-kpi-bar.is-order-flow[data-seller-kpi-bar="1"] > .desktop-portal-kpi-row-title {
  background:linear-gradient(135deg,#0284c7 0%,#0369a1 100%);
  color:#ffffff;
  border:1px solid #0284c7;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.22);
}
.desktop-portal-kpi-bar.is-order-flow[data-seller-kpi-bar="1"] > .desktop-portal-kpi-row-title:hover {
  background:linear-gradient(135deg,#0369a1 0%,#075985 100%);
}
.desktop-portal-kpi-bar.is-order-flow[data-seller-kpi-bar="1"] .desktop-portal-kpi-card {
  background:#ffffff;
  border:1px solid #7dd3fc !important;
  border-left:2.5px solid #0284c7 !important;
  box-shadow:inset 0 1px 0 #ffffff;
}
.desktop-portal-kpi-bar.is-order-flow[data-seller-kpi-bar="1"] .desktop-portal-kpi-card:hover {
  background:#f0f9ff;
  border-color:#0284c7 !important;
}
.desktop-portal-kpi-bar.is-order-flow[data-seller-kpi-bar="1"] .desktop-portal-kpi-val {
  background:#e0f2fe;
  border-color:#bae6fd;
  color:#0369a1;
}

/* Row 2: Vận đơn đăng bán lại — Soft non-glaring Slate-Gray border & subtle cell frame */
.desktop-resale-tracking-row {
  margin:0 0 6px;
  min-width:0;
}
.desktop-portal-kpi-bar.is-order-flow[data-resale-kpi-bar="1"] {
  padding:2px;
  gap:3px;
  margin-bottom:0;
  background:#f1f5f9;
  border:1px solid #cbd5e1;
  border-radius:7px;
  box-shadow:none;
}
.desktop-portal-kpi-bar.is-order-flow[data-resale-kpi-bar="1"] > .desktop-portal-kpi-row-title {
  background:#e2e8f0;
  color:#334155;
  border:1px solid #cbd5e1;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.75);
}
.desktop-portal-kpi-bar.is-order-flow[data-resale-kpi-bar="1"] .desktop-portal-kpi-card {
  background:#f8fafc;
  border:1px solid #cbd5e1 !important;
  border-left:2.5px solid #94a3b8 !important;
  box-shadow:inset 0 1px 0 #ffffff;
}
.desktop-portal-kpi-bar.is-order-flow[data-resale-kpi-bar="1"] .desktop-portal-kpi-card:hover {
  background:#ffffff;
  border-color:#94a3b8 !important;
  border-left-color:#64748b !important;
}
.desktop-portal-kpi-bar.is-order-flow[data-resale-kpi-bar="1"] .desktop-portal-kpi-label {
  color:#334155;
}
.desktop-portal-kpi-bar.is-order-flow[data-resale-kpi-bar="1"] .desktop-portal-kpi-val {
  background:#e2e8f0;
  border-color:#cbd5e1;
  color:#334155;
}

.desktop-order-flow-tools {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px;
  margin:2px 0 8px;
}
.desktop-order-flow-tools > button {
  min-height:25px !important;
  height:25px;
  padding:2px 9px !important;
  font-size:0.72rem !important;
  border-radius:5px !important;
}
.desktop-order-flow-tools [hidden] { display:none; }
.desktop-order-flow-guide {
  position:relative;
  font-size:0.72rem;
  color:#475569;
  margin-left:4px;
}
.desktop-order-flow-guide > summary {
  cursor:pointer;
  font-weight:700;
  color:#0369a1;
  padding:2px 8px;
  border-radius:5px;
  background:#f0f9ff;
  border:1px solid #bae6fd;
  list-style-position:inside;
  user-select:none;
}
.desktop-order-flow-guide[open] > p {
  margin:4px 0 0;
  padding:6px 10px;
  max-width:980px;
  line-height:1.45;
  background:#f8fafc;
  border:1px solid #cbd5e1;
  border-radius:6px;
}

/* ==========================================================================
   CRM & CUSTOMER CARE TABLES (6. Chăm sóc Khách hàng & CRM: inbox, buyers, notifications, productReports)
   — Proportional column widths, compact cell sizing, and tidy alignment
   ========================================================================== */
.sheet-crm-partner-cell {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.sheet-crm-partner-cell .shop-inbox-avatar {
  width:28px !important;
  height:28px !important;
  min-width:28px !important;
  border-radius:50% !important;
  font-size:0.74rem !important;
  font-weight:800 !important;
  display:inline-grid !important;
  place-items:center !important;
  background:#e0f2fe !important;
  color:#0369a1 !important;
  border:1px solid #bae6fd !important;
  flex-shrink:0;
}
.sheet-crm-partner-cell strong {
  font-size:0.8rem !important;
  font-weight:750 !important;
  color:#0f172a !important;
  line-height:1.3 !important;
}

/* 1. Hộp thư Chăm sóc Khách mua (crm-inbox: 5 cols — STT | Khách mua | Nội dung tin nhắn gần nhất | Trạng thái | Thao tác) */
.desktop-spreadsheet-wrap[data-sheet-schema="crm-inbox"] .desktop-spreadsheet-table th:nth-child(1),
.desktop-spreadsheet-wrap[data-sheet-schema="crm-inbox"] .desktop-spreadsheet-table td:nth-child(1) {
  width:42px;
  min-width:42px;
  text-align:center;
}
.desktop-spreadsheet-wrap[data-sheet-schema="crm-inbox"] .desktop-spreadsheet-table th:nth-child(2),
.desktop-spreadsheet-wrap[data-sheet-schema="crm-inbox"] .desktop-spreadsheet-table td:nth-child(2) {
  width:22%;
  min-width:170px;
}
.desktop-spreadsheet-wrap[data-sheet-schema="crm-inbox"] .desktop-spreadsheet-table th:nth-child(3),
.desktop-spreadsheet-wrap[data-sheet-schema="crm-inbox"] .desktop-spreadsheet-table td:nth-child(3) {
  width:52%;
  min-width:260px;
  white-space:normal;
  line-height:1.45;
}
.desktop-spreadsheet-wrap[data-sheet-schema="crm-inbox"] .desktop-spreadsheet-table th:nth-child(4),
.desktop-spreadsheet-wrap[data-sheet-schema="crm-inbox"] .desktop-spreadsheet-table td:nth-child(4) {
  width:12%;
  min-width:110px;
  text-align:center;
  white-space:nowrap;
}
.desktop-spreadsheet-wrap[data-sheet-schema="crm-inbox"] .desktop-spreadsheet-table th:nth-child(5),
.desktop-spreadsheet-wrap[data-sheet-schema="crm-inbox"] .desktop-spreadsheet-table td:nth-child(5) {
  width:120px;
  min-width:115px;
  text-align:right;
}

/* 2. Khách hàng đã mua & Điểm VIP (crm-buyers: 7 cols — STT | Khách hàng | Phân hạng | Số đơn | Doanh số hoàn tất | Điểm thưởng VIP | Thao tác) */
.desktop-spreadsheet-wrap[data-sheet-schema="crm-buyers"] .desktop-spreadsheet-table th:nth-child(1),
.desktop-spreadsheet-wrap[data-sheet-schema="crm-buyers"] .desktop-spreadsheet-table td:nth-child(1) {
  width:42px;
  min-width:42px;
  text-align:center;
}
.desktop-spreadsheet-wrap[data-sheet-schema="crm-buyers"] .desktop-spreadsheet-table th:nth-child(2),
.desktop-spreadsheet-wrap[data-sheet-schema="crm-buyers"] .desktop-spreadsheet-table td:nth-child(2) {
  width:26%;
  min-width:185px;
}
.desktop-spreadsheet-wrap[data-sheet-schema="crm-buyers"] .desktop-spreadsheet-table th:nth-child(3),
.desktop-spreadsheet-wrap[data-sheet-schema="crm-buyers"] .desktop-spreadsheet-table td:nth-child(3) {
  width:17%;
  min-width:150px;
  text-align:center;
  white-space:nowrap;
}
.desktop-spreadsheet-wrap[data-sheet-schema="crm-buyers"] .desktop-spreadsheet-table th:nth-child(4),
.desktop-spreadsheet-wrap[data-sheet-schema="crm-buyers"] .desktop-spreadsheet-table td:nth-child(4) {
  width:10%;
  min-width:85px;
  text-align:center;
  white-space:nowrap;
}
.desktop-spreadsheet-wrap[data-sheet-schema="crm-buyers"] .desktop-spreadsheet-table th:nth-child(5),
.desktop-spreadsheet-wrap[data-sheet-schema="crm-buyers"] .desktop-spreadsheet-table td:nth-child(5) {
  width:16%;
  min-width:125px;
  text-align:right;
  white-space:nowrap;
}
.desktop-spreadsheet-wrap[data-sheet-schema="crm-buyers"] .desktop-spreadsheet-table th:nth-child(6),
.desktop-spreadsheet-wrap[data-sheet-schema="crm-buyers"] .desktop-spreadsheet-table td:nth-child(6) {
  width:15%;
  min-width:125px;
  text-align:center;
  white-space:nowrap;
}
.desktop-spreadsheet-wrap[data-sheet-schema="crm-buyers"] .desktop-spreadsheet-table th:nth-child(7),
.desktop-spreadsheet-wrap[data-sheet-schema="crm-buyers"] .desktop-spreadsheet-table td:nth-child(7) {
  width:120px;
  min-width:115px;
  text-align:right;
}

/* 3. Thông báo Vận hành Shop (crm-notifications: 7 cols — STT | Thông báo & Thời gian | Phân loại | Sản phẩm & Mã đơn | Tổng đơn | Trạng thái | Thao tác) */
.desktop-spreadsheet-wrap[data-sheet-schema="crm-notifications"] .desktop-spreadsheet-table th:nth-child(1),
.desktop-spreadsheet-wrap[data-sheet-schema="crm-notifications"] .desktop-spreadsheet-table td:nth-child(1) {
  width:42px;
  min-width:42px;
  text-align:center;
}
.desktop-spreadsheet-wrap[data-sheet-schema="crm-notifications"] .desktop-spreadsheet-table th:nth-child(2),
.desktop-spreadsheet-wrap[data-sheet-schema="crm-notifications"] .desktop-spreadsheet-table td:nth-child(2) {
  width:21%;
  min-width:170px;
  white-space:normal;
}
.desktop-spreadsheet-wrap[data-sheet-schema="crm-notifications"] .desktop-spreadsheet-table th:nth-child(3),
.desktop-spreadsheet-wrap[data-sheet-schema="crm-notifications"] .desktop-spreadsheet-table td:nth-child(3) {
  width:10%;
  min-width:95px;
  text-align:center;
  white-space:nowrap;
}
.desktop-spreadsheet-wrap[data-sheet-schema="crm-notifications"] .desktop-spreadsheet-table th:nth-child(4),
.desktop-spreadsheet-wrap[data-sheet-schema="crm-notifications"] .desktop-spreadsheet-table td:nth-child(4) {
  width:28%;
  min-width:210px;
  white-space:normal;
}
.desktop-spreadsheet-wrap[data-sheet-schema="crm-notifications"] .desktop-spreadsheet-table th:nth-child(5),
.desktop-spreadsheet-wrap[data-sheet-schema="crm-notifications"] .desktop-spreadsheet-table td:nth-child(5) {
  width:10%;
  min-width:95px;
  text-align:right;
  white-space:nowrap;
}
.desktop-spreadsheet-wrap[data-sheet-schema="crm-notifications"] .desktop-spreadsheet-table th:nth-child(6),
.desktop-spreadsheet-wrap[data-sheet-schema="crm-notifications"] .desktop-spreadsheet-table td:nth-child(6) {
  width:8%;
  min-width:80px;
  text-align:center;
  white-space:nowrap;
}
.desktop-spreadsheet-wrap[data-sheet-schema="crm-notifications"] .desktop-spreadsheet-table th:nth-child(7),
.desktop-spreadsheet-wrap[data-sheet-schema="crm-notifications"] .desktop-spreadsheet-table td:nth-child(7) {
  width:23%;
  min-width:225px;
  text-align:right;
  white-space:nowrap;
}
.desktop-spreadsheet-wrap[data-sheet-schema="crm-notifications"] .sheet-actions-group {
  flex-wrap:nowrap;
}
.desktop-spreadsheet-wrap[data-sheet-schema="crm-notifications"] .sheet-actions-group button {
  white-space:nowrap !important;
  flex-shrink:0;
}
.sheet-notif-order-meta-line {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:4px;
  margin-top:3px;
  font-size:0.74rem;
  color:#475569;
}
.sheet-notif-order-meta-line small {
  font-size:0.73rem;
  color:#64748b;
  margin:0;
}
.desktop-commerce-embed-box .shop-notification-summary {
  display:none !important;
}

/* 4. Báo cáo Phản hồi Sản phẩm & Admin Grids (.shop-admin-grid) — Balanced cell sizing & subtle vertical cell borders */
.desktop-commerce-embed-box .shop-admin-grid tbody td {
  border-right:1px solid #e2e8f0;
  padding:7px 10px;
  font-size:0.78rem;
  line-height:1.42;
  vertical-align:middle;
}
.desktop-commerce-embed-box .shop-admin-grid tbody td:last-child {
  border-right:0;
  text-align:right;
}
.desktop-commerce-embed-box .shop-admin-grid tbody td .shop-seller-section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:6px;
  border:0 !important;
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
}
.desktop-commerce-embed-box .shop-admin-grid tbody td .shop-seller-section-head::before {
  display:none !important;
  content:none !important;
}
.desktop-commerce-embed-box .shop-admin-grid tbody td .shop-order-inline-actions {
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  gap:5px;
}
.desktop-commerce-embed-box .shop-admin-grid tbody td[data-label="Sản phẩm / trạng thái"] {
  width:22%;
  min-width:175px;
}
.desktop-commerce-embed-box .shop-admin-grid tbody td[data-label="Lý do"] {
  width:13%;
  min-width:115px;
  font-weight:700;
  color:#334155;
}
.desktop-commerce-embed-box .shop-admin-grid tbody td[data-label="Nội dung"] {
  width:32%;
  min-width:225px;
}
.desktop-commerce-embed-box .shop-admin-grid tbody td[data-label="Thời gian"] {
  width:13%;
  min-width:120px;
  white-space:nowrap;
  color:#475569;
  font-size:0.74rem;
}
.desktop-commerce-embed-box .shop-admin-grid tbody td[data-label="Thao tác"] {
  width:20%;
  min-width:205px;
  white-space:nowrap;
}

/* "Quản lý vận đơn" Card inside "1. Tổng quan & Điều hành" */
.seller-shipment-overview-card {
  display:flex;
  flex-direction:column;
  gap:6px;
  width:100%;
  box-sizing:border-box;
  padding:11px 14px;
  margin:0 0 12px;
  background:#ffffff;
  border:1px solid #cbd5e1;
  border-radius:10px;
  box-shadow:0 2px 6px rgba(15,23,42,0.04);
}
.seller-shipment-overview-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 0 6px;
  border-bottom:1px solid #e2e8f0;
  margin-bottom:2px;
}
.seller-shipment-overview-title {
  margin:0 !important;
  font-size:0.96rem !important;
  font-weight:850 !important;
  color:#0f172a !important;
  line-height:1.3 !important;
}
.seller-shipment-overview-card .desktop-portal-kpi-bar.is-order-flow,
.seller-shipment-overview-card .desktop-portal-kpi-bar.is-order-flow:has(> .desktop-portal-kpi-row-title) {
  grid-template-columns:146px repeat(8,minmax(90px,1fr));
  margin-bottom:0;
}
.seller-shipment-overview-card .desktop-resale-tracking-row {
  margin:0;
}
.seller-shipment-overview-card .desktop-order-flow-tools {
  margin:2px 0 0;
}

/* ==========================================================================
   UNIFIED DATA TABLE DESIGN SYSTEM ACROSS ENTIRE WEB APP
   (Grid borders: vertical & horizontal, header bar, zebra rows, row hover,
    crisp text colors, and separated status badges)
   ========================================================================== */
:is(
  .desktop-spreadsheet-scroll,
  .resale-settlement-table,
  .resale-table-scroll-wrap,
  .desktop-commerce-embed-box .shop-admin-grid-scroll
) {
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
  overflow-x: auto !important;
}

:is(
  .desktop-spreadsheet-table,
  .resale-settlement-table table,
  .resale-management-table,
  .desktop-commerce-embed-box .shop-admin-grid table,
  .shop-commerce-page table,
  .specs-table
) {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: #ffffff !important;
  color: #0f172a !important;
}

:is(
  .desktop-spreadsheet-table,
  .resale-settlement-table table,
  .resale-management-table,
  .desktop-commerce-embed-box .shop-admin-grid table,
  .shop-commerce-page table,
  .specs-table
) :is(thead th, tr > th) {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%) !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  border-bottom: 1.5px solid #cbd5e1 !important;
  border-right: 1px solid #cbd5e1 !important;
  padding: 9px 11px !important;
  vertical-align: middle !important;
}

:is(
  .desktop-spreadsheet-table,
  .resale-settlement-table table,
  .resale-management-table,
  .desktop-commerce-embed-box .shop-admin-grid table,
  .shop-commerce-page table,
  .specs-table
) :is(thead th:last-child, tr > th:last-child) {
  border-right: 0 !important;
}

:is(
  .desktop-spreadsheet-table,
  .resale-settlement-table table,
  .resale-management-table,
  .desktop-commerce-embed-box .shop-admin-grid table,
  .shop-commerce-page table,
  .specs-table
) tbody td {
  border-bottom: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  padding: 9px 11px !important;
  color: #1e293b !important;
  vertical-align: middle !important;
  transition: background-color 0.14s ease, box-shadow 0.14s ease !important;
}

:is(
  .desktop-spreadsheet-table,
  .resale-settlement-table table,
  .resale-management-table,
  .desktop-commerce-embed-box .shop-admin-grid table,
  .shop-commerce-page table,
  .specs-table
) tbody td:last-child {
  border-right: 0 !important;
}

:is(
  .desktop-spreadsheet-table,
  .resale-settlement-table table,
  .resale-management-table,
  .desktop-commerce-embed-box .shop-admin-grid table,
  .shop-commerce-page table,
  .specs-table
) tbody tr:last-child td {
  border-bottom: 0 !important;
}

:is(
  .desktop-spreadsheet-table,
  .resale-settlement-table table,
  .resale-management-table,
  .desktop-commerce-embed-box .shop-admin-grid table,
  .shop-commerce-page table
) tbody tr:nth-child(even) td {
  background-color: #f8fafc;
}

:is(
  .desktop-spreadsheet-table,
  .resale-settlement-table table,
  .resale-management-table,
  .desktop-commerce-embed-box .shop-admin-grid table,
  .shop-commerce-page table,
  .specs-table
) tbody tr:hover td {
  background-color: #eff6ff !important;
}

:is(
  .desktop-spreadsheet-table,
  .resale-settlement-table table,
  .resale-management-table,
  .desktop-commerce-embed-box .shop-admin-grid table,
  .shop-commerce-page table
) tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 #0284c7 !important;
}

/* Clear Typography & Separated Status Badges in Tables */
.resale-settlement-table td strong {
  display: block;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 2px;
}

.resale-settlement-table td div {
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.38;
}

.resale-settlement-table td small {
  display: block;
  margin-top: 3px;
  color: #475569;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
}

.resale-tracking-status-cell .resale-status-badge,
.resale-settlement-table td > strong:first-child:not(:only-child) {
  display: inline-flex !important;
  align-items: center;
  width: fit-content;
  padding: 2px 9px;
  margin: 0 0 5px 0 !important;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.35;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.resale-tracking-status-cell .resale-status-badge:is(.is-stage-pending, .is-stage-action, .is-stage-need_action, .is-stage-action_required, .is-stage-waiting) {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.resale-tracking-status-cell .resale-status-badge:is(.is-stage-completed, .is-stage-delivered, .is-stage-done) {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.resale-tracking-status-cell .resale-status-badge:is(.is-stage-cancelled, .is-stage-return, .is-stage-returns, .is-stage-after_sale, .is-stage-cancel_requested) {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.resale-order-status-line {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.resale-order-status-line b {
  color: #0f172a;
  font-weight: 750;
}

.resale-return-note {
  color: #be123c !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   WEB OPERATIONS ADMIN PORTAL (/shop/web-admin) & HOSTING HR SPREADSHEET (/shop/hosting-hr)
   ========================================================================== */
.shop-home-announcement-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
}
.shop-home-customizer-jump-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.shop-home-customizer-jump-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}
.shop-home-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.shop-home-category-pill {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.shop-home-category-pill:hover {
  border-color: #e11d48;
  color: #e11d48;
  background: #fff1f2;
}

.web-admin-portal-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 36px;
}
.web-admin-hero-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.web-admin-hero-banner.is-hosting-root-banner {
  background: linear-gradient(135deg, #31102f 0%, #0f172a 100%);
  border: 1px solid rgba(244, 63, 94, 0.35);
}
.web-admin-hero-copy h1 {
  margin: 6px 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}
.web-admin-hero-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
  max-width: 820px;
}
.web-admin-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.web-admin-tier-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.web-admin-tier-pill.is-root {
  background: rgba(244, 63, 94, 0.22);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.45);
}
.web-admin-tier-pill.is-role {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
}
.web-admin-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 280px;
}
.web-admin-role-switcher-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
  width: 100%;
}
.web-admin-role-switcher-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 600;
}
.web-admin-hero-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.web-admin-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.web-admin-kpi-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 9px 13px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0284c7;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.web-admin-kpi-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
}
.web-admin-kpi-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.web-admin-kpi-card strong,
.web-admin-kpi-num {
  margin-left: auto;
  text-align: right;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.15;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  white-space: nowrap;
}
.web-admin-kpi-card span,
.web-admin-kpi-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.25;
}
.web-admin-kpi-card small,
.web-admin-kpi-sub {
  font-size: 11px;
  color: #64748b;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.web-admin-kpi-card.is-tone-emerald {
  border-left-color: #10b981;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}
.web-admin-kpi-card.is-tone-emerald .web-admin-kpi-num {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.web-admin-kpi-card.is-tone-indigo {
  border-left-color: #6366f1;
  background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
}
.web-admin-kpi-card.is-tone-indigo .web-admin-kpi-num {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}
.web-admin-kpi-card.is-tone-rose {
  border-left-color: #f43f5e;
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
}
.web-admin-kpi-card.is-tone-rose .web-admin-kpi-num {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}
.web-admin-kpi-card.is-tone-amber {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}
.web-admin-kpi-card.is-tone-amber .web-admin-kpi-num {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}
.web-admin-tabs-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  overflow-x: auto;
  scrollbar-width: thin;
}
.web-admin-tab-btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid #dbe3ee;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease;
}
.web-admin-tab-btn:hover {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: #0369a1;
  border-color: #38bdf8;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.16);
  transform: translateY(-1px);
}
.web-admin-tab-btn.is-active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-color: #0369a1;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
}
.web-admin-tab-btn.is-active:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: #ffffff;
  border-color: #075985;
  transform: translateY(-1px);
}
.web-admin-panel-card {
  padding: 18px 20px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.web-admin-panel-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}
.web-admin-panel-card > p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #475569;
}

/* HR & RBAC Spreadsheet Styling */
.hr-spreadsheet-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.hr-spreadsheet-filters,
.hr-spreadsheet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.hr-spreadsheet-search-input,
.hr-spreadsheet-select {
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 12.5px;
  background: #ffffff;
}
.hr-spreadsheet-search-input {
  min-width: 480px;
  width: 480px;
  max-width: 100%;
  box-sizing: border-box;
}
.web-admin-portal-container .hr-spreadsheet-search-input {
  min-width: min(520px, 100%);
  width: 520px;
  max-width: 100%;
  flex: 1 1 480px;
}
@media (max-width: 760px) {
  .hr-spreadsheet-search-input,
  .web-admin-portal-container .hr-spreadsheet-search-input {
    min-width: 100%;
    width: 100%;
    flex: 1 1 100%;
  }
}
.hr-spreadsheet-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}
.hr-spreadsheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #ffffff;
}
.hr-spreadsheet-table th {
  background: #f8fafc;
  color: #1e293b;
  font-weight: 800;
  text-align: left;
  padding: 9px 8px;
  border-bottom: 2px solid #cbd5e1;
  border-right: 1px solid #e2e8f0;
  white-space: nowrap;
}
.hr-spreadsheet-table td {
  padding: 6px 7px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  vertical-align: middle;
  white-space: pre-line;
}
.hr-sheet-row:hover {
  background: #f8fafc;
}
.hr-sheet-row.is-status-revoked {
  background: #fff1f2;
  opacity: 0.82;
}
.hr-sheet-row.is-status-suspended {
  background: #fffbeb;
}
.hr-sheet-cell-index {
  text-align: center;
  font-weight: 700;
  color: #64748b;
  width: 30px;
}
.hr-sheet-cell-check {
  text-align: center;
  width: 58px;
}
.hr-cell-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #0284c7;
}
.hr-cell-input,
.hr-cell-select {
  width: 100%;
  min-width: 105px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 12px;
  background: transparent;
  color: #0f172a;
}
.hr-cell-input:focus,
.hr-cell-select:focus,
.hr-cell-input:hover,
.hr-cell-select:hover {
  border-color: #94a3b8;
  background: #ffffff;
}
.hr-cell-input.is-code {
  min-width: 92px;
  font-family: monospace;
  font-weight: 700;
  color: #0369a1;
}
.hr-cell-input.is-bold {
  font-weight: 700;
  min-width: 150px;
}
.hr-cell-input.is-sub {
  font-size: 11px;
  color: #64748b;
}
.hr-sheet-cell-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
td.hr-sheet-cell-actions {
  display: table-cell;
  vertical-align: middle;
  white-space: nowrap;
}
td.hr-sheet-cell-actions > button,
td.hr-sheet-cell-actions > a,
td.hr-sheet-cell-actions > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
td.hr-sheet-cell-actions > * + * {
  margin-left: 5px;
}
td.hr-sheet-cell-actions.is-compact-actions > * + * {
  margin-left: 3px;
}
.btn-xs {
  padding: 4px 8px;
  font-size: 11.5px;
  border-radius: 6px;
  cursor: pointer;
}

/* Tier Architecture & UI Customizer */
.web-admin-tier-architecture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 12px;
}
.web-admin-tier-card {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.web-admin-tier-card-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.web-admin-mini-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
}
.web-admin-tier-list {
  margin: 0;
  padding-left: 16px;
  font-size: 12.5px;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.web-admin-perm-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.web-admin-perm-box {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 12px;
}
.web-admin-perm-box.is-granted {
  background: #f0fdf4;
  border-color: #86efac;
}
.web-admin-perm-box.is-denied {
  background: #f8fafc;
  opacity: 0.65;
}
.web-admin-perm-box p {
  margin: 4px 0 0;
  color: #475569;
}

.web-admin-customizer-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
}
.web-admin-submode-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.web-admin-submode-bar::-webkit-scrollbar {
  display: none;
}
.web-admin-submode-bar > button,
.web-admin-submode-bar > a {
  flex: 0 1 auto;
  min-height: 29px;
  height: auto;
  padding: 4px 8px !important;
  border-radius: 7px;
  font-size: 11.5px !important;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
@media (max-width: 900px) {
  .web-admin-submode-bar {
    flex-wrap: wrap;
    gap: 5px;
  }
}
.web-admin-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.web-admin-field-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
}
.web-admin-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}
.web-admin-input,
.web-admin-textarea {
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
}
.web-admin-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.web-admin-role-catalog-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 540px;
  overflow-y: auto;
}
.web-admin-role-catalog-item {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.web-admin-role-catalog-head {
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 2px;
}
.web-admin-role-catalog-item p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #475569;
}

/* Live Preview Frames */
.web-admin-preview-head {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}
.ui-preview-desktop-frame {
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
}
.ui-preview-ann-bar {
  padding: 5px 10px;
  font-size: 11px;
  color: #ffffff;
  text-align: center;
}
.ui-preview-desktop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
}
.ui-preview-search-bar {
  padding: 3px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
}
.ui-preview-cat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 10px;
}
.ui-preview-cat-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-size: 10.5px;
  font-weight: 600;
}
.ui-preview-hero-box {
  margin: 0 10px;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid #fecdd3;
}
.ui-preview-hero-box h4 {
  margin: 4px 0;
  font-size: 13.5px;
  color: #881337;
}
.ui-preview-hero-box p {
  margin: 0 0 6px;
  font-size: 11px;
  color: #9f1239;
}
.ui-preview-cta-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: #e11d48;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
}
.ui-preview-sec-bar {
  margin: 0 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 700;
}
.ui-preview-prod-grid {
  display: grid;
  gap: 6px;
  padding: 0 10px;
}
.ui-preview-prod-card,
.ui-preview-phone-prod {
  padding: 6px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  text-align: center;
  font-size: 10.5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ui-preview-prod-thumb {
  height: 44px;
  border-radius: 4px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #e11d48;
}
.ui-preview-phone-frame {
  max-width: 310px;
  margin: 0 auto;
  border: 6px solid #1e293b;
  border-radius: 24px;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
}
.ui-preview-phone-header {
  padding: 10px 12px;
  background: #0f766e;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ui-preview-phone-search {
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  font-size: 11px;
}
.ui-preview-phone-welcome {
  margin: 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
}
.ui-preview-phone-quick-row {
  display: flex;
  justify-content: space-around;
  padding: 4px 8px;
}
.ui-preview-phone-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  gap: 2px;
}
.ui-preview-phone-grid {
  display: grid;
  gap: 6px;
  padding: 0 8px;
}
@media (max-width: 1100px) {
  .web-admin-customizer-layout,
  .web-admin-two-col-grid,
  .web-admin-kpi-strip {
    grid-template-columns: 1fr;
  }
}

/* Dedicated Admin Top Navigation Bar (/shop/hosting-hr & /shop/web-admin) */
.web-admin-dedicated-navbar {
  position: sticky;
  top: 0;
  z-index: 220;
  width: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #111827 100%);
  color: #ffffff;
  border-bottom: 2px solid #0284c7;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.22);
  margin-bottom: 14px;
}
.web-admin-dedicated-navbar-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 7px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.web-admin-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.web-admin-nav-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
}
.web-admin-nav-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.web-admin-nav-brand-copy strong {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}
.web-admin-nav-brand-copy small {
  font-size: 11px;
  color: #94a3b8;
}
.web-admin-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.web-admin-nav-link {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.15s ease;
}
.web-admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
.web-admin-nav-link.is-active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
}
.web-admin-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.web-admin-nav-role-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #bae6fd;
}
.web-admin-nav-role-switch select {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  max-width: 240px;
}
.web-admin-nav-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
}
.web-admin-quick-accounts-box {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}
.web-admin-quick-accounts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.web-admin-quick-acc-btn {
  text-align: left;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.12s ease;
}
.web-admin-quick-acc-btn:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.hr-spreadsheet-table.is-compact-hr-sheet th {
  padding: 6px 4px;
  font-size: 11px;
}
.hr-spreadsheet-table.is-compact-hr-sheet td {
  padding: 4px 4px;
  font-size: 11px;
}
.hr-spreadsheet-table.is-compact-hr-sheet .hr-cell-input,
.hr-spreadsheet-table.is-compact-hr-sheet .hr-cell-select {
  min-width: 56px;
  padding: 2px 4px;
  font-size: 11px;
}
.hr-spreadsheet-table.is-compact-hr-sheet .is-code-cell {
  width: 76px;
  max-width: 82px;
}
.hr-spreadsheet-table.is-compact-hr-sheet .hr-cell-input.is-code {
  min-width: 68px;
  max-width: 80px;
  font-size: 10.5px;
}
.hr-spreadsheet-table.is-compact-hr-sheet .is-name-cell {
  width: 112px;
  max-width: 124px;
}
.hr-spreadsheet-table.is-compact-hr-sheet .hr-cell-input.is-bold {
  min-width: 98px;
  max-width: 120px;
}
.hr-spreadsheet-table.is-compact-hr-sheet .hr-cell-input.is-email {
  min-width: 110px;
  max-width: 132px;
}
.hr-spreadsheet-table.is-compact-hr-sheet .hr-cell-input.is-pw {
  min-width: 110px;
  max-width: 132px;
  font-size: 10px;
}
.hr-spreadsheet-table.is-compact-hr-sheet .hr-cell-input.is-narrow,
.hr-spreadsheet-table.is-compact-hr-sheet .hr-cell-select.is-narrow {
  min-width: 54px;
  max-width: 76px;
}
.hr-spreadsheet-table.is-compact-hr-sheet .hr-cell-select.is-role {
  min-width: 86px;
  max-width: 108px;
}
.hr-spreadsheet-table.is-compact-hr-sheet .is-two-line-meta {
  font-size: 10px;
  line-height: 1.22;
  color: #475569;
  min-width: 56px;
  max-width: 72px;
}
.hr-spreadsheet-table.is-compact-hr-sheet .is-compact-actions {
  gap: 3px;
}
.hr-spreadsheet-table.is-compact-hr-sheet .is-compact-actions .btn-xs {
  padding: 2px 5px;
  font-size: 10.5px;
}
.hr-spreadsheet-table.is-compact-hr-sheet .is-compact-actions .is-danger-xs {
  color: #be123c;
  border-color: #fecdd3;
  background: #fff1f2;
}
.hr-spreadsheet-table.is-compact-hr-sheet .is-compact-actions .is-danger-xs:hover {
  background: #ffe4e6;
  border-color: #fb7185;
}
.hr-perm-dropdown {
  position: relative;
  display: inline-block;
}
.hr-perm-dropdown-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.hr-perm-dropdown-trigger::-webkit-details-marker {
  display: none;
}
.hr-perm-dropdown-trigger:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
}
.hr-perm-dropdown[open] .hr-perm-dropdown-trigger {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}
.hr-perm-dropdown-popover {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 80;
  width: 310px;
  padding: 8px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #94a3b8;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.22);
}
.hr-inline-perm-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.hr-inline-perm-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 5px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  font-size: 10.5px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hr-inline-perm-chip:hover {
  background: #eff6ff;
  border-color: #38bdf8;
}
.hr-inline-perm-chip input {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: #0284c7;
}

/* Unified Search, Filter & Pagination Bar for Spreadsheet Tables & Long Lists */
.web-admin-pager-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin-top: 10px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.web-admin-pager-summary {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.web-admin-pager-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.web-admin-page-num-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.14s ease;
}
.web-admin-page-num-btn:hover:not(:disabled) {
  border-color: #0284c7;
  background: #f0f9ff;
  color: #0284c7;
}
.web-admin-page-num-btn.is-active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}
.web-admin-page-size-select {
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
}
.web-admin-longtext-cell {
  max-width: 340px;
  line-height: 1.4;
}
.web-admin-longtext-toggle {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #0284c7;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
/* Multi-style Signature Top Layout System for Web Shop (/shop) & Customizer Swatches */
.shop-subnav-bar[data-menu-style="glass_pills"] {
  background: linear-gradient(90deg, #f0fdf4 0%, #f8fafc 50%, #f0f9ff 100%);
  border-bottom: 1px solid #bae6fd;
}
.shop-subnav-bar[data-menu-style="glass_pills"] .shop-subnav-link {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}
.shop-subnav-bar[data-menu-style="glass_pills"] .shop-subnav-link:hover,
.shop-subnav-bar[data-menu-style="glass_pills"] .shop-subnav-link.is-active {
  background: linear-gradient(90deg, #0f766e, #0284c7);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.22);
}
.shop-subnav-bar[data-menu-style="boxed_cards"] .shop-subnav-link {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #1e293b;
}
.shop-subnav-bar[data-menu-style="boxed_cards"] .shop-subnav-link:hover,
.shop-subnav-bar[data-menu-style="boxed_cards"] .shop-subnav-link.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}
.shop-subnav-bar[data-menu-style="royal_dark"] {
  background: linear-gradient(90deg, #18181b 0%, #27272a 100%);
  border-bottom: 1px solid #b45309;
}
.shop-subnav-bar[data-menu-style="royal_dark"] .shop-subnav-link {
  color: #fef3c7;
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.shop-subnav-bar[data-menu-style="royal_dark"] .shop-subnav-link:hover,
.shop-subnav-bar[data-menu-style="royal_dark"] .shop-subnav-link.is-active {
  background: linear-gradient(90deg, #b45309, #d97706);
  border-color: #fde68a;
  color: #ffffff;
}
.shop-subnav-bar[data-menu-style="floating_bar"] {
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  padding-top: 8px;
}
.shop-subnav-bar[data-menu-style="floating_bar"] .shop-subnav-inner {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
}
.shop-subnav-bar[data-menu-style="classic_underline"] {
  background: #ffffff;
  border-bottom: 1.5px solid #e2e8f0;
}
.shop-subnav-bar[data-menu-style="classic_underline"] .shop-subnav-link {
  padding: 8px 12px;
  border-radius: 0;
  border: 0;
  border-bottom: 2.5px solid transparent;
  background: transparent;
  color: #334155;
  font-weight: 700;
}
.shop-subnav-bar[data-menu-style="classic_underline"] .shop-subnav-link:hover,
.shop-subnav-bar[data-menu-style="classic_underline"] .shop-subnav-link.is-active {
  border-bottom-color: var(--brand, #0f766e);
  color: var(--brand, #0f766e);
  background: rgba(15, 118, 110, 0.04);
}

/* Global Accent Theme System (teal, amber, indigo, rose) for /shop and Live Preview */
html[data-shop-accent-theme="teal"],
[data-accent-theme="teal"],
.ui-preview-desktop-frame.theme-teal {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: #f0fdf4;
  --preview-accent: #0f766e;
  --preview-accent-soft: #f0fdf4;
}
html[data-shop-accent-theme="amber"],
[data-accent-theme="amber"],
.ui-preview-desktop-frame.theme-amber {
  --brand: #b45309;
  --brand-dark: #92400e;
  --brand-soft: #fffbeb;
  --preview-accent: #b45309;
  --preview-accent-soft: #fffbeb;
}
html[data-shop-accent-theme="indigo"],
[data-accent-theme="indigo"],
.ui-preview-desktop-frame.theme-indigo {
  --brand: #4338ca;
  --brand-dark: #3730a3;
  --brand-soft: #eef2ff;
  --preview-accent: #4338ca;
  --preview-accent-soft: #eef2ff;
}
html[data-shop-accent-theme="rose"],
[data-accent-theme="rose"],
.ui-preview-desktop-frame.theme-rose {
  --brand: #e11d48;
  --brand-dark: #be123c;
  --brand-soft: #fff1f2;
  --preview-accent: #e11d48;
  --preview-accent-soft: #fff1f2;
}
.ui-preview-desktop-frame .ui-preview-cta-pill,
.ui-preview-desktop-frame .ui-preview-cart-pill {
  background: var(--preview-accent, #0f766e);
  color: #ffffff;
}
.ui-preview-desktop-frame .ui-preview-cart-pill {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
}
.ui-preview-desktop-frame .ui-preview-prod-thumb {
  color: var(--preview-accent, #0f766e);
  background: var(--preview-accent-soft, #f0fdf4);
}

/* Web Hero Banner Layouts & Themes */
.shop-hero-grid[data-banner-layout="split_hero"] {
  grid-template-columns: minmax(0, 2.05fr) minmax(260px, 0.95fr);
}
.shop-hero-grid[data-banner-layout="bento_3col"] {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
}
.shop-hero-grid[data-banner-layout="bento_3col"] .shop-hero-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.shop-hero-grid[data-banner-layout="panoramic_full"] {
  grid-template-columns: 1fr;
}
.shop-hero-grid[data-banner-layout="panoramic_full"] .shop-hero-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.shop-hero-grid[data-banner-layout="centered_spotlight"] {
  grid-template-columns: 1fr;
}
.shop-hero-grid[data-banner-layout="centered_spotlight"] .shop-hero-main {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 28px 34px;
}
.shop-hero-grid[data-banner-layout="centered_spotlight"] .shop-hero-copy {
  max-width: 720px;
  margin: 0 auto;
}
.shop-hero-grid[data-banner-layout="centered_spotlight"] .shop-hero-actions {
  justify-content: center;
}
.shop-hero-grid[data-banner-layout="centered_spotlight"] .shop-hero-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Live Preview Hero Layout Grid & Product Showcase in /shop/web-admin?tab=ui_customizer */
.ui-preview-hero-layout-grid {
  display: grid;
  gap: 8px;
  margin: 0 10px;
}
.ui-preview-hero-layout-grid .ui-preview-hero-box {
  margin: 0;
}
.ui-preview-hero-layout-grid[data-banner-layout="split_hero"] {
  grid-template-columns: minmax(0, 1.85fr) minmax(130px, 0.95fr);
}
.ui-preview-hero-layout-grid[data-banner-layout="split_hero"] .ui-preview-hero-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ui-preview-hero-layout-grid[data-banner-layout="bento_3col"] {
  grid-template-columns: minmax(0, 1.25fr) minmax(170px, 1fr);
}
.ui-preview-hero-layout-grid[data-banner-layout="bento_3col"] .ui-preview-hero-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.ui-preview-hero-layout-grid[data-banner-layout="panoramic_full"],
.ui-preview-hero-layout-grid[data-banner-layout="centered_spotlight"] {
  grid-template-columns: 1fr;
}
.ui-preview-hero-layout-grid[data-banner-layout="panoramic_full"] .ui-preview-hero-side,
.ui-preview-hero-layout-grid[data-banner-layout="centered_spotlight"] .ui-preview-hero-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.ui-preview-hero-flex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ui-preview-hero-flex-row.is-centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ui-preview-hero-kicker {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 9.5px;
  font-weight: 800;
}
.ui-preview-side-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.ui-preview-side-card strong {
  font-size: 10.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}
.ui-preview-side-card small {
  font-size: 9.5px;
  color: #64748b;
  line-height: 1.25;
}
.ui-preview-side-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 1.5px 6px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 850;
}
.ui-preview-side-pill.is-emerald {
  background: #d1fae5;
  color: #065f46;
}
.ui-preview-side-pill.is-amber {
  background: #fef3c7;
  color: #92400e;
}
.ui-preview-prod-showcase {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px 5px 5px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(8px);
}
.ui-preview-prod-showcase .shop-hero-art.is-preview-art {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.ui-preview-prod-showcase-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5px;
  max-width: 125px;
  text-align: left;
}
.ui-preview-prod-showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 4px;
}
.ui-preview-prod-showcase-title {
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ui-preview-prod-showcase-price {
  font-size: 11px;
  font-weight: 900;
  color: #fde047;
  line-height: 1.15;
}
.ui-preview-prod-showcase-sub {
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
}
.ui-preview-autoplay-tag {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.38);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
}
.shop-hero-grid[data-banner-theme="emerald_cyan"] .shop-hero-main {
  background: linear-gradient(130deg, #042f2e 0%, #0f766e 52%, #0284c7 100%);
}
.shop-hero-grid[data-banner-theme="royal_gold"] .shop-hero-main {
  background: linear-gradient(130deg, #1c1917 0%, #442f16 54%, #b45309 100%);
  border: 1px solid rgba(251, 191, 36, 0.45);
}
.shop-hero-grid[data-banner-theme="cyber_indigo"] .shop-hero-main {
  background: linear-gradient(130deg, #1e1b4b 0%, #4338ca 52%, #9333ea 100%);
}
.shop-hero-grid[data-banner-theme="viet_crimson"] .shop-hero-main {
  background: linear-gradient(130deg, #7f1d1d 0%, #b91c1c 56%, #d97706 100%);
}
.shop-hero-grid[data-banner-theme="minimal_light"] .shop-hero-main {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #e0f2fe 100%);
  border: 1.5px solid #99f6e4;
  color: #0f172a;
}
.shop-hero-grid[data-banner-theme="minimal_light"] .shop-hero-copy h1,
.shop-hero-grid[data-banner-theme="minimal_light"] .shop-hero-copy p {
  color: #0f172a;
}
.shop-hero-grid[data-banner-theme="minimal_light"] .shop-hero-kicker {
  background: #0f766e;
  color: #ffffff;
}
/* Visual Style Preset Swatch Strip in UI Customizer (/shop/web-admin?tab=ui_customizer) */
.ui-style-preset-section {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 11px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #cbd5e1;
  margin-bottom: 6px;
}
.ui-style-preset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.ui-style-preset-head strong {
  font-size: 12.5px;
  font-weight: 850;
  color: #0f172a;
}
.ui-style-preset-head small {
  font-size: 11px;
  color: #475569;
  font-weight: 600;
}
.ui-style-preset-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
@media (max-width: 680px) {
  .ui-style-preset-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ui-style-preset-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 8px 9px;
  border-radius: 9px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: all 0.14s ease;
}
.ui-style-preset-card:hover {
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}
.ui-style-preset-card.is-active {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 1px #0284c7, 0 4px 12px rgba(2, 132, 199, 0.16);
}
.ui-style-preset-swatch {
  width: 100%;
  height: 18px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  font-size: 9.5px;
  font-weight: 850;
  color: #ffffff;
  box-sizing:border-box;
}
.ui-style-preset-card strong {
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}
.ui-style-preset-card small {
  font-size: 10px;
  color: #64748b;
  line-height: 1.25;
}
.ui-style-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 680px) {
  .ui-style-subgrid {
    grid-template-columns: 1fr;
  }
}
/* Reorderable & Selectable Dual Menu Strip Manager in UI Customizer + Web Home Dual Menu Strip */
.ui-menu-order-manager {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 11px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}
.ui-menu-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.ui-menu-order-title-col {
  display: grid;
  gap: 2px;
  flex: 1 1 260px;
}
.ui-menu-order-title-col strong {
  font-size: 12.5px;
  font-weight: 850;
  color: #0f172a;
}
.ui-menu-order-title-col small {
  font-size: 11px;
  color: #475569;
  line-height: 1.35;
}
.ui-menu-order-head-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.ui-menu-master-toggle {
  padding: 5px 8px;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 12px !important;
}
.ui-menu-order-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 6px;
}
.ui-menu-order-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 8px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.14s ease, opacity 0.14s ease, background 0.14s ease;
}
.ui-menu-order-item:hover {
  border-color: #0284c7;
}
.ui-menu-order-item.is-disabled {
  opacity: 0.52;
  background: #f1f5f9;
  border-style: dashed;
}
.ui-menu-order-item.is-dragging {
  opacity: 0.4;
}
.ui-menu-order-item.is-drag-over {
  border-color: #0f766e;
  background: #f0fdf4;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.25);
}
.ui-menu-drag-handle {
  cursor: grab;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1;
  user-select: none;
}
.ui-menu-rank-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 10px;
  font-weight: 850;
  flex-shrink: 0;
}
.ui-menu-enable-chk {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #0f766e;
  cursor: pointer;
  flex-shrink: 0;
}
.ui-menu-item-icon {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}
.ui-menu-label-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
}
.ui-menu-label-input:focus {
  outline: none;
  border-color: #0284c7;
  background: #ffffff;
}
.ui-menu-move-btns {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.ui-menu-move-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font-size: 11px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.ui-menu-move-btn:hover:not(:disabled) {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}
.ui-top-three-bands-manager {
  margin-bottom: 12px;
  border: 1.5px solid #bae6fd;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.06);
}
.ui-top-bands-presets-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}
.ui-top-band-preset-btn {
  font-size: 11px !important;
  padding: 4px 8px !important;
}
.ui-top-bands-order-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}
.ui-top-band-order-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.ui-top-band-rank {
  min-width: 48px !important;
  height: 22px !important;
  padding: 0 7px !important;
  font-size: 10.5px !important;
  background: #e0f2fe !important;
  color: #0369a1 !important;
}
.ui-top-band-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
.ui-top-band-title {
  font-size: 12.2px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}
.ui-top-band-sub {
  font-size: 11px;
  color: #475569;
  line-height: 1.25;
}
.ui-top-band-move-btns {
  gap: 4px !important;
}
.ui-top-band-move-btns .ui-menu-move-btn {
  width: auto !important;
  min-width: 58px;
  height: 26px !important;
  padding: 0 8px !important;
  font-size: 11px !important;
  border-radius: 6px !important;
}
/* Web Home Dual Menu Strip (Quick Utilities + 5 Promo Channels) */
.shop-home-dual-menus-hub {
  display: grid;
  gap: 12px;
  padding: 14px 18px !important;
}
.desktop-quick-utilities-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.desktop-quick-utility-item {
  position: relative;
  flex: 0 0 auto;
  min-width: 82px;
  padding: 7px 11px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 750;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.desktop-quick-utility-item:hover {
  transform: translateY(-1px);
  border-color: #0f766e;
  background: #f0fdf4;
  color: #0f766e;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.12);
}
.desktop-quick-utility-icon {
  position: relative;
  font-size: 15px;
  line-height: 1;
}
.desktop-quick-utility-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fe2c55;
}
.desktop-promo-channels-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 900px) {
  .desktop-promo-channels-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .desktop-promo-channels-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.desktop-promo-channel-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  border-radius: 14px;
  border: 1.5px solid #bae6fd;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 55%, #eff6ff 100%);
  color: #0f172a;
  text-align: left;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.desktop-promo-channel-card:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.14);
}
.desktop-promo-channel-svg {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
}
.desktop-promo-channel-svg svg {
  width: 40px;
  height: 40px;
  display: block;
}
.desktop-promo-channel-title {
  font-size: 13px;
  font-weight: 850;
  color: #0f172a;
  line-height: 1.25;
}
.web-admin-empty-row {
  padding: 22px 14px !important;
  text-align: center !important;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

/* Banner Slides Manager in Admin UI Customizer & Web Hero Carousel Controls */
.ui-banner-slides-manager {
  border-color: #99f6e4;
  background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 100%);
}
.ui-banner-slides-body {
  display: grid;
  gap: 10px;
}
.ui-banner-slides-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.ui-banner-slide-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 9px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  flex-shrink: 0;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}
.ui-banner-slide-tab.is-active {
  border-color: #0f766e;
  background: #ecfdf5;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.15);
}
.ui-banner-slide-tab.is-disabled {
  opacity: 0.55;
  border-style: dashed;
}
.ui-banner-slide-tab-btn {
  border: 0;
  background: transparent;
  padding: 2px 4px;
  font-size: 11.8px;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  white-space: nowrap;
}
.ui-banner-slide-tab.is-active .ui-banner-slide-tab-btn {
  color: #0f766e;
}
.ui-banner-slide-editor-card {
  display: grid;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.ui-banner-slide-editor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
}
.ui-banner-slide-editor-top strong {
  font-size: 12.2px;
  font-weight: 850;
  color: #0f766e;
}
.ui-slide-inline-check {
  margin: 0 !important;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 11.5px !important;
}
.ui-banner-slide-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}
.ui-banner-slide-fields-grid .is-full-span {
  grid-column: 1 / -1;
}
@media (max-width: 720px) {
  .ui-banner-slide-fields-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.ui-preview-slide-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
}
.ui-preview-slide-dot {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(15, 23, 42, 0.35);
  color: #ffffff;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.ui-preview-slide-dot.is-active {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

/* Web Homepage Hero Banner Slider & Text Overlay Styles (.shop-hero-main) */
.shop-hero-main {
  padding-top: 11px;
  padding-bottom: 14px;
  transition: background 0.25s ease;
}
.shop-hero-main:has(.shop-hero-slider-controls) {
  padding-bottom: 26px;
}
.shop-hero-main[data-slide-theme="emerald_cyan"],
.shop-hero-main[data-slide-theme="emerald_aurora"] {
  background: linear-gradient(130deg, #042f2e 0%, #0f766e 52%, #0284c7 100%);
}
.shop-hero-main[data-slide-theme="royal_gold"] {
  background: linear-gradient(130deg, #1c1917 0%, #442f16 54%, #b45309 100%);
}
.shop-hero-main[data-slide-theme="cyber_indigo"] {
  background: linear-gradient(130deg, #1e1b4b 0%, #4338ca 52%, #9333ea 100%);
}
.shop-hero-main[data-slide-theme="viet_crimson"] {
  background: linear-gradient(130deg, #7f1d1d 0%, #b91c1c 56%, #d97706 100%);
}
.shop-hero-main[data-slide-theme="rose_festival"],
.shop-hero-main[data-slide-theme="rose_classic"] {
  background: linear-gradient(135deg, #161823 0%, #881337 55%, #fe2c55 100%);
}
.shop-hero-main[data-slide-theme="minimal_light"],
.shop-hero-main[data-slide-theme="minimal_glass"] {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #e0f2fe 100%);
  color: #0f172a;
  border: 1.5px solid #99f6e4;
}
.shop-hero-main[data-slide-theme="minimal_light"] .shop-hero-copy h1,
.shop-hero-main[data-slide-theme="minimal_glass"] .shop-hero-copy h1 {
  color: #0f172a;
}
.shop-hero-main[data-slide-theme="minimal_light"] .shop-hero-copy p,
.shop-hero-main[data-slide-theme="minimal_glass"] .shop-hero-copy p {
  color: #334155;
}
.shop-hero-main[data-slide-theme="minimal_light"] .shop-hero-kicker,
.shop-hero-main[data-slide-theme="minimal_glass"] .shop-hero-kicker {
  background: #0f766e;
  color: #ffffff;
}
.shop-hero-main[data-text-style="glass_box"] .shop-hero-copy:not(.is-no-text) {
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.shop-hero-main[data-slide-theme="minimal_light"][data-text-style="glass_box"] .shop-hero-copy:not(.is-no-text),
.shop-hero-main[data-slide-theme="minimal_glass"][data-text-style="glass_box"] .shop-hero-copy:not(.is-no-text) {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 118, 110, 0.25);
}
.shop-hero-main[data-text-style="centered"] {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.shop-hero-main[data-text-style="centered"] .shop-hero-copy {
  max-width: 680px;
  margin: 0 auto;
}
.shop-hero-main[data-text-style="centered"] .shop-hero-actions {
  justify-content: center;
}
.shop-hero-copy.is-no-text {
  min-height: 140px;
}
.shop-hero-slider-controls {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 4px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.shop-hero-slide-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.shop-hero-slide-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.shop-hero-slide-dot.is-active {
  width: 24px;
  background: #ffffff;
}
.shop-hero-main[data-slide-theme="minimal_light"] .shop-hero-slide-dot,
.shop-hero-main[data-slide-theme="minimal_glass"] .shop-hero-slide-dot {
  background: rgba(15, 118, 110, 0.32);
}
.shop-hero-main[data-slide-theme="minimal_light"] .shop-hero-slide-dot.is-active,
.shop-hero-main[data-slide-theme="minimal_glass"] .shop-hero-slide-dot.is-active {
  background: #0f766e;
}
.shop-hero-slide-arrows,
.shop-hero-slide-count,
.shop-hero-slide-arrow {
  display: none !important;
}

/* Orchestrated Ads Display: Text Link Bar, Mid Banner Link, Interleaved Product Card & Smart Product Popup */
.shop-sponsored-text-link-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1.5px solid #fed7aa;
  background: linear-gradient(90deg, #fffbeb 0%, #fff7ed 55%, #ffffff 100%);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.06);
}
.shop-sponsored-text-link-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  color: #0f172a;
}
.shop-sponsored-ad-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ea580c 0%, #d97706 100%);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.shop-sponsored-text-sub {
  color: #475569;
  font-size: 12.2px;
}
.shop-sponsored-text-link-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.shop-sponsored-close-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}
.shop-sponsored-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}
.shop-sponsored-mid-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 18px;
  border-radius: 16px;
  border: 1.5px solid #99f6e4;
  background: linear-gradient(130deg, #042f2e 0%, #0f766e 55%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.16);
}
.shop-sponsored-mid-banner-copy {
  display: grid;
  gap: 4px;
  max-width: 720px;
}
.shop-sponsored-mid-banner-copy h3 {
  margin: 2px 0 0;
  font-size: 1.15rem;
  font-weight: 850;
  color: #ffffff;
}
.shop-sponsored-mid-banner-copy p {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.88);
}
.shop-sponsored-mid-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.desktop-product-card.is-sponsored-interleaved-card {
  border-color: #fed7aa;
  box-shadow: 0 3px 12px rgba(234, 88, 12, 0.09);
}
.desktop-product-sponsored-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.78);
  color: #fde68a;
  font-size: 10px;
  font-weight: 850;
  backdrop-filter: blur(4px);
}
.shop-smart-ad-popup-toast {
  position: fixed;
  left: 18px;
  right: auto;
  bottom: 18px;
  z-index: 1200;
  width: 320px;
  max-width: calc(100vw - 28px);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid #fed7aa;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
  display: grid;
  gap: 8px;
}
.shop-smart-ad-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.shop-smart-ad-popup-head small {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-right: auto;
}
.shop-smart-ad-popup-body {
  display: grid;
  gap: 4px;
}
.shop-smart-ad-popup-body strong {
  font-size: 13px;
  font-weight: 850;
  color: #0f172a;
  line-height: 1.3;
}
.shop-smart-ad-popup-body p {
  margin: 0;
  font-size: 11.5px;
  color: #475569;
  line-height: 1.35;
}
.shop-smart-ad-popup-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.shop-smart-ad-popup-price b {
  color: #e11d48;
  font-size: 14px;
  font-weight: 850;
}
.shop-smart-ad-popup-price s {
  color: #94a3b8;
  font-size: 11.5px;
}

/* Balanced Hero Banner Right Image Stage & Unobstructed Deal Showcase Card */
.shop-hero-art-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  z-index: 2;
  padding: 0;
  margin: 0;
}
.shop-hero-art-showcase {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 13px 8px 8px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.44);
  border: 1.5px solid rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.shop-hero-art-showcase:hover {
  transform: translateY(-2px);
  border-color: #fde047;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}
.shop-hero-art-showcase.is-badge-hidden {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.shop-hero-art-stage .shop-hero-art {
  position: relative;
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  padding: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.shop-hero-art-img-host {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.shop-hero-art-info-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  max-width: 185px;
}
.shop-hero-art-deal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
}
.shop-hero-art-rotate-btn {
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.18s ease;
}
.shop-hero-art-rotate-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #ffffff;
  transform: rotate(90deg);
}
.shop-hero-art-deal-badge {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2e55 0%, #ff6a00 100%);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.24);
}
.shop-hero-art-deal-badge.style-royal_gold {
  background: linear-gradient(135deg, #1c1917 0%, #b45309 100%);
  color: #fef08a;
  border: 1px solid #fde047;
}
.shop-hero-art-deal-badge.style-emerald_teal {
  background: linear-gradient(135deg, #047857 0%, #0284c7 100%);
  color: #ffffff;
}
.shop-hero-art-deal-badge.style-cyber_purple {
  background: linear-gradient(135deg, #4338ca 0%, #9333ea 100%);
  color: #ffffff;
}
.shop-hero-art-prod-title {
  font-size: 13px;
  font-weight: 850;
  color: #ffffff;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}
.shop-hero-art-prod-price {
  font-size: 15px;
  font-weight: 900;
  color: #fde047;
  line-height: 1.2;
  white-space: nowrap;
}
.shop-hero-art-prod-sub {
  font-size: 11px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}
.shop-hero-art-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.2px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  z-index: 3;
}
.shop-hero-art-corner {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.shop-hero-art-corner.is-top-right {
  top: -10px;
  right: -10px;
}
.shop-hero-art-corner.is-bottom-right {
  bottom: -10px;
  right: -10px;
}
.shop-hero-art-corner.is-top-left {
  top: -10px;
  left: -10px;
}
.shop-hero-art-pill.style-flame_red,
.shop-hero-art-corner.style-flame_red {
  background: linear-gradient(135deg, #ff2e55 0%, #ff6a00 100%);
  color: #ffffff;
  border: 1.5px solid #ffe4e6;
}
.shop-hero-art-pill.style-royal_gold,
.shop-hero-art-corner.style-royal_gold {
  background: linear-gradient(135deg, #1c1917 0%, #b45309 100%);
  color: #fef08a;
  border: 1.5px solid #fde047;
}
.shop-hero-art-pill.style-emerald_teal,
.shop-hero-art-corner.style-emerald_teal {
  background: linear-gradient(135deg, #047857 0%, #0284c7 100%);
  color: #ffffff;
  border: 1.5px solid #99f6e4;
}
.shop-hero-art-pill.style-cyber_purple,
.shop-hero-art-corner.style-cyber_purple {
  background: linear-gradient(135deg, #4338ca 0%, #9333ea 100%);
  color: #ffffff;
  border: 1.5px solid #e9d5ff;
}
.shop-hero-art-pill.style-glass_dark,
.shop-hero-art-corner.style-glass_dark {
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.shop-hero-art-pill.is-below {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  color: #fef08a;
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 10.8px;
}
.ui-preview-hero-flex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.shop-hero-art-stage.is-preview-stage {
  gap: 4px;
  padding: 2px;
}
.shop-hero-art.is-preview-art {
  width: 66px !important;
  height: 66px !important;
  border-radius: 12px !important;
  padding: 4px !important;
}
.ui-preview-art-icon {
  font-size: 26px;
}
.shop-hero-art-stage.is-preview-stage .shop-hero-art-pill,
.shop-hero-art-stage.is-preview-stage .shop-hero-art-corner {
  font-size: 8.5px;
  padding: 2px 6px;
}
.ui-art-badge-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px dashed #99f6e4;
  background: #f0fdf4;
}
.ui-art-badge-presets small {
  font-size: 11px;
  font-weight: 800;
  color: #0f766e;
  margin-right: 2px;
}

/* 9 Content Safety Categories 3x3 Responsive Grid & Left Sidebar Sub-Pages Layout */
.content-safety-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 12px;
}
.content-safety-categories-grid .web-admin-perm-box .ui-style-subgrid {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.content-safety-sidebar-layout {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  transition: grid-template-columns 0.2s ease, gap 0.2s ease;
}
.content-safety-sidebar-layout.is-sidebar-collapsed {
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
}
.content-safety-left-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px;
  position: sticky;
  top: 10px;
  overflow: visible;
}
.content-safety-sidebar-layout.is-sidebar-collapsed .content-safety-left-menu {
  position: sticky;
  top: 10px;
  z-index: 30;
  width: 14px;
  min-width: 14px;
  min-height: 40px;
  padding: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.content-safety-sidebar-layout.is-sidebar-collapsed .content-safety-left-menu > :not(.content-safety-sidebar-toggle) {
  display: none !important;
}
.content-safety-sidebar-layout.is-sidebar-collapsed .content-safety-sidebar-toggle span {
  transform: rotate(180deg);
}
.content-safety-left-menu-head {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  padding: 4px 18px 8px 6px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 2px;
}
.content-safety-left-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.content-safety-left-item:hover {
  border-color: #38bdf8;
  background: #f0f9ff;
  transform: translateX(2px);
}
.content-safety-left-item.is-active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-color: #0369a1;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
.content-safety-left-item-label {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.content-safety-left-item-badge {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
}
.content-safety-left-item.is-active .content-safety-left-item-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.content-safety-right-workspace {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.content-safety-compact-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 10px;
}
.content-safety-compact-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.content-safety-scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  user-select: none;
  transition: all 0.14s ease;
}
.content-safety-scope-pill.is-on {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}
.content-safety-scope-pill input {
  margin: 0;
  width: 13px;
  height: 13px;
  accent-color: #059669;
}
.content-safety-drawer-box {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  margin-bottom: 10px;
}
.content-safety-kw-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
}
.content-safety-kw-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
  color: #1e293b;
}
.content-safety-kw-chip button {
  border: 0;
  background: transparent;
  color: #e11d48;
  font-weight: 800;
  font-size: 12px;
  padding: 0 2px;
  cursor: pointer;
  line-height: 1;
}
.content-safety-quick-add-strip {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) minmax(175px, 1fr) minmax(210px, 1.5fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  margin-bottom: 10px;
}
@media (max-width: 1024px) {
  .content-safety-sidebar-layout,
  .content-safety-sidebar-layout.is-sidebar-collapsed {
    grid-template-columns: 1fr;
  }
  .content-safety-left-menu {
    position: static;
  }
  .content-safety-quick-add-strip {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .content-safety-categories-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   UI CUSTOMIZER TYPOGRAPHY, COLOR HIERARCHY & GROUPED FOCUS CARDS
   (/shop/web-admin?tab=ui_customizer — Web Storefront & Mobile App Customizer)
   ========================================================================== */
.ui-customizer-page-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid #bae6fd;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 58%, #f0fdf4 100%);
  box-shadow: 0 3px 12px rgba(2, 132, 199, 0.07);
}
.ui-customizer-page-header.is-tone-emerald {
  border-color: #a7f3d0;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 58%, #f0f9ff 100%);
  box-shadow: 0 3px 12px rgba(5, 150, 105, 0.07);
}
.ui-customizer-page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.ui-customizer-page-kicker {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: #0284c7;
  color: #ffffff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ui-customizer-page-header.is-tone-emerald .ui-customizer-page-kicker {
  background: #059669;
}
.ui-customizer-page-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f766e;
  font-size: 11px;
  font-weight: 750;
}
.ui-customizer-page-title {
  margin: 0 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  color: #0c4a6e !important;
  letter-spacing: -0.01em;
  line-height: 1.28;
}
.ui-customizer-page-header.is-tone-emerald .ui-customizer-page-title {
  color: #064e3b !important;
}
.ui-customizer-page-desc {
  margin: 0 !important;
  font-size: 12.2px !important;
  font-weight: 500 !important;
  color: #475569 !important;
  line-height: 1.45;
}

.ui-customizer-structured-form {
  display: flex;
  flex-direction: column;
  gap: 14px !important;
}

.ui-customizer-group-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 13px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0284c7;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.ui-customizer-group-card.is-group-blue {
  border-left-color: #0284c7;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 42px);
}
.ui-customizer-group-card.is-group-emerald {
  border-left-color: #059669;
  background: linear-gradient(180deg, #f4fdf9 0%, #ffffff 42px);
}
.ui-customizer-group-card.is-group-indigo {
  border-left-color: #4f46e5;
  background: linear-gradient(180deg, #f7f7ff 0%, #ffffff 42px);
}
.ui-customizer-group-card.is-group-amber {
  border-left-color: #d97706;
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 42px);
}
.ui-customizer-group-card.is-group-rose {
  border-left-color: #e11d48;
  background: linear-gradient(180deg, #fff8f9 0%, #ffffff 42px);
}

.ui-customizer-group-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e2e8f0;
}
.ui-customizer-group-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 1px;
}
.ui-customizer-group-badge.is-badge-blue {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}
.ui-customizer-group-badge.is-badge-emerald {
  background: #d1fae5;
  color: #047857;
  border: 1px solid #6ee7b7;
}
.ui-customizer-group-badge.is-badge-indigo {
  background: #e0e7ff;
  color: #4338ca;
  border: 1px solid #a5b4fc;
}
.ui-customizer-group-badge.is-badge-amber {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}
.ui-customizer-group-badge.is-badge-rose {
  background: #ffe4e6;
  color: #be123c;
  border: 1px solid #fda4af;
}

.ui-customizer-group-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ui-customizer-group-title {
  margin: 0 !important;
  font-size: 13.8px !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  line-height: 1.3;
}
.ui-customizer-group-card.is-group-blue .ui-customizer-group-title {
  color: #0c4a6e !important;
}
.ui-customizer-group-card.is-group-emerald .ui-customizer-group-title {
  color: #064e3b !important;
}
.ui-customizer-group-card.is-group-indigo .ui-customizer-group-title {
  color: #312e81 !important;
}
.ui-customizer-group-card.is-group-amber .ui-customizer-group-title {
  color: #78350f !important;
}
.ui-customizer-group-card.is-group-rose .ui-customizer-group-title {
  color: #881337 !important;
}
.ui-customizer-group-subtitle {
  margin: 0 !important;
  font-size: 11.4px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  line-height: 1.38;
}

.ui-customizer-group-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Clear Visual Distinction Between Field Title (Label) and Field Content (Input/Select Value) */
.ui-customizer-field {
  display: flex;
  flex-direction: column;
  gap: 5px !important;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.ui-customizer-field:focus-within {
  background: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}
.ui-customizer-field.is-full-span {
  grid-column: 1 / -1;
}
.ui-customizer-field-caption {
  font-size: 11.2px !important;
  font-weight: 800 !important;
  color: #0369a1 !important;
  letter-spacing: 0.015em;
  line-height: 1.3;
}
.ui-customizer-group-card.is-group-emerald .ui-customizer-field-caption {
  color: #047857 !important;
}
.ui-customizer-group-card.is-group-indigo .ui-customizer-field-caption {
  color: #4338ca !important;
}
.ui-customizer-group-card.is-group-amber .ui-customizer-field-caption {
  color: #b45309 !important;
}
.ui-customizer-group-card.is-group-rose .ui-customizer-field-caption {
  color: #be123c !important;
}

.ui-customizer-value-input,
.ui-customizer-value-select {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 7px !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  line-height: 1.38;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}
.ui-customizer-value-select {
  font-weight: 600 !important;
  color: #1e293b !important;
}
.ui-customizer-value-input:focus,
.ui-customizer-value-select:focus {
  outline: none !important;
  border-color: #0284c7 !important;
  background: #ffffff !important;
}

/* Toggle Switch Cards for Checkboxes (Distinct from Input Labels) */
.ui-customizer-toggle-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 8px !important;
  padding: 8px 11px;
  border-radius: 9px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ui-customizer-toggle-card.is-full-span {
  grid-column: 1 / -1;
}
.ui-customizer-toggle-card:hover {
  border-color: #38bdf8;
  background: #f0f9ff;
}
.ui-customizer-toggle-card.is-checked {
  background: #ecfdf5;
  border-color: #6ee7b7;
}
.ui-customizer-toggle-card input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #059669;
  flex-shrink: 0;
}
.ui-customizer-toggle-text {
  flex: 1 1 auto;
  font-size: 12.2px;
  font-weight: 700;
  color: #334155;
  line-height: 1.32;
}
.ui-customizer-toggle-card.is-checked .ui-customizer-toggle-text {
  color: #064e3b;
}
.ui-customizer-toggle-state {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}
.ui-customizer-toggle-card.is-checked .ui-customizer-toggle-state {
  background: #10b981;
  color: #ffffff;
}

/* ==========================================================================
   RIGHT-COLUMN HORIZONTAL HALF-HEIGHT BANNER AD
   (Full width of main product column in Category, Mall & Flash Sale pages,
    1/2 height of homepage hero banner = ~115px, never shown on Product Detail)
   ========================================================================== */
.shop-right-col-half-banner {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  min-height: 115px;
  max-height: 128px;
  padding: 14px 20px;
  margin-bottom: 14px;
  border-radius: var(--radius-md, 12px);
  background: linear-gradient(130deg, #042f2e 0%, #0f766e 54%, #0284c7 100%);
  color: #ffffff;
  border: 1.5px solid rgba(153, 246, 228, 0.55);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.shop-right-col-half-banner:hover {
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
}
.shop-right-col-half-banner.is-height-half_hero {
  min-height: 115px;
  max-height: 128px;
}
.shop-right-col-half-banner.is-height-compact_96 {
  min-height: 94px;
  max-height: 104px;
  padding: 10px 18px;
}
.shop-right-col-half-banner.is-height-medium_136 {
  min-height: 134px;
  max-height: 148px;
  padding: 16px 22px;
}
.shop-right-col-half-banner.is-theme-emerald_cyan {
  background: linear-gradient(130deg, #042f2e 0%, #0f766e 54%, #0284c7 100%);
  border-color: rgba(153, 246, 228, 0.55);
}
.shop-right-col-half-banner.is-theme-royal_gold {
  background: linear-gradient(130deg, #1c1917 0%, #442f16 54%, #b45309 100%);
  border-color: rgba(253, 224, 71, 0.55);
}
.shop-right-col-half-banner.is-theme-rose_festival {
  background: linear-gradient(130deg, #161823 0%, #9f1239 52%, #ff2e55 100%);
  border-color: rgba(254, 205, 211, 0.55);
}
.shop-right-col-half-banner.is-theme-cyber_indigo {
  background: linear-gradient(130deg, #1e1b4b 0%, #4338ca 52%, #9333ea 100%);
  border-color: rgba(196, 181, 253, 0.55);
}
.shop-right-col-half-banner.is-theme-viet_crimson {
  background: linear-gradient(130deg, #7f1d1d 0%, #b91c1c 56%, #d97706 100%);
  border-color: rgba(253, 230, 138, 0.55);
}

.shop-right-col-half-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}
.shop-right-col-half-banner-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.shop-right-col-context-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #f8fafc;
  font-size: 10.5px;
  font-weight: 750;
  white-space: nowrap;
}
.shop-right-col-advertiser {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}
.shop-right-col-half-banner-title {
  margin: 0 !important;
  font-size: 15.5px !important;
  font-weight: 850 !important;
  color: #ffffff !important;
  line-height: 1.28;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-right-col-half-banner-sub {
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-right-col-half-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.shop-right-col-product-spotlight {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 11px 6px 7px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.42);
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(8px);
  cursor: pointer;
  max-width: 285px;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.shop-right-col-product-spotlight:hover {
  transform: translateY(-1px);
  border-color: #fde047;
  background: rgba(15, 23, 42, 0.58);
}
.shop-right-col-product-thumb {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.shop-right-col-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.shop-right-col-product-thumb-fallback {
  font-size: 22px;
}
.shop-right-col-product-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.shop-right-col-product-deal-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.shop-right-col-product-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  padding: 1.5px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2e55 0%, #ff6a00 100%);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}
.shop-right-col-product-name {
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}
.shop-right-col-product-price {
  font-size: 12.5px;
  font-weight: 900;
  color: #fde047;
  line-height: 1.2;
  white-space: nowrap;
}
.shop-right-col-product-sub {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-right-col-voucher-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(254, 240, 138, 0.18);
  border: 1px dashed #fde047;
  color: #fef08a;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.shop-right-col-cta-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid #ffffff;
  background: #ffffff;
  color: #0f172a;
  font-size: 12.2px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.14s ease, background 0.14s ease;
}
.shop-right-col-cta-btn:hover {
  transform: translateY(-1px);
  background: #fef08a;
  border-color: #fef08a;
  color: #0f172a;
}
.shop-right-col-top-right-controls {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.shop-right-col-top-right-controls .shop-right-col-half-banner-badges { margin: 0; }
.shop-right-col-slide-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.shop-right-col-slide-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  min-height: 6px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.shop-right-col-slide-dot:hover {
  background: rgba(255, 255, 255, 0.72);
}
.shop-right-col-slide-dot.is-active {
  width: 14px;
  background: rgba(255, 255, 255, 0.78);
}
.shop-right-col-close-btn {
  position: static;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.shop-right-col-close-btn:hover {
  background: rgba(15, 23, 42, 0.42);
  color: rgba(255, 255, 255, 0.95);
}
@media (max-width: 860px) {
  .shop-right-col-half-banner {
    flex-direction: column;
    align-items: flex-start;
    max-height: none;
    gap: 10px;
  }
  .shop-right-col-half-banner-title {
    white-space: normal;
  }
}

/* ==========================================================================
   ANTI-OVERFLOW AD FORMATS GALLERY & COLLAPSIBLE LEFT SIDEBAR WORKSPACE
   (/shop/web-admin?tab=ads_manager — Tab 2: 13 Hình thức & Cơ chế Hiển thị)
   ========================================================================== */
.ads-formats-anti-overflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
  gap: 12px;
  min-width: 0;
}
@media (max-width: 960px) {
  .ads-formats-anti-overflow-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ads-format-card {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px !important;
  border-radius: 11px !important;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.ads-format-card:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.1);
}

.ads-format-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.ads-format-card-title-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  flex: 1 1 240px;
  min-width: 0;
  cursor: pointer;
}
.ads-format-card-title-label input[type="checkbox"] {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: #059669;
}
.ads-format-card-title {
  font-size: 13px;
  font-weight: 850;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.ads-format-card-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  flex-shrink: 0;
}
.web-admin-mini-badge.is-badge-on {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.ads-format-meta-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #cbd5e1;
  min-width: 0;
}
.ads-format-meta-row {
  font-size: 11.4px;
  font-weight: 650;
  color: #334155;
  line-height: 1.38;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.ads-format-desc {
  margin: 0 !important;
  font-size: 12px !important;
  color: #475569 !important;
  line-height: 1.44;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ads-format-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px dashed #cbd5e1;
  margin-top: auto;
}
.ads-format-card-actions > button {
  white-space: nowrap;
  max-width: 100%;
}

/* ==========================================================================
   UI CUSTOMIZER COLLAPSIBLE LEFT SUB-MENU & HORIZONTAL CATEGORY SWITCHER
   (/shop/web-admin?tab=ui_customizer — Left Sub-Menu + ‹/› Toggle + Horiz Bar)
   ========================================================================== */
.web-admin-customizer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(350px, 0.85fr);
  gap: 14px;
  align-items: start;
}
@media (max-width: 1200px) {
  .web-admin-customizer-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ui-customizer-sidebar-layout {
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 12px;
}
.ui-customizer-sidebar-layout.is-sidebar-collapsed {
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
}
.ui-customizer-left-menu {
  padding: 9px;
  gap: 5px;
}
.ui-customizer-left-item-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.ui-customizer-left-item-sub {
  display: block;
  font-size: 10.4px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.28;
}
.content-safety-left-item.is-active .ui-customizer-left-item-sub {
  color: rgba(255, 255, 255, 0.86);
}

.ui-customizer-horiz-nav-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  overflow-x: auto;
  scrollbar-width: thin;
}
.ui-customizer-toggle-menu-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  font-size: 11.3px !important;
  font-weight: 800 !important;
  background: #ffffff !important;
  color: #0369a1 !important;
  border: 1.5px solid #7dd3fc !important;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.08);
  transition: all 0.15s ease;
}
.ui-customizer-toggle-menu-pill:hover {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
}
.ui-customizer-horiz-cat-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  min-width: 0;
}
.ui-customizer-horiz-cat-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 11.4px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ui-customizer-horiz-cat-pill:hover {
  border-color: #38bdf8;
  background: #f0f9ff;
  color: #0369a1;
}
.ui-customizer-horiz-cat-pill.is-active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-color: #0369a1;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.22);
}
.ui-customizer-horiz-cat-badge {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
}
.ui-customizer-horiz-cat-pill.is-active .ui-customizer-horiz-cat-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}






/* Shared advertising finance forms: one width owner, table scroll stays local. */
.ads-finance-workflow { min-width: 0; max-width: 100%; }
.ads-finance-workflow .web-admin-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin: 12px 0; }
.ads-finance-workflow label { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ads-finance-workflow input, .ads-finance-workflow select { box-sizing: border-box; max-width: 100%; min-width: 0; }
.ads-finance-workflow [hidden] { display: none !important; }

/* ==========================================================================
   DEMO ADVERTISER 13 AD CATEGORIES CONFIGURATOR & LIVE STOREFRONT TEST SUITE
   (Tài khoản Demo: Mi SHOP — Nhà Quảng Cáo · CUST-ADS-001 · #1 -> #13)
   ========================================================================== */
.demo-13ads-test-configurator {
  background: linear-gradient(135deg, #f0fdf4 0%, #f0f9ff 55%, #ffffff 100%);
  border: 1.5px solid #6ee7b7;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
  box-shadow: 0 3px 12px rgba(5, 150, 105, 0.08);
  box-sizing: border-box;
  max-width: 100%;
}
.demo-13ads-test-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.demo-13ads-test-title-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.demo-13ads-account-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #065f46;
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}
.demo-13ads-main-title {
  font-size: 13px;
  font-weight: 850;
  color: #0f172a;
}
.demo-13ads-test-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.demo-13ads-test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #a7f3d0;
}
.demo-13ads-test-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.demo-13ads-test-card.is-on {
  border-color: #6ee7b7;
  background: #ffffff;
}
.demo-13ads-test-card.is-off {
  opacity: 0.62;
  background: #f8fafc;
}
.demo-13ads-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.demo-13ads-chk-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.8px;
  color: #0f172a;
  cursor: pointer;
}
.demo-13ads-chk-label input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #059669;
}
.demo-13ads-state-pill {
  font-size: 9.8px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  white-space: nowrap;
}
.demo-13ads-state-pill.is-on {
  background: #d1fae5;
  color: #065f46;
}
.demo-13ads-card-surface {
  font-size: 10.6px;
  color: #475569;
  line-height: 1.32;
}
.demo-13ads-trigger-btn {
  align-self: flex-start;
  margin-top: 2px;
}

/* Highlight Pulse Animation when testing an Ad Category */
@keyframes demoAdHighlightPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
  25%, 75% { box-shadow: 0 0 0 4px #f59e0b, 0 8px 24px rgba(245, 158, 11, 0.35); }
}
.is-demo-ad-highlight-pulse {
  animation: demoAdHighlightPulse 1.3s ease-in-out 2;
}

/* Multi-Format Live Showcase Hub (#1 Post Sponsored, #3 Video Footer, #6 Right-Col Top, #12 Chat Promo Card) */
.demo-13ads-showcase-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 12px;
}
.demo-13ads-live-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.demo-13ads-live-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.demo-13ads-live-card-head small {
  font-size: 10.5px;
  font-weight: 750;
  color: #64748b;
}
.demo-13ads-live-card-body h4 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 850;
  color: #0f172a;
  line-height: 1.3;
}
.demo-13ads-live-card-body p {
  margin: 0;
  font-size: 11.8px;
  color: #475569;
  line-height: 1.4;
}
.demo-13ads-inline-product-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: 11.5px;
}
.demo-13ads-inline-price {
  font-weight: 900;
  color: #e11d48;
}
.demo-13ads-live-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

/* Mini Video Player with Lower-Third Video Footer Banner (#3) */
.demo-13ads-live-card[data-demo-ad-cat="video_footer_banner"] {
  justify-content: flex-start;
}
.demo-13ads-mini-video-player {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 215px;
  border-radius: 10px;
  background: #0f172a;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.demo-13ads-mini-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.demo-13ads-video-lower-third {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  width: auto;
  max-width: none;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.demo-13ads-lt-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
  min-width: 0;
  flex: 1 1 auto;
}
.demo-13ads-lt-badge {
  font-size: 9.5px;
  font-weight: 850;
  color: #fde047;
}
.demo-13ads-lt-copy strong {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-13ads-video-lower-third .demo-13ads-lt-cta,
.demo-13ads-video-lower-third button {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 4px 10px;
  min-height: 26px;
  font-size: 11px;
  line-height: 1.2;
  border-radius: 7px;
}

/* Pinned Ribbon for #10 Flash Sale Slot & #8 Interleaved Product Card */
.demo-13ads-pinned-card-ribbon {
  padding: 3px 8px;
  background: linear-gradient(90deg, #ea580c 0%, #e11d48 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 850;
  text-align: center;
  letter-spacing: 0.01em;
}
.demo-13ads-pinned-card-ribbon.is-interleaved {
  background: linear-gradient(90deg, #0f766e 0%, #0284c7 100%);
}

/* Hạng mục #9: Search & Category Top Sponsored Strip */
.shop-search-top-sponsored-strip {
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 50%, #ffffff 100%);
  border: 1.5px solid #fcd34d;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-search-top-sponsored-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #78350f;
}
.shop-search-top-sponsored-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}
.shop-search-top-sponsored-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #fde68a;
  cursor: pointer;
  font-size: 12px;
  transition: border-color 0.14s ease, transform 0.14s ease;
}
.shop-search-top-sponsored-item:hover {
  border-color: #d97706;
  transform: translateY(-1px);
}

/* Hạng mục #6: Product Detail Right-Column Top Ad Spotlight */
.shop-product-right-top-ad-spotlight {
  padding: 10px 13px;
  margin-bottom: 12px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
  border: 1.5px solid #7dd3fc;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shop-product-right-top-ad-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.shop-product-right-top-ad-head small {
  font-size: 10.5px;
  font-weight: 750;
  color: #0369a1;
  margin-right: auto;
}
.shop-product-right-top-ad-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.8px;
  color: #334155;
}
.shop-product-right-top-ad-body strong {
  font-size: 12.8px;
  color: #0f172a;
}

/* Hạng mục #11: Floating Corner Badge / Mini Floating Widget */
.shop-floating-corner-ad-widget {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 1190;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.shop-floating-corner-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid #fde047;
  background: linear-gradient(135deg, #0f766e 0%, #0284c7 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.25);
}
.shop-floating-corner-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  font-size: 11px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.shop-floating-corner-drawer {
  display: none;
  width: 280px;
  padding: 11px 13px;
  border-radius: 13px;
  background: #ffffff;
  border: 1.5px solid #5eead4;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #334155;
}
.shop-floating-corner-ad-widget.is-expanded .shop-floating-corner-drawer {
  display: flex;
}

/* Hạng mục #5: Fullscreen Video Takeover Modal */
.demo-fullscreen-video-ad-frame {
  width: min(420px, 94vw);
  background: #0f172a;
  color: #ffffff;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
}
.demo-fullscreen-video-ad-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.9);
}
.demo-fullscreen-skip-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.demo-fullscreen-skip-btn.is-ready {
  background: #fe2c55;
  border-color: #fda4af;
}
.demo-fullscreen-video-stage {
  width: 100%;
  height: 250px;
  background: #000000;
  position: relative;
}
.demo-fullscreen-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.demo-fullscreen-video-bottom-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}
.demo-fullscreen-advertiser-tag {
  color: #5eead4;
  font-size: 11px;
  font-weight: 800;
}
.demo-fullscreen-video-bottom-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 850;
  color: #ffffff;
}
.demo-fullscreen-video-bottom-card p {
  margin: 0;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}
.demo-fullscreen-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.demo-fullscreen-price {
  font-size: 16px;
  font-weight: 900;
  color: #fde047;
}
.demo-fullscreen-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* Hạng mục #12: Chat & Notification Promo Card */
.shop-chat-promo-ad-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff1f2 0%, #fffbeb 100%);
  border: 1.5px solid #fda4af;
}
.shop-chat-promo-ad-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.shop-chat-promo-ad-card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 850;
  color: #881337;
}
.shop-chat-promo-ad-card p {
  margin: 0;
  font-size: 12.2px;
  color: #475569;
  line-height: 1.42;
}
.shop-chat-promo-ad-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #be123c;
}
.shop-chat-promo-ad-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}


/* Multi-row stacked Thao tác column to minimize horizontal column width */
td.hr-sheet-cell-actions.is-multi-row-actions {
  white-space: normal;
  width: 136px;
  min-width: 126px;
  max-width: 150px;
  vertical-align: middle;
}
td.hr-sheet-cell-actions.is-multi-row-actions > * + * {
  margin-left: 0 !important;
}
.ads-table-multi-row-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  min-width: 118px;
  max-width: 142px;
}
.ads-table-multi-row-actions > button,
.ads-table-multi-row-actions > a,
.ads-table-multi-row-actions > .btn-xs {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0 !important;
  padding: 4px 8px;
  font-size: 11.2px;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
}
.ads-table-multi-row-actions > input,
.ads-table-multi-row-actions > select {
  width: 100%;
  min-width: 118px;
  font-size: 11px;
  padding: 3px 6px;
}

/* Price Sort Dropdown in .shop-sort-bar (defaults to displaying "Giá: Thấp → Cao") */
.shop-sort-price-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.shop-sort-price-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 158px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.shop-sort-price-trigger:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.shop-sort-price-trigger.is-active:hover {
  color: #ffffff;
}
.shop-sort-price-caret {
  font-size: 0.78rem;
  line-height: 1;
  opacity: 0.85;
  transition: transform 0.16s ease;
}
.shop-sort-price-dropdown.is-open .shop-sort-price-caret {
  transform: rotate(180deg);
}
.shop-sort-price-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  width: max-content;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  padding: 4px;
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.shop-sort-price-dropdown:hover .shop-sort-price-menu,
.shop-sort-price-dropdown.is-open .shop-sort-price-menu {
  display: flex;
}
.shop-sort-price-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 7px 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.shop-sort-price-option:hover {
  background: #fff1f2;
  color: var(--brand);
}
.shop-sort-price-option.is-selected {
  background: #fff1f2;
  color: var(--brand);
  font-weight: 800;
}
.shop-sort-price-check {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--brand);
}

/* Sponsored badge overlaid inside the product avatar box (.desktop-product-thumb) so sponsored product cards keep the exact same 1:1 dimensions as organic product cards */
.demo-13ads-avatar-sponsored-badge {
  position: absolute !important;
  left: 6px;
  bottom: 6px;
  z-index: 3;
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - 12px);
  padding: 2.5px 7px !important;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.92) 0%, rgba(2, 132, 199, 0.92) 100%);
  color: #ffffff;
  font-size: 9.8px;
  font-weight: 850;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
}
.demo-13ads-avatar-sponsored-badge.is-flash-slot {
  background: linear-gradient(90deg, rgba(234, 88, 12, 0.94) 0%, rgba(225, 29, 72, 0.94) 100%);
}
.desktop-product-thumb > .same-sponsored-ad-label,
.desktop-product-thumb > .demo-13ads-avatar-sponsored-badge {
  width: auto !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center;
}

/* Compact Active Filter Bar ("Đang lọc theo") — centered evenly between top sort bar and bottom product grid */
.shop-sort-bar:has(+ .shop-active-filters-bar) {
  margin-bottom: 10px;
}

.shop-active-filters-bar {
  gap: 5px;
  padding: 2px 9px;
  min-height: 24px;
  margin-top: 0;
  margin-bottom: 10px;
  border-radius: 6px;
}

.shop-active-filters-bar .chip-bar-label {
  font-size: 0.71rem;
  line-height: 1.2;
}

.shop-active-filter-chip {
  padding: 1px 7px;
  font-size: 0.69rem;
  line-height: 1.3;
}

.shop-active-filter-clear-link {
  font-size: 0.71rem;
  line-height: 1.2;
  padding: 0 2px;
}

/* Hình 2 Deal Pill inside Product Spotlight Thumbnail + Redesigned Cohesive Sponsored Strip */
.shop-right-col-product-thumb-deal-pill {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  padding: 1.5px 4px;
  border-radius: 5px;
  background: linear-gradient(135deg, #ff2e55 0%, #ff6a00 100%);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.shop-search-top-sponsored-strip {
  position: relative;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: linear-gradient(130deg, #042f2e 0%, #0f766e 54%, #0284c7 100%);
  border: 1.5px solid rgba(153, 246, 228, 0.5);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-right-col-close-btn.is-top-strip-close {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 3;
}

.shop-search-top-sponsored-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}

.shop-search-top-sponsored-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 11px;
  padding: 8px 12px 8px 8px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.42);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s ease;
}

.shop-search-top-sponsored-item:hover {
  border-color: #fde047;
  background: rgba(15, 23, 42, 0.56);
  transform: translateY(-1px);
}

.shop-search-top-sponsored-thumb {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 9px;
  background: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.shop-search-top-sponsored-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-search-top-sponsored-ad-tag {
  position: absolute;
  left: 3px;
  bottom: 3px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(15, 118, 110, 0.92);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 850;
  line-height: 1.2;
}

.shop-search-top-sponsored-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}

.shop-search-top-sponsored-title {
  font-size: 12.2px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-search-top-sponsored-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-search-top-sponsored-price {
  font-size: 13px;
  font-weight: 900;
  color: #fde047;
  line-height: 1.2;
}

.shop-search-top-sponsored-meta {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.84);
}

.shop-search-top-sponsored-cta {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid #ffffff;
  background: #ffffff;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.shop-search-top-sponsored-cta:hover {
  background: #fef08a;
  border-color: #fef08a;
}

/* Compact Top Pagination in Sort Bar (<< currentPage/totalPages >>) */
.shop-sort-mini-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.shop-sort-mini-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 28px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.shop-sort-mini-page-btn:hover:not(:disabled) {
  border-color: var(--brand, #fe2c55);
  color: var(--brand, #fe2c55);
  background: #fff1f2;
}

.shop-sort-mini-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f8fafc;
}

.shop-sort-mini-page-status {
  display: inline-flex;
  align-items: baseline;
  font-size: 0.84rem;
  font-weight: 700;
  color: #475569;
  padding: 0 2px;
  white-space: nowrap;
}

.shop-sort-mini-page-current {
  color: var(--brand, #fe2c55);
  font-weight: 850;
}

.shop-sort-mini-page-total {
  color: #475569;
  font-weight: 700;
}

/* ==========================================================================
   Compact Seller Ads Campaigns Table (/shop/manage?view=sellerAds&subtab=my_campaigns)
   Eliminate horizontal scrollbar via fixed proportional columns & collapsible cancel form
   ========================================================================== */
.seller-ads-portal-hub .hr-spreadsheet-table {
  width: 100%;
  font-size: 11.6px;
}

.seller-ads-portal-hub .hr-spreadsheet-table th {
  padding: 7px 6px;
  font-size: 11.4px;
  white-space: normal;
  line-height: 1.25;
  vertical-align: middle;
}

.seller-ads-portal-hub .hr-spreadsheet-table td {
  padding: 6px 6px;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .hr-spreadsheet-table.is-seller-ads-campaigns-table {
    table-layout: fixed;
    width: 100%;
  }
  .hr-spreadsheet-table.is-seller-ads-campaigns-table th.col-ads-code,
  .hr-spreadsheet-table.is-seller-ads-campaigns-table td.col-ads-code {
    width: 16%;
  }
  .hr-spreadsheet-table.is-seller-ads-campaigns-table th.col-ads-product,
  .hr-spreadsheet-table.is-seller-ads-campaigns-table td.col-ads-product {
    width: 31%;
  }
  .hr-spreadsheet-table.is-seller-ads-campaigns-table th.col-ads-dates,
  .hr-spreadsheet-table.is-seller-ads-campaigns-table td.col-ads-dates {
    width: 11%;
  }
  .hr-spreadsheet-table.is-seller-ads-campaigns-table th.col-ads-fee,
  .hr-spreadsheet-table.is-seller-ads-campaigns-table td.col-ads-fee {
    width: 11%;
  }
  .hr-spreadsheet-table.is-seller-ads-campaigns-table th.col-ads-status,
  .hr-spreadsheet-table.is-seller-ads-campaigns-table td.col-ads-status {
    width: 13%;
  }
  .hr-spreadsheet-table.is-seller-ads-campaigns-table th.col-ads-actions,
  .hr-spreadsheet-table.is-seller-ads-campaigns-table td.col-ads-actions {
    width: 18%;
    min-width: 0;
    max-width: none;
  }
}

.is-seller-ads-campaigns-table .is-placement-code {
  font-size: 10.2px;
  line-height: 1.25;
  color: #64748b;
  word-break: break-all;
  overflow-wrap: anywhere;
  margin-top: 2px;
}

.is-seller-ads-campaigns-table .seller-ads-col-prod-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11.8px;
  line-height: 1.3;
  color: #0f172a;
}

.is-seller-ads-campaigns-table .seller-ads-col-headline {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 10.8px;
  line-height: 1.28;
  color: #475569;
  margin-top: 2px;
}

.is-seller-ads-campaigns-table .seller-ads-date-line {
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

.is-seller-ads-campaigns-table .seller-ads-approval-lines {
  font-size: 10.6px;
  line-height: 1.3;
  margin-top: 3px;
  white-space: pre-line;
}

.is-seller-ads-campaigns-table .ads-table-multi-row-actions {
  width: 100%;
  min-width: 0;
  max-width: none;
  gap: 4px;
}

.is-seller-ads-campaigns-table .ads-table-multi-row-actions > button,
.is-seller-ads-campaigns-table .ads-table-multi-row-actions button {
  width: 100%;
  white-space: normal !important;
  text-align: center;
  justify-content: center;
  padding: 4px 6px;
  font-size: 10.8px;
  line-height: 1.22;
}

.is-seller-ads-campaigns-table details,
.seller-ads-inline-cancel-details {
  width: 100%;
  font-size: 10.8px;
}

.is-seller-ads-campaigns-table details > summary,
.seller-ads-inline-cancel-summary {
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 5px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 10.6px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  list-style-position: inside;
  user-select: none;
}

.is-seller-ads-campaigns-table details > summary:hover,
.seller-ads-inline-cancel-summary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.seller-ads-inline-cancel-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  padding: 5px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.seller-ads-inline-cancel-body > select,
.seller-ads-inline-cancel-body > input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 10.8px;
  padding: 3px 5px;
}

/* ==========================================================================
   Compact 3-Column Layout for "Chống Spam Lời mời & Tin nhắn trùng"
   (/shop/web-admin?tab=anti_spam — spamSubPage === 'invite_message_spam')
   ========================================================================== */
.web-admin-panel-card.is-compact-anti-spam-card {
  padding: 12px 14px;
}

.web-admin-form.is-compact-anti-spam-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.anti-spam-compact-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .anti-spam-compact-3col-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.anti-spam-compact-group-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

.anti-spam-compact-group-title {
  font-size: 12.2px;
  font-weight: 850;
  color: #0f172a;
  padding-bottom: 5px;
  border-bottom: 1px dashed #cbd5e1;
}

.anti-spam-compact-field-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.anti-spam-compact-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 7px;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.anti-spam-compact-field-row:hover {
  border-color: #94a3b8;
}

.anti-spam-compact-field-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
}

.anti-spam-compact-field-label {
  font-size: 11.6px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}

.anti-spam-compact-field-hint {
  font-size: 10.2px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
}

.anti-spam-compact-num-input {
  width: 78px !important;
  min-width: 78px !important;
  max-width: 86px !important;
  flex: 0 0 78px;
  padding: 4px 7px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-align: right;
  border-radius: 6px !important;
}

.anti-spam-compact-2col-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .anti-spam-compact-2col-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Compact Quick-Add Strip, Left Menu & Rules Table in /shop/web-admin?tab=anti_spam */
.content-safety-quick-add-strip {
  padding: 7px 10px !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
}

.content-safety-quick-add-strip .web-admin-field-label {
  font-size: 11px !important;
  gap: 3px !important;
}

.content-safety-quick-add-strip .web-admin-input {
  padding: 5px 8px !important;
  font-size: 11.8px !important;
  min-height: 30px !important;
}

.content-safety-left-menu {
  padding: 8px !important;
  gap: 4px !important;
}

.content-safety-left-item {
  padding: 6px 9px !important;
  font-size: 11.8px !important;
}

.hr-spreadsheet-table.is-compact-anti-spam-table th,
.hr-spreadsheet-table.is-compact-anti-spam-table td {
  padding: 6px 7px;
  font-size: 11.8px;
}

.hr-spreadsheet-table.is-compact-anti-spam-table select.hr-sheet-select {
  min-width: 155px !important;
  padding: 3px 6px;
  font-size: 11.5px;
}

/* ==========================================================================
   Polished & Compact Seller Ads Portal Hub (/shop/manage?view=sellerAds)
   ========================================================================== */
.seller-ads-top-banner {
  padding: 10px 14px !important;
  margin-bottom: 10px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #f0fdf4 0%, #f0f9ff 100%) !important;
  border: 1px solid #86efac !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seller-ads-sandbox-ribbon {
  margin: 0 !important;
  padding: 5px 10px !important;
  border-radius: 7px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 11.4px !important;
  font-weight: 700;
  line-height: 1.3;
}

.seller-ads-top-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.seller-ads-top-identity-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.seller-ads-shop-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-size: 11.8px;
  font-weight: 800;
}

.seller-ads-payer-text {
  font-size: 12.2px;
  font-weight: 750;
  color: #0f172a;
}

.seller-ads-top-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.seller-ads-kpi-pills-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 6px;
}

.seller-ads-fin-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 3px solid #64748b;
}

.seller-ads-fin-pill.is-emerald {
  border-left-color: #10b981;
  background: #f0fdf4;
}

.seller-ads-fin-pill.is-blue {
  border-left-color: #0284c7;
  background: #f0f9ff;
}

.seller-ads-fin-pill.is-purple {
  border-left-color: #8b5cf6;
  background: #f5f3ff;
}

.seller-ads-fin-pill.is-amber {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.seller-ads-fin-pill-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.seller-ads-fin-pill-val {
  font-size: 12px;
  font-weight: 850;
  color: #0f172a;
  white-space: nowrap;
}

.seller-ads-subnav-bar {
  margin-bottom: 10px !important;
  padding: 5px 7px !important;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  gap: 5px !important;
}

.seller-ads-stage-card {
  padding: 12px 14px !important;
}

.seller-ads-inline-heading {
  margin: 0 !important;
  font-size: 14.5px !important;
  font-weight: 850 !important;
  color: #0f172a;
}

.seller-ads-compact-hint {
  margin: 0 0 8px !important;
  font-size: 11.8px !important;
  color: #475569;
}

.seller-ads-compact-fields-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.seller-ads-compact-fields-stack .web-admin-field-label {
  font-size: 11.4px !important;
  gap: 3px !important;
}

.seller-ads-compact-fields-stack .web-admin-input {
  padding: 5px 8px !important;
  font-size: 12px !important;
  min-height: 31px !important;
}

.seller-ads-inline-2col-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 8px;
}

@media (max-width: 640px) {
  .seller-ads-inline-2col-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.seller-ads-preview-quote-box {
  padding: 10px 12px !important;
  margin-top: 2px !important;
  border-radius: 10px !important;
}

.seller-ads-preview-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.seller-ads-quote-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 7px;
  margin-top: 6px;
}

.seller-ads-quote-summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #cbd5e1;
}

.seller-ads-quote-summary-item small {
  font-size: 10.4px;
  font-weight: 750;
  color: #64748b;
}

.seller-ads-quote-summary-item strong {
  font-size: 12px;
  font-weight: 850;
  color: #0f172a;
}

.seller-ads-quote-summary-item span {
  font-size: 10.5px;
  color: #475569;
  line-height: 1.25;
}

.seller-ads-form-actions-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.seller-ads-amt-plus {
  color: #b45309;
}

.seller-ads-amt-minus {
  color: #047857;
}
/* Preview controls live in the seller portal; buyer surfaces only show a compact notice/edit link. */
.shop-ad-preview-notice { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px 12px; margin-bottom:12px; border:1px solid #b6d8e1; border-radius:8px; background:#f0fafb; font-size:12px; }
.shop-ad-preview-notice > span { flex:1 1 200px; min-width:0; }
.shop-floating-corner-ad-widget[data-saved-ad-booking] { max-width: min(320px, calc(100% - 36px)); flex-direction: row; align-items: center; }
.shop-floating-corner-ad-widget[data-saved-ad-booking] > button:first-child { white-space: normal; overflow-wrap: anywhere; text-align: left; min-width: 0; }
.same-ad-edit-control { position:relative; z-index:4; white-space:normal; }
.is-sponsored-interleaved-card > .same-ad-edit-control { position:absolute; top:5px; right:5px; max-width:calc(100% - 10px); }
.ads-creative-editor { margin-top:8px; min-width:180px; }
.ads-creative-form { display:grid; gap:8px; padding:8px 0; }
.ads-creative-form label { display:grid; gap:4px; }
.ads-creative-form input { box-sizing:border-box; min-width:0; max-width:100%; }
.shop-hero-grid.has-no-side { grid-template-columns:minmax(0,1fr); }
.seller-ads-portal-hub .hr-spreadsheet-table td { vertical-align:top; }
.seller-ads-portal-hub .ads-table-multi-row-actions { display:grid; gap:6px; }
@media (max-width: 844px) {
  .shop-desktop-container:has(.seller-ads-portal-hub) { margin:0; padding:0; max-width:none; }
  .desktop-portal-section:has(.seller-ads-portal-hub) { margin:0; padding:10px; border-radius:0; }
  .desktop-portal-section:has(.seller-ads-portal-hub) .desktop-portal-top-banner { flex-direction:column; align-items:stretch; }
  .desktop-portal-section:has(.seller-ads-portal-hub) .desktop-portal-head-actions { flex-wrap:wrap; }
  .desktop-portal-section:has(.seller-ads-portal-hub) .desktop-portal-head-actions button { white-space:normal; }
  .shop-desktop-container .shop-hero-grid { grid-template-columns:minmax(0,1fr); }
  .shop-desktop-container .shop-hero-main { min-width:0; }
}

/* Commitment packages: one primary panel, compact readable facts. */
.ads-commitment-workflow { min-width:0; overflow-wrap:anywhere; }
.ads-commitment-workflow .hr-spreadsheet-toolbar { display:flex; flex-wrap:wrap; gap:8px; margin-block:8px; }
.ads-commitment-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; }
.ads-commitment-summary > div { padding:10px; border:1px solid #d9e5ef; border-radius:8px; }
.ads-commitment-summary dt { color:#516579; font-size:12px; }
.ads-commitment-summary dd { margin:4px 0 0; font-weight:600; }
.ads-commitment-workflow label { display:block; min-width:0; margin-block:8px; }
.ads-commitment-workflow button { white-space:normal; margin:4px; }
/* Saved sandbox creative preview: one selected campaign, not an editor on buyer pages. */
.saved-ads-preview{min-width:0;max-width:100%;font:14px/1.5 Arial,sans-serif}
.saved-ads-preview-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.saved-ads-preview-toolbar select{flex:1;min-width:0;max-width:100%;padding:9px;border:1px solid #bdcfe0;border-radius:8px}
.saved-ad-stage{position:relative;display:grid;gap:12px;min-width:0;padding:16px;margin:12px 0;background:#edf3f8;border:1px solid #cbd8e4;border-radius:12px;overflow:hidden}
.saved-ad-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;background:#fff;border:1px solid #b5cfe3;border-radius:10px;padding:14px;overflow-wrap:anywhere}
.saved-ad-card h4,.saved-ad-card p{margin:0}.saved-ad-card img{height:150px;max-width:100%;object-fit:contain}.saved-ad-card button{white-space:normal;max-width:100%}
.saved-ad-label{color:#734300;background:#fff0b8;border-radius:4px;padding:3px 8px;font-size:12px}
.saved-ad-placeholder{display:grid;place-items:center;min-height:100px;background:#f9fbfd;border:1px dashed #bbc8d5;border-radius:8px;color:#61748a}
.saved-ad-stage[data-format=right_column_top]{grid-template-columns:2fr 1fr}
.saved-ad-stage[data-format=interleaved_product_card],.saved-ad-stage[data-format=flash_sale_pinned_slot]{grid-template-columns:repeat(3,minmax(0,1fr))}
.saved-ad-stage[data-format=text_link] .saved-ad-card{flex-direction:row;align-items:center;flex-wrap:wrap}.saved-ad-stage[data-format=text_link] img{display:none}
.saved-ad-stage video{display:block;background:#10131b;width:100%;max-height:400px;object-fit:contain}
.saved-ad-stage[data-format=video_footer_banner] .saved-ad-card{margin-top:-70px;z-index:1;background:#fffef4ed}.saved-ad-stage[data-format=video_footer_banner] img{height:60px}
.saved-ad-stage[data-format=product_popup] .saved-ad-card{justify-self:start;max-width:340px}.saved-ad-stage[data-format=floating_corner_badge] .saved-ad-card{justify-self:start;max-width:300px}
@media(max-width:844px){.saved-ad-stage[data-format]{grid-template-columns:minmax(0,1fr);padding:8px}.saved-ads-preview-toolbar{flex-direction:column}.saved-ad-stage[data-format=video_footer_banner] .saved-ad-card{margin-top:0}}

/* Seller placement illustrations: scoped, never mounted on buyer pages. */
.ad-placement-preview { margin: 10px 0; min-width: 0; color: #17334d; }
.ad-placement-caption { display: block; margin-bottom: 8px; font-size: 13px; line-height: 1.5; }
.ad-placement-frame { border: 1px solid #b8ccdf; border-radius: 10px; overflow: hidden; background: #fff; }
.ad-placement-nav { padding: 9px 12px; background: #e7eff8; font-size: 12px; font-weight: 700; }
.ad-placement-body { position: relative; padding: 12px; display: grid; gap: 12px; min-width: 0; }
.ad-placement-placeholder { display: grid; place-items: center; padding: 14px 8px; border: 1px solid #d9e2ec; border-radius: 6px; color: #68788c; background: #f1f5f9; font-size: 12px; text-align: center; }
.ad-placement-hero { min-height: 135px; }
.ad-placement-products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.ad-placement-product { min-height: 100px; }
.ad-placement-hero-row,.ad-placement-detail { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 12px; }
.ad-placement-catalog { display: grid; grid-template-columns: minmax(70px,1fr) minmax(0,4fr); gap: 12px; }
.ad-placement-main { display: grid; align-content: start; gap: 10px; min-width: 0; }
.ad-placement-creative { border: 2px dashed #e7880c; border-radius: 8px; padding: 12px; background: #fff8e9; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.45; }
.ad-placement-creative img { width: 72px; height: 64px; object-fit: contain; background: white; border-radius: 5px; }
.ad-placement-label { color: #854500; background: #ffedc2; padding: 2px 7px; border-radius: 5px; }
.ad-placement-cta { color: #08646b; font-weight: 700; }
.ad-placement-note { display: block; margin-top: 8px; color: #52657a; font-size: 12px; line-height: 1.5; }
.ad-placement-frame[data-kind='ribbon'] .ad-placement-creative { flex-direction: row; flex-wrap: wrap; align-items: center; }
.ad-placement-corner { position: absolute; bottom: 12px; right: 12px; width: min(280px,65%); box-shadow: 0 4px 14px #17334d30; }
.ad-placement-frame[data-kind='floating'] .ad-placement-corner { left: 12px; right: auto; width: min(220px,65%); }
.ad-placement-frame[data-kind='popup'] .ad-placement-corner { left:12px; right:auto; }
.ad-placement-frame[data-kind='floating'] .ad-placement-creative { border-radius: 24px; }
.ad-placement-frame[data-kind='popup'] .ad-placement-body,.ad-placement-frame[data-kind='floating'] .ad-placement-body { padding-bottom: 180px; }
@media(max-width:600px) {
 .ad-placement-body { padding: 8px; gap: 8px; }
 .ad-placement-hero-row,.ad-placement-detail { grid-template-columns: minmax(0,1fr); }
 .ad-placement-products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
 .ad-placement-catalog { grid-template-columns: minmax(0,1fr); }
 .ad-placement-filters { padding: 6px; }
 .ad-placement-hero { min-height: 75px; }
 .ad-placement-creative { padding: 8px; }
 .seller-ads-preview-quote-box .seller-ads-quote-summary-grid { grid-template-columns: minmax(0,1fr); }
}

.ads-commitment-workflow .web-admin-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 12px 0; }
.ads-commitment-workflow .web-admin-form-grid > label { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 13px; line-height: 1.45; }
.ads-commitment-workflow .web-admin-form-grid .web-admin-input { min-width: 0; max-width: 100%; box-sizing: border-box; }
.ads-commitment-workflow .web-admin-form-grid input[type='checkbox'] { align-self: flex-start; }
.ads-commitment-workflow p,.ads-performance p { font-size: 13px; line-height: 1.6; }
.ads-performance > label { display: block; margin: 10px 0; font-size: 13px; }
.ads-performance .hr-spreadsheet-table { min-width: 640px; }
@media(max-width:600px) {
 .ads-commitment-workflow .web-admin-form-grid { grid-template-columns: minmax(0,1fr); }
}

.ads-placement-jump { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; }
.ads-placement-picker { min-width: 0; scroll-margin-top: 110px; margin: 14px 0; }
.ads-placement-picker > label { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.ads-placement-picker > label > select { min-width: 0; max-width: 100%; }
.ads-grouped-placement-picker { min-width: 0; }
.ads-grouped-placement-picker select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.ads-grouped-placement-picker > div { margin-top: 8px; }

.ad-placement-explore-row { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 12px; }
.ad-placement-video { display: flex; flex-direction: column; min-width: 0; min-height: 280px; padding: 10px; gap: 10px; background: #152236; border-radius: 10px; }
.ad-placement-video-scene { flex: 1; background: #23364d; color: #e2e8f0; }
.ad-placement-video > .ad-placement-creative { flex: none; }
.ad-placement-frame[data-kind='post-fullframe'] .ad-placement-video > .ad-placement-creative { flex: 1; justify-content: center; }
.ad-placement-skip { align-self: flex-end; color: white; border: 1px solid #708198; border-radius: 5px; padding: 5px 8px; font-size: 12px; }
@media(max-width:600px){ .ad-placement-explore-row { grid-template-columns: minmax(0,1fr); } }

/* Post preview anchors mirror explore-views: player overlays + action rail + right sidebar. */
.ad-placement-contexts { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.ad-placement-contexts [aria-pressed='true'] { background:#087e98; color:white; border-color:#087e98; }
.ad-post-scene { display:grid; grid-template-columns:minmax(0,3fr) 28px minmax(0,1fr); gap:8px; align-items:start; }
.ad-post-player { position:relative; min-width:0; aspect-ratio:16/9; min-height:370px; overflow:hidden; border-radius:10px; background:linear-gradient(155deg,#61738a,#222d42 58%,#0d121e); color:white; }
.ad-post-picture { position:absolute; inset:0; display:grid; place-items:center; padding:12px; color:#e5edf5; font-size:15px; }
.ad-post-author { position:absolute; left:12px; bottom:205px; font-size:11px; line-height:1.6; white-space:pre-line; }
.ad-post-banner { position:absolute; bottom:40px; left:12px; right:12px; border-radius:8px; }
.ad-post-headline { position:absolute; bottom:15px; left:12px; right:12px; font-size:10px; line-height:1.2; padding:3px 4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ad-post-progress { position:absolute; left:12px; right:12px; bottom:6px; height:3px; background:#798da5; }
.ad-post-ghost { border:1px dashed #a0afc0; color:#d4e0ed; background:#192434d9; padding:10px; font-size:11px; }
.ad-post-sidebar { display:grid; gap:8px; min-width:0; }
.ad-post-right.ad-post-ghost { color:#56677b; background:#f4f6f9; min-height:85px; border-radius:8px; }
.ad-post-author-panel,.ad-post-comments { border-radius:8px; background:#edf1f6; color:#52657a; padding:15px 8px; white-space:pre-line; font-size:11px; line-height:2; }
.ad-post-comments { min-height:150px; }
.ad-post-rail { white-space:pre-line; text-align:center; line-height:3; padding-top:65px; color:#17334d; }
.ad-post-scene .ad-placement-creative { font-size:11px; gap:3px; padding:7px; }
.ad-post-banner .ad-placement-creative { color:#f1f5f9; background:#101722; }
.ad-post-banner .ad-placement-creative > img { width:30px; height:30px; }
.ad-post-banner .ad-placement-creative > strong,.ad-post-banner .ad-placement-creative > span:not(.ad-placement-cta) { display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.ad-post-banner .ad-placement-label { color:#ffdf9c; background:#624315; }
.ad-post-banner .ad-placement-cta { color:#a5e9f1; }
.ad-post-takeover { position:absolute; inset:0; display:flex; flex-direction:column; gap:8px; padding:8px; }
.ad-post-takeover > .ad-placement-creative { flex:1; justify-content:center; background:#182739; color:white; }
.ad-post-takeover .ad-placement-cta { color:#a5e9f1; }
@media(max-width:600px){
 .ad-post-scene { grid-template-columns:minmax(0,1fr) 22px; gap:5px; }
 .ad-post-player { min-height:400px; aspect-ratio:9/16; }
 .ad-post-sidebar { grid-column:1 / -1; }
 .ad-post-rail { font-size:12px; }
}
.ad-post-headline.ad-post-ghost { padding:3px 4px; }
.ad-post-player { width:100%; box-sizing:border-box; }
.ad-post-picture { align-items:start; padding-top:15%; }

/* Prominent sponsored disclosure pill for interleaved product ads inside product avatar (.desktop-product-thumb). */
.demo-13ads-avatar-sponsored-badge.is-interleaved {
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.94) 0%, rgba(2, 132, 199, 0.94) 100%);
  color: #ffffff;
  border: 0;
  border-radius: 5px;
  padding: 2.5px 7px !important;
  font-size: 9.8px;
  font-weight: 850;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
}
.demo-13ads-avatar-sponsored-badge.is-interleaved::before {
  content: "🛍️ ";
  margin-right: 3px;
}
.demo-13ads-avatar-sponsored-badge.is-flash-slot::before {
  content: "⚡ ";
  margin-right: 3px;
}

/* One field owner per row in the ad rotation settings. */
.ads-rotation-settings { min-width: 0; }
.ads-rotation-settings .web-admin-form { display: grid; gap: 12px; }
.ads-rotation-settings label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ads-rotation-settings label > select, .ads-rotation-settings label > input:not([type="checkbox"]) { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.ads-rotation-settings input[type="checkbox"] { align-self: flex-start; }

/* Local visual ads share page width, without a second management panel. */
@media(max-width:600px){
  .shop-hero-main.is-full-ad-demo{flex-direction:column;align-items:stretch;padding:14px;gap:12px}
  .shop-hero-main.is-full-ad-demo .shop-hero-copy{min-width:0;max-width:none}
  .shop-hero-main.is-full-ad-demo .shop-hero-art-stage{min-width:0;align-self:stretch}
  .shop-hero-main.is-full-ad-demo .shop-hero-art-showcase{max-width:100%;box-sizing:border-box;gap:8px;padding:8px;flex-wrap:wrap;justify-content:center}
  .shop-hero-main.is-full-ad-demo .shop-hero-art-info-col{flex:1 1 100px;overflow-wrap:anywhere}
  .shop-hero-main.is-full-ad-demo .shop-hero-art{width:80px;height:80px;flex-basis:80px}
}
.shop-full-demo-ad{box-sizing:border-box;position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px;border:1px solid #e7cba6;border-radius:12px;background:#fffaf1;color:#132438;min-width:0;margin:8px 0;overflow-wrap:anywhere}
.shop-full-demo-ad>img{width:80px;height:80px;object-fit:contain;border-radius:8px;flex-shrink:0}.shop-full-demo-ad>strong{flex:1 1 160px;min-width:0}.shop-full-demo-ad>span{font-weight:700}.shop-full-demo-actions{display:flex;gap:10px;flex-wrap:wrap}.shop-commerce-chat-dock .shop-full-demo-ad{margin:4px;font-size:12px}.shop-full-demo-ad.is-compact>img{width:48px;height:48px}

/* Inbox placement: the selected ad is in the contact list, never the chat pane. */
.ad-placement-inbox{grid-template-columns:minmax(0,320px) minmax(0,1fr)}
.ad-placement-inbox-list{display:flex;flex-direction:column;gap:10px;min-width:0}
.ad-placement-inbox-list .ad-placement-creative{min-width:0;overflow-wrap:anywhere}
@media(max-width:600px){.ad-placement-inbox{grid-template-columns:minmax(0,1fr)}.ad-placement-inbox>.ad-placement-main{display:none}}

.saved-ad-stage[data-format="chat_promo_card"]{display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:12px}
.saved-inbox-list{display:flex;flex-direction:column;gap:8px;min-width:0}
@media(max-width:600px){.saved-ad-stage[data-format="chat_promo_card"]{grid-template-columns:minmax(0,1fr)}.saved-inbox-chat{display:none}}

/* Voucher slide: stronger contrast without changing other light-theme slides. */
.shop-hero-grid[data-voucher-contrast="true"] .shop-hero-main{background:linear-gradient(125deg,#064e3b 0%,#0f766e 55%,#075985 100%);border-color:#0f766e;color:#fff}
.shop-hero-grid[data-voucher-contrast="true"] .shop-hero-copy h1{color:#fff}
.shop-hero-grid[data-voucher-contrast="true"] .shop-hero-copy p{color:#ecfdf5}
.shop-hero-grid[data-voucher-contrast="true"] .shop-hero-kicker{background:#fff;color:#065f46}
.shop-hero-grid[data-voucher-contrast="true"] .shop-hero-slide-dot{background:#ffffff70}
.shop-hero-grid[data-voucher-contrast="true"] .shop-hero-slide-dot.is-active{background:#fff}
