/* ===== Dokan Dashboard Layout ===== */
.dokan-dashboard .dokan-dashboard-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.dokan-dashboard .dokan-dash-sidebar {
  /* width: 258px; */
  min-width: 258px;
  flex-shrink: 0;
  background: var(--zp-ink);
  min-height: auto;
  display: flex;
  flex-direction: column;
}

#dokan-navigation {
  display: flex;
  flex-direction: column;
  flex: 1;
}

#dokan-navigation .dokan-dashboard-menu {
  flex: 1;
}

.sidebar-logout-fixed {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}

.sidebar-logout-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff !important;
}

.dokan-dashboard .dokan-dashboard-content {
  flex: 1;
  min-width: 0;
  padding: 0 20px;
}

/* Sidebar menu styles */
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: background 0.15s;
}

.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li a:hover,
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active>a {
  background: var(--zp-primary);
  color: var(--zp-on-primary);
}

.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active>a {
  font-weight: 700;
  position: relative;
}

.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active>a::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--zp-primary);
}

/* Submenu */
.dokan-dashboard .dokan-dash-sidebar ul.navigation-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.15);
}

.dokan-dashboard .dokan-dash-sidebar ul.navigation-submenu li a {
  padding-left: 40px;
  font-size: 0.875rem;
}

/* Common links row (icons) */
.dokan-dashboard .dokan-dash-sidebar li.dokan-common-links {
  display: flex;
  padding: 12px 20px;
  gap: 10px;
  justify-content: space-between;
  background: transparent !important;
}

.dokan-dashboard .dokan-dash-sidebar li.dokan-common-links a {
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  font-size: 1rem;
  border: none !important;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  position: relative;
}

.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links,
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links:hover,
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links:focus {
  background: transparent !important;
}

.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links>a.active,
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links>a:focus,
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links>a:hover {
  background: var(--zp-primary) !important;
  color: var(--zp-on-primary);
  border: none !important;
}

.dokan-dashboard .dokan-dash-sidebar li.dokan-common-links a::before {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f1020;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 10px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 5;
}

.dokan-dashboard .dokan-dash-sidebar li.dokan-common-links a::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #0f1020;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 5;
}

.dokan-dashboard .dokan-dash-sidebar li.dokan-common-links a:hover::before,
.dokan-dashboard .dokan-dash-sidebar li.dokan-common-links a:hover::after,
.dokan-dashboard .dokan-dash-sidebar li.dokan-common-links a:focus::before,
.dokan-dashboard .dokan-dash-sidebar li.dokan-common-links a:focus::after {
  opacity: 1;
  visibility: visible;
}

.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links>a::after {
  display: none !important;
}

.dokan-dashboard .dokan-dash-sidebar li.dokan-common-links a:hover {
  color: #fff;
}

/* Mobile menu toggle */
#toggle-mobile-menu {
  display: none;
}

#mobile-menu-icon {
  display: none;
}

@media (max-width: 768px) {
  .dokan-dashboard .dokan-dashboard-content {
    padding: 0px !important;
    margin-top: 10px;
  }
  .dokan-dashboard .dokan-dashboard-wrap {
    flex-direction: column;
  }

  .dokan-dashboard .dokan-dash-sidebar {
    width: 100%;
    min-width: 0;
    min-height: auto;
  }

  #mobile-menu-icon {
    display: block;
    cursor: pointer;
    padding: 12px 20px;
    color: #fff;
  }

  div#sidebar {
    margin-top: 12px;
  }
}

/* ===== End Dokan Dashboard Layout ===== */

/* ===== Affiliate Overview Stats ===== */
.aff-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .aff-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .aff-overview-grid {
    grid-template-columns: 1fr;
  }
}

.aff-stat-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 18px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.15s;
}

.aff-stat-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.aff-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--zp-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--zp-primary);
  font-size: 1.1rem;
}

.aff-stat-body {
  flex: 1;
  min-width: 0;
}

.aff-stat-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.aff-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
  margin-bottom: 4px;
}

.aff-stat-desc {
  font-size: 0.8rem;
  color: #aaa;
  line-height: 1.4;
}

/* ===== End Affiliate Overview Stats ===== */

/* ===== Affiliate Charts ===== */
.aff-charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .aff-charts-row {
    grid-template-columns: 1fr;
  }
}

.aff-chart-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.aff-chart-header {
  padding: 14px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.aff-chart-header i {
  color: var(--zp-primary);
}

.aff-chart-body {
  padding: 16px 18px;
}

.aff-chart-body--doughnut {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 260px;
  margin: 0 auto;
}

/* ===== End Affiliate Charts ===== */

/* ===== Affiliate Clicks Table ===== */
.aff-clicks-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== DashboardTable component wrapper ===== */
.dashboard-table-wrap {
  overflow: auto;
}

/* Unified dashboard table class for all dashboard sections */
.dashboard-table-unified {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  font-family: inherit;
}

.dashboard-table-unified thead th {
  background: #f8f9fa;
  color: #374151;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 10px 12px;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}

.dashboard-table-unified tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  color: #1a1a1a;
}

.dashboard-table-unified tbody tr:last-child td {
  border-bottom: none;
}

.dashboard-table-unified tbody tr:hover td {
  background: #fafafa;
}

.dashboard-table-unified.shop_table_responsive {
  min-width: 900px;
}

@media (max-width: 768px) {
  .dashboard-table-unified.shop_table_responsive {
    min-width: 0;
  }

  .dashboard-table-unified,
  .dashboard-table-unified thead,
  .dashboard-table-unified tbody,
  .dashboard-table-unified tr,
  .dashboard-table-unified th,
  .dashboard-table-unified td {
    display: block;
    width: 100%;
  }

  .dashboard-table-unified thead {
    display: none;
  }

  .dashboard-table-unified tbody tr {
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8ec;
    border-radius: 14px;
    margin-bottom: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16,24,40,0.04);
    overflow: hidden;
  }

  .dashboard-table-unified tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: none;
    border-bottom: 1px solid #f2f2f4;
    padding: 10px 16px;
    text-align: right;
    font-size: 13.5px;
    font-weight: 600;
  }

  .dashboard-table-unified tbody tr td:last-child {
    border-bottom: none;
  }

  .dashboard-table-unified.shop_table_responsive tbody td::before {
    content: attr(data-label) ": " !important;
    float: none;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #8b8f98;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: left;
  }
}

/* ===== End Affiliate Clicks Table ===== */

/* ===== Affiliate Links ===== */
.affiliate-links-table {
  min-width: 900px;
}

.affiliate-links-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (max-width: 768px) {
  .affiliate-links-table {
    min-width: 0;
  }

  .affiliate-links-table-wrap {
    overflow: visible !important;
  }

  .affiliate-links-actions {
    justify-content: flex-end;
  }

  #affiliate-links-pagination {
    justify-content: flex-start !important;
    flex-wrap: wrap;
  }
}

/* ===== End Affiliate Links ===== */

/* ===== Wallet Commission ===== */
.wallet-commission-table {
  min-width: 1400px;
}

@media (max-width: 768px) {
  .wallet-commission-table {
    min-width: 0;
  }

  .wallet-commission-table-wrap {
    overflow: visible !important;
  }
}

/* ===== End Wallet Commission ===== */

/* ===== Affiliate Payout ===== */
.affiliate-payout-table {
  min-width: 1300px;
}

@media (max-width: 768px) {
  .affiliate-payout-table {
    min-width: 0;
  }

  .affiliate-payout-table-wrap {
    overflow: visible !important;
  }
}

/* ===== End Affiliate Payout ===== */

/* ===== Affiliate Tax Docs ===== */
.affiliate-taxdocs-table {
  min-width: 1180px;
}

@media (max-width: 768px) {
  .affiliate-taxdocs-table {
    min-width: 0;
  }

  .affiliate-taxdocs-table-wrap {
    overflow: visible !important;
  }
}

/* ===== End Affiliate Tax Docs ===== */

/* ===== Inquiry History ===== */
.inquiry-history-table {
  min-width: 1000px;
}

@media (max-width: 768px) {
  .inquiry-history-table {
    min-width: 0;
  }

  .inquiry-history-table-wrap {
    overflow: visible !important;
  }
}

/* ===== End Inquiry History ===== */

/* ===== Wholesale Orders History ===== */
.wholesale-orders-history-table {
  min-width: 1200px;
}

@media (max-width: 768px) {
  .wholesale-orders-history-table {
    min-width: 0;
  }

  .wholesale-orders-history-table-wrap {
    overflow: visible !important;
  }
}

/* ===== End Wholesale Orders History ===== */

/* ===== Wholesale Debt ===== */
.wholesale-debt-open-table,
.wholesale-debt-table {
  min-width: 900px;
}

@media (max-width: 768px) {
  .wholesale-debt-open-table,
  .wholesale-debt-table {
    min-width: 0;
  }

  .wholesale-debt-open-table-wrap,
  .wholesale-debt-table-wrap {
    overflow: visible !important;
  }

  /* Đảm bảo border-bottom hiển thị đủ giữa các dòng */
  .wholesale-debt-open-table tbody td,
  .wholesale-debt-table tbody td {
    border-bottom: 1px solid #f2f2f4 !important;
  }

  .wholesale-debt-open-table tbody tr td:last-child,
  .wholesale-debt-table tbody tr td:last-child {
    border-bottom: none !important;
  }

  /* Header band: mã đơn sỉ — giống order number trong OrdersSection */
  .wholesale-debt-open-table tbody tr td:first-child,
  .wholesale-debt-table tbody tr td:first-child {
    background: #fafafb;
    border-bottom: 1px solid #eee !important;
    justify-content: flex-end;
    font-weight: 700;
  }

  .wholesale-debt-open-table tbody tr td:first-child::before,
  .wholesale-debt-table tbody tr td:first-child::before {
    display: none !important;
    content: none !important;
  }
}

/* Debt section blocks */
.debt-section-block {
  margin-top: 24px;
}

.debt-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}

.debt-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
}

/* Summary bar */
.debt-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 4px;
}

.debt-summary-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  font-size: 0.82rem;
}

.debt-summary-label {
  color: #666;
}

.debt-summary-val {
  font-weight: 700;
  color: #333;
}

/* Status / due badges */
.debt-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.debt-badge--overdue  { background: #fdecea; color: #c62828; }
.debt-badge--urgent   { background: #fff3e0; color: #e65100; }
.debt-badge--warning  { background: #fff8e1; color: #f57f17; }
.debt-badge--pending  { background: #e8f0fe; color: #1a56c4; }
.debt-badge--partial  { background: #fff3e0; color: #e65100; }
.debt-badge--paid     { background: #e8f5e9; color: #2e7d32; }
.debt-badge--ok       { background: #e8f5e9; color: #2e7d32; }
.debt-badge--neutral  { background: #f5f5f5; color: #757575; }

/* Overdue row highlight */
.debt-row--overdue td {
  background: #fff8f8;
}

@media (max-width: 768px) {
  .debt-summary-bar {
    gap: 6px;
    padding: 10px 12px;
  }
  .debt-summary-item {
    font-size: 0.78rem;
    padding: 3px 10px;
  }
}

/* Debt pagination */
.debt-pagination { margin-top: 12px; }

.debt-pager {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.debt-pager-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #333;
  transition: background 0.15s, color 0.15s;
}

.debt-pager-btn:hover:not(:disabled) {
  background: var(--zp-primary);
  color: #fff;
  border-color: var(--zp-primary);
}

.debt-pager-btn.active {
  background: var(--zp-primary);
  color: #fff;
  border-color: var(--zp-primary);
  font-weight: 700;
}

.debt-pager-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.debt-pager-info {
  margin-left: 8px;
  font-size: 0.8rem;
  color: #888;
}

/* ===== End Wholesale Debt ===== */

/* ===== Affiliate Catalog ===== */
.aff-catalog {
  padding: 4px 0;
}

/* Latest products widget thumbnails (shop sidebar) */
.latest-product-thumb {
  width: 72px !important;
  height: 72px !important;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .wholesale-inquiry-line {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .wholesale-inquiry-line .wholesale-inquiry-field--product {
    grid-column: 1 / -1;
  }

  .wholesale-inquiry-line .wholesale-inquiry-field--sku {
    grid-column: 1 / 2;
  }

  .wholesale-inquiry-line .wholesale-inquiry-field--quantity {
    grid-column: 2 / 3;
  }

  .wholesale-inquiry-line .wholesale-inquiry-field--remove {
    grid-column: 1 / -1;
  }

  .wholesale-contact-meta-grid {
    grid-template-columns: 1fr !important;
  }
}

.aff-catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.aff-catalog-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
}

.aff-catalog-title i {
  color: var(--zp-primary);
}

.aff-catalog-badge {
  background: var(--zp-primary-soft);
  color: var(--zp-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
}

.aff-catalog-search {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 44px;
  border: 1px solid #d9d9de;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  padding: 0 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.aff-catalog-search:focus-within {
  border-color: var(--zp-primary);
  box-shadow: 0 0 0 3px rgba(var(--zp-primary-rgb), 0.08);
}

.aff-catalog-search i {
  padding: 0 8px 0 2px;
  color: #9aa0ab;
  font-size: 0.95rem;
  flex-shrink: 0;
  pointer-events: none;
}

/* ===== Lost Password Popup ===== */
.lost-password-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 32, 0.52);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lost-password-modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #e6e6ea;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(16, 20, 40, 0.2);
  padding: 18px 20px 20px;
}

.lost-password-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 110px;
  height: 72px;
  border: none;
  background: #cfe4bf;
  color: #6b8ec4;
  font-size: 34px;
  line-height: 1;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lost-password-close-btn:hover {
  background: #c2dcb0;
  color: #587eaf;
}

.lost-password-modal-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
  color: #0f1f36;
  letter-spacing: -0.01em;
}

.lost-password-modal-subtitle {
  margin: 0 0 12px;
  color: #4a5568;
  font-size: 16px;
}

.lost-password-modal-card .form-row {
  margin-bottom: 14px;
}

.lost-password-modal-card label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #17263c;
  margin-bottom: 10px;
}

.lost-password-modal-card .woocommerce-Input.input-text {
  width: 100%;
  min-height: 54px;
  border: 1px solid #d5dbe6;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 16px;
  background: #fff;
}

.lost-password-modal-card .woocommerce-Input.input-text:focus {
  border-color: var(--zp-primary);
  box-shadow: 0 0 0 3px rgba(var(--zp-primary-rgb), 0.12);
}

.lost-password-modal-card .woocommerce-Button.button {
  width: 120px;
  min-height: 52px;
  border-radius: 26px;
  border: 1px solid #ece9ea;
  background: #ece9ea;
  color: #1e3553;
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  margin: 0 auto;
  display: block;
}

.lost-password-modal-card .woocommerce-Button.button:hover {
  background: #e4e0e2;
  border-color: #e4e0e2;
}

.lost-password-modal-card .woocommerce-Button.button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.lost-password-message {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 8px;
}

.lost-password-message.is-success {
  background: #eef9f0;
  color: #246a36;
}

.lost-password-message.is-error {
  background: #fff1f1;
  color: #b42318;
}

.lost-password-otp-countdown {
  margin: 8px 0 14px;
  font-size: 16px;
  color: #5f6c80;
}

.lost-password-resend-btn {
  border: none;
  background: none;
  color: var(--zp-primary);
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  text-decoration: underline;
  font-size: 16px;
}

/* ===== End Lost Password Popup ===== */

.aff-catalog-search-input {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  height: 42px;
  line-height: 42px;
  font-size: 0.875rem;
  color: #2e3140;
  width: 220px;
  background: transparent;
}

.aff-catalog-search-input::placeholder {
  color: #8f96a3;
}

.aff-catalog-info {
  background: var(--zp-primary-soft);
  border-left: 3px solid var(--zp-primary);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.aff-catalog-info i {
  color: var(--zp-primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.aff-catalog-empty {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
}

.aff-catalog-empty i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}

.aff-catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 0 8px;
}

.aff-catalog-pagination-info {
  font-size: 13px;
  color: #64748b;
}

.aff-catalog-table-wrap {
  overflow-x: auto;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
}

.aff-catalog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.aff-catalog-table thead th {
  background: #f8f8fc;
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #e8e8e8;
  white-space: nowrap;
}

.aff-catalog-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s;
}

.aff-catalog-table tbody tr:last-child {
  border-bottom: none;
}

.aff-catalog-table tbody tr:hover {
  background: #fafaff;
}

.aff-catalog-table td {
  padding: 10px 14px;
  vertical-align: middle;
  color: #333;
}

.aff-catalog-product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}

.aff-catalog-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.aff-catalog-product-name {
  font-weight: 500;
  color: #1a1a2e;
  line-height: 1.3;
}

.aff-catalog-sku {
  color: #888;
  font-size: 0.8rem;
}

.aff-catalog-commission {
  font-weight: 600;
  color: #73a724;
}

.aff-catalog-link-cell {
  min-width: 280px;
}

.aff-link-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.aff-link-input {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.78rem;
  color: #555;
  background: #f9f9f9;
  outline: none;
  cursor: text;
  min-width: 0;
}

.aff-link-copy-btn {
  flex-shrink: 0;
  background: var(--zp-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 0.85rem;
}

.aff-link-copy-btn:hover {
  background: #1a1840;
}

.aff-link-copy-btn.copied {
  background: #73a724;
}

/* hidden rows (search filter) */
.aff-catalog-table tbody tr.aff-hidden {
  display: none;
}

/* Catalog card layout */
.aff-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.aff-product-card {
  border: 1px solid #d8dbe1;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 16, 32, 0.05);
}

.aff-product-media {
  position: relative;
  height: 260px;
  padding: 0;
  overflow: hidden;
}

.aff-product-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  background: #2142d6;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 10px;
}

.aff-product-image,
.aff-product-image-fallback {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  background: #f2f3f7;
  display: block;
}

.aff-product-image-fallback {
  display: grid;
  place-items: center;
  color: #8a90a0;
  font-size: 13px;
}

.aff-product-body {
  padding: 10px 10px 12px;
}

.aff-product-head {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.aff-product-name {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: #111827;
}

.aff-product-stock {
  background: #eef8f0;
  color: #2f8f3a;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  white-space: nowrap;
}

.aff-product-sku {
  margin-top: 8px;
  color: #6e7585;
  font-size: 12px;
}

.aff-product-desc {
  margin-top: 8px;
  margin-bottom: 0;
  color: #3f4555;
  font-size: 13px;
  line-height: 1.5;
  min-height: 38px;
}

.aff-price-rows {
  margin-top: 10px;
  border-top: 1px solid #eceef3;
  padding-top: 10px;
}

.aff-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.aff-price-row:last-child {
  margin-bottom: 0;
}

.aff-price-row>span {
  color: #8b92a3;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.aff-price-row>strong {
  color: #111827;
  font-size: 16px;
}

.aff-price-row>strong.is-link {
  color: #2142d6;
}

.aff-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  line-height: 1;
}

.aff-action-btn--secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #0f172a;
  font-weight: 600;
}

.aff-action-btn--primary {
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
  padding: 0 16px !important;
}

.aff-wholesale-close-wrap {
  position: sticky;
  top: 8px;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
  pointer-events: none;
}

.aff-wholesale-close {
  width: 32px;
  height: 32px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  pointer-events: auto;
}

.aff-wholesale-close:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.aff-wholesale-close:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.aff-product-actions {
  margin-top: 10px;
  border-top: 1px solid #eceef3;
  padding-top: 10px;
}

.aff-visit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfd5e1;
  color: #243047;
  background: #fff;
  border-radius: 7px;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.aff-visit-btn:hover,
.aff-visit-btn:focus {
  color: #fff;
  background: var(--zp-primary);
  border-color: var(--zp-primary);
}

.aff-product-card.aff-hidden {
  display: none;
}

@media (max-width: 1200px) {
  .aff-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .aff-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .aff-product-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== End Affiliate Catalog ===== */

.navbar-search .input-search-field {
  background-color: white;
  border-radius: 1.375rem;
}

span#navbar-compare-count {
  bottom: -13px;
}

.dropdown-menu .dropdown-submenu:not([class^=yamm-]):hover {
  background-color: transparent;
}

@media (max-width: 768px) {

  .handheld-header-v2,
  .mobile-header-v1 {
    padding: 14px 0;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  textarea,
  select {
    font-size: 16px !important;
  }

}

/* Fix shipping amount bị position:absolute đè lên label */
#shipping_method li label > span {
  position: static;
}

/* Đảm bảo site-search (position:absolute) không thoát ra ngoài header */
.handheld-header-wrap {
  position: relative;
}

/* Ẩn hoàn toàn site-search khỏi flow, chỉ show khi .search.active */
.handheld-header-v2 .handheld-header-links .search .site-search {
  display: none;
}
.handheld-header-v2 .handheld-header-links .search.active .site-search {
  display: block;
}

:root {
  --bs-font-sans-serif: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--bs-font-sans-serif);
}

body.off-canvas-menu-open::before,
body.off-canvas-active::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  z-index: 9999;
}

body.off-canvas-menu-open .off-canvas-navigation-wrapper.toggled .off-canvas-navigation {
  z-index: 1040;
}

body.off-canvas-active .off-canvas-navigation-wrapper.toggled .off-canvas-navigation {
  z-index: 10000;
}

/* Departments mega submenu hover */
@media (min-width: 1200px) {
  .electro-navbar .departments-menu-v2>.dropdown>.dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  }

  .electro-navbar .departments-menu-v2>.dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .electro-navbar .departments-menu-v2 .dropdown-submenu:hover>.dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

.electro-navbar .departments-menu-v2.animated-dropdown .dropdown-menu li>a {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.electro-navbar .departments-menu-v2.animated-dropdown .dropdown-menu .nav-title {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

/* Khi dropdown bg-yamm-extend đang mở, bo góc dưới phải của ul departments bằng 0 */
@media (min-width: 992px) {
  ul#menu-departments-menu:has(> .dropdown:hover > .dropdown-menu.bg-yamm-extend) {
    border-bottom-right-radius: 0;
  }
}

@media (min-width: 992px) {
  .electro-navbar .departments-menu-v2.animated-dropdown .dropdown-menu {
    min-width: var(--mega-menu-width, 260px);
    width: var(--mega-menu-width, auto);
  }

  .electro-navbar .departments-menu-v2.animated-dropdown .dropdown.yamm-tfw {
    position: static;
  }

  .electro-navbar .departments-menu-v2.animated-dropdown .dropdown.yamm-tfw>.dropdown-menu {
    left: 100%;
    top: 0;
    right: auto;
    min-width: var(--mega-menu-width, 260px);
    width: var(--mega-menu-width, 100%);
    padding: 16px 22px;
  }

  .electro-navbar .departments-menu-v2.animated-dropdown .dropdown.yamm-tfw>.dropdown-menu .row {
    --bs-gutter-x: 24px;
    --bs-gutter-y: 12px;
  }
}

/* Remove focus ring on carousel dots to match Electro style */
.owl-carousel .owl-dot:focus,
.owl-carousel .owl-dot:active,
.owl-carousel .owl-dot:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Keep owl dots order left-to-right (prevent reversed dots) */
.owl-carousel .owl-dots {
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

/* Bestsellers: keep dots below cards and centered */
.section-product-cards-carousel .product-cards-carousel.owl-loaded {
  display: flex;
  flex-direction: column;
}

.section-product-cards-carousel .product-cards-carousel .owl-stage-outer {
  order: 1;
}

.section-product-cards-carousel .product-cards-carousel .owl-dots {
  order: 2;
  clear: both;
  display: block;
  width: 100%;
  margin-top: 14px;
  text-align: center;
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
}

/* Prevent horizontal overflow from Electro full-bleed slider rule (100vw + negative margin) */
.home-v1-slider,
.home-v2-slider,
.home-v3-slider {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  left: auto !important;
}

.owl-carousel.owl-loaded {
  padding-bottom: 3px;
}

/* Keep Wishlist / Compare inline in product hover area */
.products-category-with-image .product .hover-area .action-buttons,
.section-product-cards-carousel .product .hover-area .action-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.products-category-with-image .product .hover-area .action-buttons a,
.section-product-cards-carousel .product .hover-area .action-buttons a {
  white-space: nowrap;
}

.products-category-with-image .product .hover-area .action-buttons .add_to_wishlist,
.section-product-cards-carousel .product .hover-area .action-buttons .add_to_wishlist {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.products-category-with-image .product .hover-area .action-buttons .yith-wcwl-add-button .add_to_wishlist,
.section-product-cards-carousel .product .hover-area .action-buttons .yith-wcwl-add-button .add_to_wishlist,
.section-products-carousel .product .hover-area .action-buttons .yith-wcwl-add-button .add_to_wishlist {
  display: inline-flex !important;
  align-items: center;
  flex-direction: row !important;
  white-space: nowrap !important;
  gap: 6px;
}

/* Home slider redesign */
.home-v2-slider .home-slider-wrapper {
  position: relative;
  min-height: var(--slider-height);
  border-radius: 0;
  overflow: hidden;
  background: #eef2f7;
  width: 100%;
  max-width: 100%;
}

.home-v2-slider .home-slider-wrapper.layout-boxed {
  max-width: 1200px;
  margin: 0 auto;
}

.home-v2-slider .home-slider-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.home-v2-slider .home-slider-track {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.home-v2-slider .home-slider-item {
  position: relative;
  min-height: var(--slider-height);
}

.home-v2-slider .home-slider-media {
  width: 100%;
  height: var(--slider-height);
  object-fit: contain;
  object-position: right center;
  display: block;
  background: linear-gradient(120deg, #e9f2ff 0%, #f7faff 100%);
}

.home-v2-slider .home-slider-media.mobile {
  display: none;
}

.home-v2-slider .home-slider-content {
  position: absolute;
  left: var(--home-slider-content-left, 35%);
  right: var(--home-slider-content-right, 40px);
  top: var(--home-slider-content-top, 50%);
  transform: translateY(-50%);
  z-index: 4;
  color: #fff;
  max-width: 580px;
}

.home-v2-slider .home-slider-subtitle {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.95;
}

.home-v2-slider .home-slider-title {
  margin: 0;
  font-size: clamp(34px, 4.1vw, 58px);
  line-height: 1.03;
  font-weight: 800;
  text-wrap: balance;
}

.home-v2-slider .home-slider-description {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.45;
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.95);
}

.home-v2-slider .home-slider-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  min-width: 152px;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--zp-primary);
  color: var(--zp-on-primary);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(var(--zp-primary-rgb), 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-v2-slider .home-slider-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(var(--zp-primary-rgb), 0.36);
}

.home-v2-slider .home-slider-placeholder {
  min-height: var(--slider-height);
  display: grid;
  place-items: center;
  color: #1f2937;
  text-align: center;
  padding: 24px;
}

.home-v2-slider .owl-dots {
  position: absolute;
  left: 35%;
  bottom: 16px;
  transform: none;
  margin-top: 0 !important;
  z-index: 5;
  width: auto;
}

.home-v2-slider .owl-dot span {
  width: 9px;
  height: 9px;
  margin: 0 5px;
  background: rgba(255, 255, 255, 0.7);
}

.home-v2-slider .owl-dot.active span {
  background: var(--zp-primary);
  width: 28px;
  border-radius: 999px;
}

@media (max-width: 1024px) {

  .home-v2-slider .home-slider-wrapper,
  .home-v2-slider .home-slider-item,
  .home-v2-slider .home-slider-media,
  .home-v2-slider .home-slider-placeholder {
    min-height: var(--slider-height-tablet);
    height: var(--slider-height-tablet);
  }

  .home-v2-slider .home-slider-title {
    font-size: clamp(30px, 4.3vw, 42px);
  }

  .home-v2-slider .home-slider-description {
    font-size: 15px;
  }
}

@media (max-width: 768px) {

  .home-v2-slider .home-slider-wrapper,
  .home-v2-slider .home-slider-item,
  .home-v2-slider .home-slider-media,
  .home-v2-slider .home-slider-placeholder {
    min-height: 0;
    height: auto;
  }


  .home-v2-slider .home-slider-media.desktop {
    display: none;
  }

  .home-v2-slider .home-slider-media.mobile {
    display: block;
    object-position: center center;
  }

  .home-v2-slider .home-slider-content {
    left: 16px !important;
    right: 16px !important;
    top: 50% !important;
    bottom: auto;
    transform: translateY(-50%);
    max-width: none;
  }

  .home-v2-slider .home-slider-title {
    font-size: clamp(22px, 7.2vw, 30px);
  }

  .home-v2-slider .home-slider-description {
    font-size: 13px;
    margin-top: 10px;
  }

  .home-v2-slider .home-slider-button {
    height: 40px;
    min-width: 132px;
    margin-top: 14px;
    padding: 0 18px;
    font-size: 13px;
  }

  .home-v2-slider .owl-dots {
    left: 16px;
    bottom: 10px;
    display: none !important;
  }
}

/* Fix Tailwind `.collapse` utility conflict on mobile footer accordion */
.handheld-footer .handheld-widget-menu .collapse.show {
  display: block !important;
  visibility: visible !important;
}

/* Tighten vertical spacing of social icons in mobile footer */
.handheld-footer .footer-social-icons {
  margin-top: 4px;
  margin-bottom: 4px !important;
}

.handheld-footer .footer-social-icons .social-icons-color li {
  margin-bottom: 0;
}

.handheld-footer .footer-social-icons .social-icons-color {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding-left: 0;
  margin-left: 0;
  margin-right: 0;
}

.handheld-footer .footer-social-icons .social-icons-color>li {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.handheld-footer .footer-social-icons .social-icons-color>li>a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

.da-block .da-action {
  display: block !important;
}

.header-site-branding {
  padding-right: 10px;
}

.form-row.form-row-first,
.form-row.form-row-last {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ===== Product Detail (TemplateDetailProducts) ===== */
.single-product-wrapper .availability .stock-inline {
  display: inline;
  margin: 0;
}

.single-product-wrapper .action-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.single-product-wrapper .action-buttons .action-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgb(133, 152, 169);
  transition: color 0.2s ease;
}

.single-product-wrapper .action-buttons .action-link-inline:hover {
  color: var(--zp-ink);
}

.single-product-wrapper .detail-price-amount {
  color: var(--zp-ink);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.1;
}

.single-product-wrapper .product-cart-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.single-product-wrapper .product-cart-form .product-qty-wrap {
  margin-right: 0;
}

.single-product-wrapper .product-cart-form .product-qty-input {
  width: 140px;
  height: 46px;
  border-radius: 6px;
  padding: 10px 18px;
  border: 1px solid #d5d5d5;
}

.single-product-wrapper .product-cart-form .product-add-to-cart-btn {
  height: 50px;
  padding: 0 34px;
  border-radius: 25px;
  font-size: 16px;
  line-height: 1;
}

.single-product-wrapper .product-images-wrapper .woocommerce-product-gallery {
  position: relative;
}

.single-product-wrapper .product-images-wrapper .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

.single-product-wrapper .product-images-wrapper .woocommerce-product-gallery__image {
  overflow: hidden;
}

.single-product-wrapper .product-images-wrapper .woocommerce-product-gallery__image .wp-post-image {
  display: block;
  max-width: 100%;
  height: 460px;
  object-fit: contain;
}

.single-product-wrapper .product-images-wrapper .woocommerce-product-gallery__image {
  cursor: default;
}

.single-product-wrapper .product-images-wrapper .woocommerce-product-gallery__image .zoom-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 140%;
  transition: opacity 0.15s ease;
  z-index: 2;
}

.single-product-wrapper .product-images-wrapper .woocommerce-product-gallery__image.is-zooming .zoom-layer {
  opacity: 1;
}

/* ===== End Product Detail ===== */

/* Restore product card hover actions */
.products .product .hover-area,
.products-category-with-image .product .hover-area,
.section-product-cards-carousel .product .hover-area,
.section-products-carousel .product .hover-area {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.products .product:hover .hover-area,
.products-category-with-image .product:hover .hover-area,
.section-product-cards-carousel .product:hover .hover-area,
.section-products-carousel .product:hover .hover-area {
  opacity: 1;
  visibility: visible;
}

/* Product detail tabs layout (centered like Electro) */
.single-product-wrapper+.woocommerce-tabs.wc-tabs-wrapper,
.product .woocommerce-tabs.wc-tabs-wrapper {
  margin-top: 22px;
}

.product .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  padding: 0;
  list-style: none;
  border-bottom: 0;
}

.product .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs li {
  float: none;
  margin: 0;
}

.product .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs li a {
  display: inline-block;
  padding: 0 0 10px 0;
  color: var(--zp-ink);
  text-decoration: none;
}

.product .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs li.active a {
  font-weight: 700;
  border-bottom-color: var(--zp-primary);
}

.product .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel.wc-tab {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 18px 22px;
}

@media (max-width: 767.98px) {
  .product .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs {
    justify-content: space-between;
    gap: 0;
    width: 100%;
  }

  .product .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs li {
    flex: 1 1 50%;
    text-align: center;
  }

  .product .woocommerce-tabs.wc-tabs-wrapper .tabs.wc-tabs li a {
    display: block;
    padding-bottom: 8px;
    font-size: 15px;
  }

  .product .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel.wc-tab {
    padding: 14px 12px;
  }
}

.single-product-wrapper.row {
  margin-bottom: 50px;
}

/* Product detail thumbs slider: 1 row, 4 items visible */
.single-product-wrapper .product-gallery-thumbs {
  position: relative;
  margin-top: 12px;
  padding: 0 30px;
  margin-bottom: 12px;
}

.single-product-wrapper .product-gallery-thumbs .thumb-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.single-product-wrapper .product-gallery-thumbs .thumb-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.single-product-wrapper .product-gallery-thumbs .thumb-track::-webkit-scrollbar {
  display: none;
}

.single-product-wrapper .product-gallery-thumbs .thumb-item {
  flex: 0 0 calc((100% - 24px) / 4);
  max-width: calc((100% - 24px) / 4);
  height: 120px;
  border: 1px solid #e5e8ec;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.single-product-wrapper .product-gallery-thumbs .thumb-item.active {
  border-color: var(--zp-primary);
}

.single-product-wrapper .product-gallery-thumbs .thumb-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.single-product-wrapper .product-gallery-thumbs .thumb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--zp-ink);
  line-height: 1;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.single-product-wrapper .product-gallery-thumbs .thumb-nav.prev {
  left: 0;
}

.single-product-wrapper .product-gallery-thumbs .thumb-nav.next {
  right: 0;
}

/* Keep original dropdown-toggle styling on header icons but remove caret triangle */
.header-icons .header-icon>a.dropdown-toggle::after {
  display: none !important;
}

/* Cart shipping calculator field consistency */
.woocommerce-shipping-calculator .shipping-calculator-form .form-row {
  margin-bottom: 16px;
}

.woocommerce-shipping-calculator .shipping-calculator-form .country_select,
.woocommerce-shipping-calculator .shipping-calculator-form .state_select,
.woocommerce-shipping-calculator .shipping-calculator-form .input-text {
  width: 100%;
  height: 46px;
  border-radius: 23px;
  border: 1px solid #d5d5d5;
  padding: 10px 16px;
  line-height: 1.2;
}

.woocommerce-shipping-calculator .shipping-calculator-form .country_select:focus,
.woocommerce-shipping-calculator .shipping-calculator-form .state_select:focus,
.woocommerce-shipping-calculator .shipping-calculator-form .input-text:focus {
  border-color: #9aa0aa;
  outline: none;
}

/* Mini cart item spacing/alignment */
.dropdown-menu-mini-cart .woocommerce-mini-cart-item {
  position: relative;
}

.dropdown-menu-mini-cart .woocommerce-mini-cart-item>a.remove {
  top: 10px;
  right: 8px;
  line-height: 1;
}

.dropdown-menu-mini-cart .woocommerce-mini-cart-item>a:not(.remove) {
  display: block;
  padding-right: 22px;
  line-height: 1.25;
}

.dropdown-menu-mini-cart .woocommerce-mini-cart-item .quantity {
  display: block;
  margin-top: 6px;
}

.single_add_to_cart_button.button,
a.button.alt.product-call-btn {
  background-color: var(--zp-primary) !important;
  color: var(--zp-on-primary) !important;
}

.single_add_to_cart_button.button:hover,
.single_add_to_cart_button.button:focus,
a.button.alt.product-call-btn:hover,
a.button.alt.product-call-btn:focus {
  background-color: #000 !important;
  color: #fff !important;
}

/* Checkout address modal */
.checkout-address-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.checkout-address-modal.is-hidden {
  display: none;
}

.checkout-address-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.checkout-address-modal__content {
  position: relative;
  max-width: 640px;
  width: calc(100% - 32px);
  margin: 60px auto;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.checkout-address-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.checkout-address-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checkout-address-list__item {
  margin-bottom: 12px;
}

.checkout-address-modal .checkout-address-option {
  width: 100%;
  text-align: left;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-address-modal .checkout-address-option.is-selected {
  border-color: #2f80ed;
  box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.2);
}

/* Dashboard sidebar group headers */
#dokan-navigation .menu-group-title {
  list-style: none;
  margin: 12px 0 6px;
  padding: 0 14px;
}

#dokan-navigation .menu-group-title:first-child {
  margin-top: 4px;
}

#dokan-navigation .menu-group-title span {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9c2ff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  position: relative;
}

#dokan-navigation .menu-group-title span::after {
  content: "\25BE";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  opacity: 0.9;
}

#dokan-navigation .menu-group-title span[aria-expanded="false"]::after {
  content: "\25B8";
}

/* Dashboard orders layout */
.dokan-orders-content .order-statuses-filter {
  margin: 0 0 14px;
  padding: 0;
}

.dokan-orders-content .order-statuses-filter li {
  display: inline-block;
  list-style: none;
  margin: 0 10px 6px 0;
  padding-right: 10px;
  position: relative;
}

.dokan-orders-content .order-statuses-filter li:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -2px;
  top: 0;
  color: #9aa0a6;
}

.dokan-orders-content .order-statuses-filter li.active a {
  font-weight: 700;
}

.dokan-orders-content .dokan-order-filter-serach {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dokan-orders-content .dokan-order-filter-serach .dokan-left,
.dokan-orders-content .dokan-order-filter-serach .dokan-right {
  float: none;
}

.dokan-orders-content .dokan-order-filter-serach .dokan-left .dokan-form-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dokan-orders-content .dokan-order-filter-serach .dokan-right .dokan-form-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dokan-orders-content .dokan-filter-search-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
}

.dokan-orders-content #dokan-filter-method {
  width: 190px;
  flex: 0 0 auto;
}

.dokan-orders-content input[name="search"],
.dokan-orders-content #order_filter_date_range {
  width: 190px;
}

.dokan-orders-content .dokan-error {
  border-top: 3px solid #b81f24;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  border-radius: 3px;
  padding: 14px 16px;
  background: #fff;
}

.dokan-orders-content #dashboard-orders-table-wrap .order-cell__label {
  display: none;
}

.dokan-orders-content #dashboard-orders-table-wrap .order-cell__actions-wrap {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
}

.dokan-orders-content #dashboard-orders-table-wrap .order-cell__actions-wrap .dokan-orders-action-cancel {
  background: #ef4444 !important;
  color: #fff !important;
  border-color: #ef4444 !important;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .dokan-orders-content .dokan-order-filter-serach {
    flex-direction: column;
  }

  .dokan-orders-content .dokan-filter-search-row {
    flex-wrap: wrap;
  }

  .dokan-orders-content #dokan-filter-method,
  .dokan-orders-content input[name="search"],
  .dokan-orders-content #order_filter_date_range {
    width: 100%;
    min-width: 0;
  }

  .dokan-orders-content #dashboard-orders-table-wrap table,
  .dokan-orders-content #dashboard-orders-table-wrap thead,
  .dokan-orders-content #dashboard-orders-table-wrap tbody,
  .dokan-orders-content #dashboard-orders-table-wrap tr,
  .dokan-orders-content #dashboard-orders-table-wrap th,
  .dokan-orders-content #dashboard-orders-table-wrap td {
    display: block;
    width: 100%;
  }

  .dokan-orders-content #dashboard-orders-table-wrap thead {
    display: none;
  }

  .dokan-orders-content #dashboard-orders-table-wrap tbody tr {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e8e8ec;
    border-radius: 14px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
    overflow: hidden;
  }
  .dokan-orders-content #dashboard-orders-table-wrap td {
    background: none;
    font-weight: bold;
  }

  .dokan-orders-content #dashboard-orders-table-wrap .order-cell--transaction {
    padding: 14px 16px;
    justify-content: center;
  }

  /* Header band: order # full width */
  .dokan-orders-content #dashboard-orders-table-wrap .order-cell--order {
    flex: 1 0 100%;
    box-sizing: border-box;
    background: #fafafb;
    border-bottom: 1px solid #eee;
    padding: 14px 16px;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
  }
  /* Trạng thái: full-width row, label trái + value phải */
  .dokan-orders-content #dashboard-orders-table-wrap .order-cell--status {
    flex: 1 0 100%;
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #f2f2f4;
  }
  .dokan-orders-content #dashboard-orders-table-wrap .order-cell--status .order-cell__value {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f1f1f1;
    color: #555;
  }
  .dokan-orders-content #dashboard-orders-table-wrap tr[data-status="SUCCEEDED"] .order-cell--status .order-cell__value {
    background: #e6f4ea;
    color: #1e7e34;
  }
  .dokan-orders-content #dashboard-orders-table-wrap tr[data-status="PENDING"] .order-cell--status .order-cell__value {
    background: #fff4e0;
    color: #b9770e;
  }
  .dokan-orders-content #dashboard-orders-table-wrap tr[data-status="FAILED"] .order-cell--status .order-cell__value {
    background: #fdecea;
    color: #c0392b;
  }

  /* Suppress ::before từ dashboard-table-unified vì orders dùng order-cell__label riêng */
  .dokan-orders-content #dashboard-orders-table-wrap td::before {
    display: none !important;
    content: none !important;
  }

  /* Body rows: amount / method / date / shipping, full width, label left + value right */
  .dokan-orders-content #dashboard-orders-table-wrap .order-cell--total,
  .dokan-orders-content #dashboard-orders-table-wrap .order-cell--method,
  .dokan-orders-content #dashboard-orders-table-wrap .order-cell--shipping-status,
  .dokan-orders-content #dashboard-orders-table-wrap .order-cell--date {
    flex: 1 0 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #f2f2f4;
  }
  .dokan-orders-content #dashboard-orders-table-wrap .order-cell__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #8b8f98;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    flex-shrink: 0;
  }

  .dokan-orders-content #dashboard-orders-table-wrap .order-cell__value {
    font-size: 14px;
    color: #1f2430;
    text-align: right;
    overflow-wrap: anywhere;
  }
  .dokan-orders-content #dashboard-orders-table-wrap .order-cell--total .order-cell__value {
    font-size: 16px;
    font-weight: 700;
  }

  /* Footer: full-width action button */
  .dokan-orders-content #dashboard-orders-table-wrap .order-cell--actions {
    flex: 1 0 100%;
    padding: 12px 16px 16px;
  }
  .dokan-orders-content #dashboard-orders-table-wrap .order-cell--actions .order-cell__label {
    display: none;
  }
  .dokan-orders-content #dashboard-orders-table-wrap .order-cell--actions .order-cell__actions-wrap {
    width: 100%;
    gap: 8px;
  }
  .dokan-orders-content #dashboard-orders-table-wrap .order-cell--actions .dokan-orders-action-view,
  .dokan-orders-content #dashboard-orders-table-wrap .order-cell--actions .dokan-orders-action-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 10px 0;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
  }
  .dokan-orders-content #dashboard-orders-table-wrap .order-cell--actions .dokan-orders-action-view {
    border: 1.5px solid var(--zp-primary);
    color: var(--zp-primary);
    background: transparent;
  }
  .dokan-orders-content #dashboard-orders-table-wrap .order-cell--actions .dokan-orders-action-cancel {
    border: 1.5px solid #ef4444 !important;
    background: #ef4444 !important;
    color: #fff !important;
  }
}

.dokan-orders-content .dokan-orders-action-view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #e9e9eb;
  color: var(--zp-ink);
  font-weight: 600;
  text-decoration: none;
}

.dokan-orders-content .dokan-orders-action-view:hover,
.dokan-orders-content .dokan-orders-action-view:focus {
  background: #dcdde1;
  color: #222;
  text-decoration: none;
}

/* Invalid input highlight (AppSecurity.markInvalid) */
.app-input--invalid,
.app-input--invalid.input-text,
input.app-input--invalid,
textarea.app-input--invalid,
select.app-input--invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18) !important;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Toast card: add-to-cart feedback */
.app-toast-root {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.app-toast-card {
  min-width: 260px;
  max-width: min(420px, calc(100vw - 24px));
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
  border-left: 4px solid #22c55e;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-toast-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.app-toast-card--error {
  border-left-color: #ef4444;
}

@media (max-width: 768px) {
  .app-toast-root {
    right: 12px;
    left: 12px;
    top: 12px;
  }

  .app-toast-card {
    min-width: 0;
    max-width: 100%;
  }
}

/* Dashboard widget title: larger + centered */
.dokan-dashboard .dashboard-widget .widget-title {
  font-size: 2rem;
  line-height: 1.25;
  text-align: center;
  font-weight: 700;
  padding: 12px 0;
}

/* Compare preview bar */
#yith-woocompare-preview-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -240px;
  background: rgba(0, 0, 0, .8) !important;
  color: #ffffff !important;
  opacity: 1 !important;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  transition: bottom 0.25s ease;
  z-index: 9999;
}

#yith-woocompare-preview-bar.shown {
  bottom: 0;
}

#yith-woocompare-preview-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 220px 1fr 180px;
  align-items: center;
  gap: 12px;
}

#yith-woocompare-preview-bar header p {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: #ffffff !important;
  font-weight: 600;
}

#yith-woocompare-preview-bar .compare-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

#yith-woocompare-preview-bar .compare-list li {
  min-height: 82px;
  border: 0;
  background: rgba(0, 0, 0, .8) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#yith-woocompare-preview-bar .compare-list li.product-placeholder {
  border: 1px dashed rgba(255, 255, 255, 0.65);
}

#yith-woocompare-preview-bar .compare-list .image-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

#yith-woocompare-preview-bar .compare-list .image-wrap img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  object-position: center;
  background: rgba(0, 0, 0, .8) !important;
  display: block;
}

#yith-woocompare-preview-bar .compare-list .remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
}

#yith-woocompare-preview-bar .compare-list .remove a {
  font-size: 0;
  line-height: 1;
  color: #ffffff !important;
}

#yith-woocompare-preview-bar .compare-list .remove .remove {
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, .8) !important;
  border-radius: 999px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#yith-woocompare-preview-bar footer {
  text-align: right;
}

#yith-woocompare-preview-bar .yith-woocompare-open.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 40px;
  border-radius: 999px;
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--zp-ink) !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#yith-woocompare-preview-bar .yith-woocompare-open.button:hover {
  background: var(--zp-ink) !important;
  border-color: var(--zp-ink) !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  #yith-woocompare-preview-bar {
    bottom: -160px;
  }

  #yith-woocompare-preview-bar.shown {
    bottom: 0;
  }

  #yith-woocompare-preview-bar .container {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
  }

  #yith-woocompare-preview-bar header {
    display: none;
  }

  #yith-woocompare-preview-bar .content {
    min-width: 0;
  }

  #yith-woocompare-preview-bar .compare-list {
    display: flex;
    gap: 6px;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  #yith-woocompare-preview-bar .compare-list::-webkit-scrollbar {
    display: none;
  }

  #yith-woocompare-preview-bar .compare-list li {
    flex: 0 0 52px;
    min-height: 52px;
    border-radius: 6px;
    overflow: visible;
  }

  #yith-woocompare-preview-bar .compare-list .image-wrap img {
    width: 52px;
    height: 52px;
  }

  #yith-woocompare-preview-bar .compare-list .remove {
    top: 2px;
    right: 2px;
    z-index: 5;
  }

  #yith-woocompare-preview-bar .compare-list .remove .remove {
    width: 22px;
    height: 22px;
    font-size: 14px;
    background: #fff !important;
    color: #111827 !important;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }

  #yith-woocompare-preview-bar footer {
    text-align: right;
  }

  #yith-woocompare-preview-bar .yith-woocompare-open.button {
    min-width: 138px;
    height: 46px;
    border-radius: 999px;
    font-size: 13px;
    padding: 0 14px;
  }
}

/* Compare popup */
#yith-woocompare-popup.yith-woocompare-popup-container {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(255, 255, 255, .95);
  overflow: auto;
}

#yith-woocompare-popup .yith-woocompare-table-wrapper {
  width: 100%;
  margin: 0;
  min-height: 100vh;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 24px;
}

#yith-woocompare-popup .yith-woocompare-table-scroll-wrapper {
  position: relative;
}

#yith-woocompare-popup .yith-woocompare-popup-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 3;
}

#yith-woocompare-popup .dataTables_scrollBody {
  overflow: auto;
}

#yith-woocompare-popup #yith-woocompare-table {
  min-width: 980px;
  margin-top: 100px;
}

#yith-woocompare-popup #yith-woocompare-table th,
#yith-woocompare-popup #yith-woocompare-table td {
  padding: 12px;
  border-bottom: 1px solid #eceff3;
  vertical-align: top;
}

#yith-woocompare-popup #yith-woocompare-table .product_info td .image-wrap img {
  width: 220px;
  height: 154px;
  object-fit: contain;
}

body.compare-popup-open #yith-woocompare-preview-bar {
  display: none !important;
}

p.form-row.form-row-first.config {
  padding-right: 15px !important;
}

i.fas.fa-external-link-alt.config {
  padding-right: 8px;
}

.product_list_widget img,
.product_list_widget .wp-post-image {
  height: 90px !important;
}

.aff-price-row.config {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 8px;
}

/* ===== Dynamic Page (TemplatePages) ===== */
.dynamic-page-content a {
  color: #0d6efd;
}

.dynamic-page-content a:hover,
.dynamic-page-content a:focus {
  color: #0a58ca;
  text-decoration: underline;
}

.dynamic-page-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0;
}

.dynamic-page-table {
  width: 100%;
  border-collapse: collapse;
}

.dynamic-page-table th,
.dynamic-page-table td {
  border: 1px solid #d9d9d9;
  padding: 10px 12px;
  vertical-align: top;
}

.dynamic-page-table th {
  background: #f8f9fa;
  font-weight: 600;
}

.dynamic-page-media {
  margin: 16px auto;
  text-align: center;
}

.dynamic-page-media img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.header-with-cover-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 360px;
  margin-bottom: 32px;
}

.header-with-cover-image .caption {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 24px;
}

.header-with-cover-image .entry-title {
  margin: 0 0 12px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  color: #000;
}

.header-with-cover-image .entry-subtitle {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: #000;
}

.dynamic-page-title {
  margin-bottom: 24px;
  text-align: center;
}

.dynamic-page-title .entry-title {
  margin-bottom: 12px;
  font-weight: 700;
}

.dynamic-page-title .entry-subtitle {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.page .entry-header.dynamic-page-title {
  margin-top: 32px;
}

textarea#wpforms-5460-field_2 {
  min-height: 200px;
}

.wpb_text_column.wpb_content_element.inner-left-xs {
  margin-top: 16px;
}

.why-us__card{
  background-color: #F5F5F5;
  border-radius: 8px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-size: 100% auto;
  border-color: var(--zp-primary) !important;
  border-top: 3px solid transparent;
}

/* .category-grid__card { aspect-ratio: 3 / 4; } */
.category-grid__img { object-fit: cover; width: 100%; height: 100%; transition: transform 0.4s ease; }
.category-grid__card:hover .category-grid__img { transform: scale(1.07); }
.category-grid__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.why-us__heading {
  font-size: 1.75rem;
  color: #111;
}
.why-us__card {
  border: 1px solid #e8e8e8;
  border-radius: 0.875rem;
  background-color: #fff;
  padding: 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
}
.why-us__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09);
  border-color: var(--zp-primary);
}
.why-us__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: var(--zp-primary);
  color: var(--zp-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.why-us__title {
  font-size: 1rem;
  color: #111;
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.why-us__des {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
}

.promotion-block{
  border-radius: 15px;
}
.promotion-block__img {
  min-height: 300px;
}

.promotion-block__card {
  background-color: #fff;
  border-radius: 4px;
  border-top: 3px solid var(--zp-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.promotion-block__card:hover {
  border-top-color: var(--bs-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.usp-bar__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.usp-bar__scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.usp-bar__item {
  min-width: 200px;
}

.usp-bar__icon {
  max-width: 60px;
  height: auto;
}

.promotion-block__img-col {
  min-height: 280px; /* mobile floor so image has height before lg breakpoint */
}

.promotion-block__img {
  display: block;
}

.promotion-block__card {
  background-color: #fff;
  border-radius: 4px;
  border-top: 3px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.promotion-block__card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

  body .content-wrapper {
    flex: 0 0 auto;
    width: 100%;
  }
.feature1 {
  transition: background 0.2s;
}
.feature1:hover {
  background: rgba(var(--zp-primary-rgb), 0.08);
}
.features-list .feature1 {
    border-bottom: none;
    padding-right: 0;
    display: flex;
}

.features-list .feature1:not(:last-child) {
    border-right: 1px solid #dddddd;
}
.section-product-cards-carousel .product-card {
  /* border-radius: 0.5rem;
  overflow: hidden; */
  transition: box-shadow 0.2s ease;
}
.section-product-cards-carousel .product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.category-grid__title{
  font-size: 1.5rem
}
.category-grid__price{
  font-size: 1rem
}

/* promo-carousel.css */
.promo-carousel__controls {
  padding-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: end;
}

.promo-carousel__btn {
  width: 1rem;
  /* height: 3rem; */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.promo-carousel__dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.promo-carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
}
.promo-carousel__dot {
  background: rgba(95, 95, 95, 0.45);
}
.promo-carousel__dot.is-active {
  background: #000;
}

.promo-btn-outline {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid #000;
  background: transparent;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2rem;
  transition: all 0.25s ease;
}

.promo-btn-outline:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.promo-btn-outline:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.15);
}

.promo-btn-outline:active {
  transform: translateY(1px);
}

.hero-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}
.hero-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  position: relative;
}
.hero-slide img {
  display: block;
  width: 100%;
  height: auto;
}
/* Overlay sits inside .container bounds */
.hero-overlay-anchor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-overlay-anchor > .container {
  height: 100%;
  position: relative;
}
.hero-overlay-card {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background-color: var(--zp-primary);
  max-width: 300px;
  min-width: 260px;
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: all;
}
/* Dots */
.hero-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 10;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  transition: width 0.2s, border-radius 0.2s, background 0.2s;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-dot.is-active {
  width: 24px;
  border-radius: 4px;
  background: #111;
}

@media (max-width: 991.98px) {
  .hero-slide > div.d-flex.d-lg-none {
    padding-bottom: 2.5rem !important;
  }
}

.yamm > .menu-item > a {
  position: relative;
  text-decoration: none;
}
.yamm > .menu-item > a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--zp-primary);
  transition: width 0.22s ease;
}
.yamm > .menu-item:hover > a::after,
.yamm > .menu-item.active > a::after {
  width: 100%;
}
.category-grid__card { display: block; }
.category-grid__img-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
}
.category-grid__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.category-grid__card:hover .category-grid__img { transform: scale(1.05); }
.category-grid__overlay {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 2rem 0.875rem 0.875rem;
  border-radius: 0 0 0.75rem 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
}
.category-grid__title { font-size: 0.9rem; }
.category-grid__price { font-size: 0.75rem; opacity: 0.85; }
@media (min-width: 768px) {
  .category-grid__img-wrap { padding-bottom: 120%; }
  .category-grid__title { font-size: 1rem; }
  .category-grid__price { font-size: 0.8rem; }
}
.promo-nav__btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #999;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: #555;
  background: transparent;
  user-select: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.promo-nav__btn:hover {
  border-color: #222;
  color: #222;
  background: rgba(0, 0, 0, 0.04);
}

.pricing-tier-table {
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.pricing-tier-table__header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--zp-ink);
    color: #ffffff;
    padding: 10px 16px;
}

.pricing-tier-table__icon {
    font-size: 16px;
    line-height: 1;
}

.pricing-tier-table__title {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
}

.pricing-tier-table__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pricing-tier-table__table thead th {
    text-align: left;
    padding: 10px 16px;
    background: #f4f5f6;
    color: var(--zp-ink);
    font-weight: 600;
    border-bottom: 2px solid var(--zp-primary);
}

.pricing-tier-table__table tbody td {
    padding: 10px 16px;
    color: var(--zp-ink);
    border-bottom: 1px solid #eef0f2;
}

.pricing-tier-table__table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-tier-table__table tbody tr[data-tier-row]:hover td {
    background: #fffbe0;
}

.pricing-tier-table__table tbody tr[data-tier-row].is-active td {
    background: #fff3b0;
    font-weight: 600;
}

.pricing-tier-table__summary {
    padding: 14px 16px 16px;
    border-top: 1px solid #eef0f2;
}
.pricing-tier-table__submit-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
}
.pricing-tier-table__qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--zp-ink);
}

.pricing-tier-table__badge {
    background: var(--zp-primary-soft);
    color: var(--zp-primary);
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.pricing-tier-table__price-row {
    align-items: center;
}
.pricing-tier-table__price-text {
    padding: 0;
    align-items: end;
    justify-content: end;
    display: flex;
    flex-direction: column;
}
.pricing-tier-table__label {
    font-size: 12px;
    color: #7a8189;
    margin-bottom: 2px;
}

.pricing-tier-table__unit-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--zp-ink);
}

.pricing-tier-table__total-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--zp-ink);
}

.pricing-tier-table__qty-control {
    margin-bottom: 10px;
}

.pricing-tier-table__qty-control .product-qty-wrap {
    margin-bottom: 10px;
}

.pricing-tier-table__qty-control .product-qty-input {
    border: 1px solid #d8dbde;
    border-radius: 6px;
    padding: 8px 10px;
    width: 90px;
    color: var(--zp-ink);
}

.pricing-tier-table__qty-control .single_add_to_cart_button {
    background: var(--zp-primary);
    border: 1px solid var(--zp-primary);
    color: var(--zp-on-primary);
    font-weight: 700;
    border-radius: 6px;
    padding: 10px 16px;
    width: 100%;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.pricing-tier-table__qty-control .single_add_to_cart_button:hover:not(:disabled) {
    background: var(--zp-primary-dark);
    border-color: var(--zp-primary-dark);
}

.pricing-tier-table__qty-control .single_add_to_cart_button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pricing-tier-table__qty-control .product-call-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: var(--zp-ink);
    border: 1px solid var(--zp-ink);
    color: #ffffff;
    font-weight: 700;
    border-radius: 6px;
    padding: 10px 16px;
}

.pricing-tier-table__note {
    font-size: 12px;
    color: #9aa1a8;
    margin: 0;
}
div#content {
    margin-bottom: 15px !important;
}

.dokan-order-filter-serach input[type="date"].dokan-form-control {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #1a1a1a;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  min-width: 150px;
}

.dokan-order-filter-serach input[type="date"].dokan-form-control:focus {
  outline: none;
  border-color: var(--zp-primary);
  box-shadow: 0 0 0 2px rgba(var(--zp-primary-rgb), 0.25);
}

.dokan-order-filter-serach input[type="date"].dokan-form-control::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  filter: none;
}

.dokan-order-filter-serach input[type="date"].dokan-form-control::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}
.dokan-dashboard .dokan-dash-sidebar {
  /* width: 258px;
  min-width: 258px; */
  padding-top: 1rem;
  flex-shrink: 0;
  background: var(--zp-ink);
  min-height: auto;
  display: flex;
  flex-direction: column;
}

.dokan-dashboard .dokan-dash-sidebar #dokan-navigation {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.dokan-dashboard .dokan-dash-sidebar .dokan-dashboard-menu {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* ===== KYC / Verification Section ===== */
.kyc-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.kyc-page-header .entry-title {
  margin: 0;
}
.kyc-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}
.kyc-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}
.kyc-notice--warning { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.kyc-notice i { font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.kyc-notice div { flex: 1; }
.kyc-notice p { margin: 4px 0 0; font-size: 13.5px; }
.kyc-notice .dokan-btn { flex-shrink: 0; white-space: nowrap; align-self: center; }

.kyc-form .kyc-section {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 18px;
  background: #fff;
}
.kyc-section__title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.kyc-section__title i { color: #6b7280; }
.kyc-section__sub { font-size: 12px; font-weight: 400; color: #9ca3af; }

.kyc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.kyc-grid .form-row { margin-bottom: 12px; }

.kyc-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.kyc-channel-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal !important;
  cursor: pointer;
  font-size: 13.5px;
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
}
.kyc-channel-label:hover { background: #f3f4f6; }

.kyc-doc-row {
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
  background: #fafafa;
}
.kyc-doc-row__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.kyc-doc-row__header select { flex: 1; min-width: 0; }
.kyc-doc-row__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.kyc-review-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  white-space: nowrap;
}
.kyc-review-badge--approved { background: #dcfce7; color: #166534; }
.kyc-review-badge--rejected { background: #fee2e2; color: #991b1b; }
.kyc-review-badge--pending_kyc, .kyc-review-badge--pending { background: #fef9c3; color: #854d0e; }

.kyc-doc-row__preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.kyc-doc-row__img {
  max-width: 100px;
  max-height: 80px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}
.kyc-doc-row__link { font-size: 12.5px; color: #2563eb; }

.kyc-file-label {
  font-size: 12px;
  color: #6b7280;
  display: block;
  margin-bottom: 4px;
}

.kyc-form__footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  margin-top: 4px;
}

@media (max-width: 767px) {
  .kyc-grid { grid-template-columns: 1fr; }
  .kyc-doc-row__header { flex-wrap: wrap; }
  .kyc-form__footer { justify-content: stretch; }
  .kyc-form__footer .dokan-btn { width: 100%; text-align: center; }
}

/* ===== Checkbox ===== */
.dashboard-checkbox {
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 8px;
  vertical-align: middle;
}

/* ===== Button size variants ===== */
.dokan-btn.dokan-btn-sm {
  font-size: 13px !important;
  padding: 5px 12px !important;
}

/* ===== Order cancel modal buttons ===== */
.order-cancel-modal__btn {
  flex: 1;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 10px !important;
  border-radius: 8px !important;
  cursor: pointer;
}
.order-cancel-modal__btn--danger {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #fff !important;
}
.order-cancel-modal__btn--danger:hover,
.order-cancel-modal__btn--danger:focus {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}

/* ===== Address Section ===== */
.dashboard-addresses-wrap {
  margin-top: 20px;
}
.addr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.addr-header .entry-title {
  margin: 0;
}
.addr-list {
  margin-top: 8px;
}
.addr-empty {
  color: #999;
  font-size: 13.5px;
  padding: 24px 0;
  text-align: center;
}

/* Card */
.dashboard-address-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.addr-card__left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.addr-card__bar {
  width: 3px;
  min-height: 52px;
  border-radius: 3px;
  flex-shrink: 0;
  background: #e5e7eb;
  margin-top: 3px;
}
.addr-card__bar--default {
  background: #c8a96e;
}
.addr-card__info {
  flex: 1;
  min-width: 0;
}
.addr-card__label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.addr-card__label {
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
}
.addr-card__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #92701a;
  background: #fef3cd;
  border: 1px solid #f5d97f;
  padding: 1px 8px;
  border-radius: 3px;
}
.addr-card__line {
  font-size: 13.5px;
  color: #333;
  margin-bottom: 3px;
}
.addr-card__line--muted {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
}
.addr-card__edit-btn {
  flex-shrink: 0;
  padding: 6px 14px !important;
  font-size: 13px !important;
  margin-top: 2px;
}

/* Modal overlay */
.addr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.addr-modal {
  width: calc(100% - 32px);
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 6px;
  position: relative;
}
.addr-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.addr-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}
.addr-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #999;
  padding: 0 4px;
}
.addr-modal__form {
  padding: 16px 20px 20px;
}
.addr-modal__default-row {
  display: flex;
  align-items: flex-end;
  padding-bottom: 10px;
}
.addr-modal__checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
  margin: 0;
}
.addr-modal__checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  margin-right: 6px;
}
.addr-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
  flex-wrap: wrap;
}
.addr-modal__footer-actions {
  display: flex;
  gap: 8px;
}
.addr-modal__delete-btn {
  color: #c0392b !important;
  border-color: #c0392b !important;
  font-size: 13px !important;
  padding: 7px 14px !important;
}
.addr-modal__delete-btn,
.addr-modal__footer-actions .dokan-btn {
  font-size: 13px !important;
  padding: 7px 16px !important;
}
.addr-modal__footer-actions .dokan-btn-theme {
  padding: 7px 18px !important;
}

/* ===== Account Tier Card ===== */
.at-wrap {
  margin-bottom: 16px;
  margin-top: 10px;
  font-family: inherit;
}
.at-card {
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.at-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 14px;
}
.at-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.at-name {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}
.at-badges {
  display: flex;
  gap: 6px;
  align-items: center;
}
.at-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.at-tier-badge i {
  font-size: 10px;
}
.at-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 20px;
  background: #f5f3ff;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #c4b5fd;
}
.at-top-badge i {
  font-size: 10px;
}
.at-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid #f1f5f9;
}
.at-stat {
  padding: 14px 18px;
}
.at-stat + .at-stat {
  border-left: 1px solid #f1f5f9;
}
.at-stat-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.at-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}
.at-progress-section {
  padding: 18px 22px 20px;
}
.at-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.at-progress-title {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}
.at-progress-hint {
  font-size: 12px;
  color: #64748b;
}
.at-progress-max {
  font-size: 12px;
  color: #7c3aed;
  font-weight: 600;
}
.at-progress-max i {
  margin-right: 4px;
}
.at-timeline {
  position: relative;
  padding: 0 10px;
}
.at-track-bg {
  position: absolute;
  top: 13px;
  left: 10px;
  right: 10px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 4px;
  z-index: 0;
}
.at-track-fill {
  position: absolute;
  top: 13px;
  left: 10px;
  height: 4px;
  border-radius: 4px;
  z-index: 1;
  max-width: calc(100% - 20px);
}
.at-milestones {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.at-milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.at-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
}
.at-dot i {
  font-size: 11px;
}
.at-milestone-label {
  text-align: center;
}
.at-milestone-name {
  font-size: 11px;
  font-weight: 500;
}
.at-milestone-name.is-current {
  font-weight: 700;
}
.at-milestone-pts {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 1px;
}
.at-footnote {
  margin-top: 14px;
  font-size: 11px;
  color: #94a3b8;
  text-align: right;
}

@media (min-width: 768px) {
  .at-dot {
    width: 38px;
    height: 38px;
  }
  .at-dot i {
    font-size: 16px;
  }
  .at-track-bg,
  .at-track-fill {
    top: 18px;
  }
}

/* ===== Account Tier — Benefits ===== */
.at-benefits {
  border-top: 1px solid #f1f5f9;
  padding: 16px 22px 20px;
}
.at-benefits-title {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.at-policy {
  margin-bottom: 12px;
}
.at-policy:last-child {
  margin-bottom: 0;
}
.at-policy-name {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.at-rules-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.at-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}
.at-rule-item i {
  margin-top: 3px;
  flex-shrink: 0;
}
.at-no-benefits {
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
}

.at-rule-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== Voucher Picker ===== */
/* #voucher-picker {
  border: 1px solid rgba(0,0,0,.08) !important;
  background: #fff;
} */
.skeleton-pulse {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}
.skeleton-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}
.skeleton-text-title {
  height: 16px;
  border-radius: 4px;
}
.skeleton-text-sub {
  height: 12px;
  border-radius: 4px;
}
.skeleton-badge {
  width: 80px;
  height: 22px;
  border-radius: 12px;
}
.voucher-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid #e9ecef;
  cursor: pointer;
  position: relative;
}
.voucher-card:hover:not(.disabled) {
  border-color: var(--zp-primary);
  background-color: var(--zp-primary-tint);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--zp-primary-rgb), 0.12);
}
.voucher-card.selected {
  border-color: var(--zp-primary);
  background-color: var(--zp-primary-tint);
}
.voucher-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  background-color: #f8f9fa;
}
.voucher-checkbox-custom {
  width: 20px;
  height: 20px;
  accent-color: var(--zp-primary);
  cursor: pointer;
}
.btn-warning {
  background-color: var(--zp-primary) !important;
  color: var(--zp-on-primary) !important;
  transition: all 0.2s ease;
}
.btn-warning:hover {
  background-color: #e5c100 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.usp-bar__item {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
@media (min-width: 576px) {
  .usp-bar__item { flex: 0 0 calc((100% - 1rem) / 2); }
}
@media (min-width: 768px) {
  .usp-bar__item { flex: 0 0 calc((100% - 2rem) / 3); }
}

/* ===== Confirm modal buttons (order cancel, address delete, ...) ===== */
.order-cancel-modal__btn {
  transition: background 0.2s, border-color 0.2s;
}
.order-cancel-modal__btn:not(.order-cancel-modal__btn--danger):not(.dokan-btn-theme):hover {
  background: #f3f4f6 !important;
  border-color: #9ca3af !important;
  color: #111827 !important;
}
@media (max-width: 767.98px) {
  .footer-v2 {
    font-size: 13px;
  }
  .footer-v2 .call-us-number {
    font-size: 14px;
  }

  .footer-call-us, .footer-social-icons .social-icons, .footer-logo, .footer-address {
    margin-bottom: 1.5em;
  }
  .footer-v2 .footer-bottom-widgets-menu-inner .widget-title {
    font-size: 13px;
    margin-bottom: 8px;
  }
  .footer-v2 .footer-bottom-widgets-menu-inner .menu-item {
    font-size: 12px;
    line-height: 1.6;
  }
  .footer-v2 .copyright-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .footer-v2 .copyright-bar .copyright {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    float: none;
  }
  .footer-v2 .copyright-bar .payment {
    float: none;
    flex-shrink: 0;
  }
  .footer-v2 .copyright-bar .payment img {
    max-height: 20px;
  }
}
#app-notice-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.app-notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(51, 62, 72, 0.55);
  backdrop-filter: blur(2px);
}
.app-notice-box {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px 20px;
  max-width: 340px;
  width: 100%;
  box-shadow: 0 16px 40px rgba(51, 62, 72, 0.25);
  text-align: center;
  animation: app-notice-pop 0.18s ease-out;
}
@keyframes app-notice-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.app-notice-box::before {
  content: '!';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fde8e8;
  color: #c0392b;
  font-weight: 700;
  font-size: 1.1rem;
}
.app-notice-box.app-notice-warning::before {
  content: '!';
  background: #fff6d9;
  color: #b8860b;
}
.app-notice-box.app-notice-success::before {
  content: '✓';
  background: #e6f6ec;
  color: #1e8e4f;
}
.app-notice-message {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--zp-ink);
}
.app-notice-close {
  border: none;
  background: var(--zp-ink);
  color: #fff;
  padding: 9px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s ease;
}
.app-notice-close:hover {
  background: #20262e;
}

.zoom-wrap {
  overflow: hidden;
}
.zoom-img {
  transition: transform 0.3s ease;
}
.product:hover .zoom-img {
  transform: scale(1.08);
}
.title-hover {
  transition: text-decoration-color 0.2s ease;
  text-decoration: none;
}
.product:hover .title-hover {
  text-decoration: underline;
}
.cat-link-hover {
  text-decoration: none;
  transition: text-decoration-color 0.2s ease;
}
.cat-link-hover:hover {
  text-decoration: underline;
}
#shop-pagination {
  align-items: center;
}
#shop-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--zp-ink);
  text-decoration: none;
  background: #fff;
}
#shop-pagination a:hover {
  border-color: var(--zp-ink);
}
#shop-pagination a.active {
  background: var(--zp-ink);
  border-color: var(--zp-ink);
  color: #fff;
  font-weight: 600;
}
#shop-pagination a[rel="prev"],
#shop-pagination a[rel="next"] {
  border-color: #eee;
  color: #999;
  font-size: 1rem;
}
#shop-pagination a[rel="prev"]:hover,
#shop-pagination a[rel="next"]:hover {
  color: var(--zp-ink);
}
#shop-pagination .pagination-info {
  margin-left: 6px;
  font-size: 0.85rem;
  color: #777;
}
#shop-pagination a.disabled {
  pointer-events: none;
  color: #ccc;
  border-color: #eee;
}
.fs-7 {
    font-size: 0.775rem !important;
}
.card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: var(--zp-primary);
  text-decoration: none;
  color: var(--zp-on-primary);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
}
.card-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-btn i {
  flex-shrink: 0;
}
.card-btn:hover {
  color: var(--zp-on-primary);
  background: var(--zp-primary-dark);
  border-color: var(--zp-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.card-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.order-received-page { padding: 32px 0 56px; }

/* Hero */
.order-hero__icon {
  width: 56px; height: 56px; min-width: 56px;
  border-radius: 50%;
  background: var(--zp-primary);
  color: var(--zp-on-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.order-hero__title { color: var(--zp-ink); font-weight: 700; font-size: 1.75rem; }
.order-hero__subtitle { color: #6b7580; font-size: 0.95rem; }

/* Summary cards */
.order-summary-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
@media (max-width: 767px) {
  .order-summary-card { grid-template-columns: repeat(2, 1fr); }
}
.order-summary-card__item {
  padding: 16px 18px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  display: flex; flex-direction: column; gap: 4px;
}
.order-summary-card__item:last-child { border-right: none; }
@media (max-width: 767px) {
  .order-summary-card__item:nth-child(2n) { border-right: none; }
  .order-summary-card__item:nth-last-child(-n+2) { border-bottom: none; }
}
.order-summary-card__item--accent { background: var(--zp-primary); border-right: none; }
.order-summary-card__label { font-size: 0.78rem; color: #8a93a0; text-transform: uppercase; letter-spacing: 0.03em; }
.order-summary-card__item--accent .order-summary-card__label { color: rgba(255, 255, 255, 0.75); }
.order-summary-card__value { color: var(--zp-ink); font-size: 1.05rem; }
.order-summary-card__value--accent { color: var(--zp-on-primary); font-size: 1.15rem; }

/* Section */
.order-section__title {
  display: flex; align-items: center; gap: 10px;
  color: var(--zp-ink); font-weight: 700; font-size: 1.15rem;
  margin-bottom: 16px;
}
.order-section__title-icon { color: var(--zp-primary); font-size: 1rem; }
.order-section__body {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

/* Table */
.order-table { border-collapse: collapse; }
.order-table thead th {
  background: #f7f8f9;
  color: #6b7580;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  padding: 12px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.order-table__row td { padding: 14px 20px; border-bottom: 1px solid #f0f1f3; vertical-align: middle; }
.order-table__row:last-child td { border-bottom: none; }
.order-table__product-link { color: var(--zp-ink); font-weight: 600; text-decoration: none; }
.order-table__product-link:hover { color: #1f2730; text-decoration: underline; }
.order-table__qty { color: #8a93a0; font-size: 0.9rem; margin-left: 6px; }
.order-table__total { color: var(--zp-ink); font-weight: 600; white-space: nowrap; }

/* Totals */
.order-totals { padding: 16px 20px 20px; border-top: 1px solid #e5e7eb; background: #fafbfb; }
.order-totals__row {
  display: flex; justify-content: space-between;
  padding: 8px 0; color: #6b7580; font-size: 0.92rem;
}
.order-totals__row--grand {
  border-top: 1px dashed #d7dbe0;
  margin-top: 6px; padding-top: 12px;
  color: var(--zp-ink); font-weight: 700; font-size: 1.05rem;
}

/* Address cards */
.order-address-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 18px 20px;
}
.order-address-card__title {
  display: flex; align-items: center; gap: 8px;
  color: var(--zp-ink); font-weight: 700; font-size: 0.98rem;
  margin-bottom: 10px;
}
.order-address-card__title-icon { color: var(--zp-primary); font-size: 0.9rem; }
.order-address-card__body { font-style: normal; color: #4a5058; line-height: 1.7; font-size: 0.92rem; }
.order-address-card__name { color: var(--zp-ink); font-weight: 600; }
.order-address-card__meta { color: #6b7580; margin-top: 4px; }
.order-address-card__meta i { color: #8a93a0; width: 14px; }

/* Empty state */
.order-empty-state__icon { font-size: 2.5rem; color: #d7263d; display: block; margin-bottom: 12px; }

.hw-item-btn {
    background-color: var(--zp-primary);
    color: var(--zp-on-primary);
    border: none;
    border-radius: 6px;
    font-weight: 700;
}

.py-60{
  padding: 40px 0;
}

.checkout-button, 
.updatecart-button {
  border: none;
  border-radius: 6px;
  font-weight: 700;
  width: 100%;
  height: 100%;
}
.checkout-button{
  background-color: var(--zp-primary);
  color: var(--zp-on-primary);
}
#voucher-picker {
  border-radius: 6px;
}

  #content.site-content {
    --z-dark: var(--zp-ink);
    --z-accent: var(--zp-primary);
    --z-accent-dark: var(--zp-primary-dark);
    --z-danger: #dc3545;
    --z-border: #e9ecef;
    --z-muted: #6c757d;
    --z-bg: #f4f5f7;
    /* background: var(--z-bg); */
  }


  #post-3134 .entry-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--z-dark);
    margin-bottom: 1.5rem;
  }

  #post-3134 .col-md-7 { padding-right: 1.25rem; }
  #post-3134 .col-md-5 {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-left: 1.25rem;
  }

  /* ---- Cart items table ---- */
  #post-3134 .shop_table.cart {
    background: #fff;
    border: 1px solid var(--z-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border-collapse: collapse;
    width: 100%;
  }
  #post-3134 .shop_table.cart thead th{
    background: var(--z-dark);
    color: #fff;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--z-border);
  }

  #post-3134 .cart_item { transition: background-color 0.15s ease; }
  #post-3134 .cart_item:hover { background-color: #fafbfc; }
  #post-3134 .cart_item td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--z-border);
    vertical-align: middle;
  }
  #post-3134 .cart_item:last-child td { border-bottom: none; }

  #post-3134 .product-thumbnail img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--z-border);
    padding: 6px;
  }
  #post-3134 .product-name a {
    color: var(--z-dark);
    font-weight: 600;
    text-decoration: none;
  }
  #post-3134 .product-name a:hover { color: var(--z-accent-dark); text-decoration: underline; }
  #post-3134 .product-price .woocommerce-Price-amount { color: var(--z-muted); font-size: 0.9rem; }
  #post-3134 .product-subtotal .woocommerce-Price-amount { color: var(--z-dark); font-weight: 700; }

  #post-3134 .quantity .input-text.qty {
    /* width: 64px !important;
    height: 40px !important; */
    border: 1px solid var(--z-border);
    border-radius: 8px;
    text-align: center;
    font-weight: 400;
    color: var(--z-dark);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  #post-3134 .quantity .input-text.qty:focus {
    outline: none;
    border-color: var(--z-dark);
    box-shadow: 0 0 0 3px rgba(51,62,72,0.1);
  }
  #post-3134 [data-moq-warning] {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
  }

  #post-3134 .remove.remove_from_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--z-muted);
    font-size: 1.1rem;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  #post-3134 .remove.remove_from_cart_button:hover {
    background: #fdecea;
    color: var(--z-danger);
  }

  /* ---- Order summary card ---- */
  #post-3134 .col-md-5 h2 {
    /* font-size: 0.78rem; */
    font-weight: 700;
    color: var(--z-dark);
    margin-bottom: 0;
  }
  #post-3134 .col-md-5 .shop_table {
    background: #fff;
    border: 1px solid var(--z-border);
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  #post-3134 .col-md-5 .shop_table tr td {
    border: none;
    border-bottom: 1px solid var(--z-border);
    padding: 1.1rem 1.25rem;
    font-weight: 500;
    color: var(--z-dark);
  }
  #post-3134 .col-md-5 .shop_table tr:last-child th,
  #post-3134 .col-md-5 .shop_table tr:last-child td { border-bottom: none; }
  #post-3134 .col-md-5 .shop_table th { font-weight: 500; color: var(--z-muted); }

  #post-3134 .woocommerce-shipping-destination {
    font-size: 0.85rem;
    color: var(--z-muted);
    margin: 0.4rem 0 0;
  }
  #post-3134 .shipping-calculator-button {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--z-dark);
    text-decoration: underline;
  }
  #post-3134 .shipping-calculator-form {
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--z-bg);
    border-radius: 10px;
  }
  #post-3134 .shipping-calculator-form .form-row { margin-bottom: 0.6rem; }
  #post-3134 .shipping-calculator-form .input-text,
  #post-3134 .shipping-calculator-form select {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--z-border);
    border-radius: 8px;
  }

  /* ---- Action buttons ---- */
  #post-3134 .updatecart-button,
  #post-3134 .checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  }
  #post-3134 .updatecart-button {
    background: #fff;
    border: 1px solid var(--z-border);
    color: var(--z-muted);
  }
  #post-3134 .updatecart-button:disabled {
    background: var(--z-bg);
    opacity: 1;
    cursor: not-allowed;
  }
  #post-3134 .checkout-button {
    background: var(--z-accent);
    color: var(--zp-on-primary);
    box-shadow: 0 2px 8px rgba(var(--zp-primary-rgb), 0.35);
  }
  #post-3134 .checkout-button:hover {
    background: var(--z-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--zp-primary-rgb), 0.45);
  }
  #post-3134 .checkout-button.disabled {
    background: var(--z-border);
    color: var(--z-muted);
    box-shadow: none;
    pointer-events: none;
  }

  /* ---- Mobile: table rows -> cards, using existing data-title attrs ---- */
  @media (max-width: 767.98px) {
    #post-3134 .col-md-7 { padding-right: 0; }
    #post-3134 .col-md-5 { padding-left: 0; }
    #post-3134 .shop_table.cart thead { display: none; }
    #post-3134 .cart_item {
      display: block;
      padding: 1rem;
      border-bottom: 1px solid var(--z-border);
    }
    #post-3134 .cart_item td {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border: none;
      padding: 0.4rem 0;
    }
    #post-3134 .cart_item td[data-title]::before {
      content: attr(data-title);
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--z-muted);
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    #post-3134 .cart_item td.product-thumbnail { justify-content: flex-start; }
    #post-3134 .cart_item td.product-name { flex-direction: column; align-items: flex-start; }
    #post-3134 .cart_item td.product-remove { justify-content: flex-end; }
  }

        .woocommerce-billing-fields__field-wrapper {
          display: flex;
          flex-wrap: wrap;
          gap: 20px;
        }
        .woocommerce-billing-fields__field-wrapper .form-row {
          margin-bottom: 0;
        }
        .woocommerce-billing-fields__field-wrapper .form-row-wide {
          flex: 0 0 100%;
        }
        .woocommerce-billing-fields__field-wrapper .form-row-first,
        .woocommerce-billing-fields__field-wrapper .form-row-last {
          flex: 1 1 calc(50% - 10px);
          min-width: 0;
        }
        .woocommerce-billing-fields__field-wrapper .input-text {
          width: 100%;
          box-sizing: border-box;
          padding: 12px 14px;
        }
@media (max-width: 575.98px) {
    .pricing-tier-table__price-row { row-gap: .5rem; }

    .pricing-tier-table__price-row > .quantity {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .pricing-tier-table__price-row > .pricing-tier-table__price-text {
        flex: 0 0 50%;
        max-width: 50%;
        text-align: left;
    }
    .pricing-tier-table__price-row > .pricing-tier-table__price-text:last-child {
        text-align: right;
    }

    .pricing-tier-table__unit-price,
    .pricing-tier-table__total-price {
        font-size: 1rem;
        line-height: 1.3;
        white-space: nowrap;
    }
    .pricing-tier-table__qty-row{
      flex-direction: column;
    }
}
@media (max-width: 767.98px) {
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-additional-fields__field-wrapper {
    display: flex;
    flex-direction: column;
  }
  .woocommerce-billing-fields__field-wrapper .form-row,
  .woocommerce-additional-fields__field-wrapper .form-row {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .cart.woocommerce-cart-form__contents,
  .cart.woocommerce-cart-form__contents tbody {
    display: block !important;
    width: 100%;
  }

  .cart.woocommerce-cart-form__contents thead {
    display: none !important;
  }

  .cart.woocommerce-cart-form__contents tbody tr.cart_item {
    position: relative;
    display: grid !important;
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto auto auto;
    column-gap: 12px;
    row-gap: 4px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 36px 14px 14px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
  }

  .cart.woocommerce-cart-form__contents tbody tr.cart_item td {
    display: block !important;
    min-width: 0;
    padding: 0 !important;
    border: none !important;
    text-align: left !important;
  }
  .cart.woocommerce-cart-form__contents tbody tr.cart_item td::before {
    content: none !important;
  }

  /* thumbnail */
  .cart.woocommerce-cart-form__contents td.product-thumbnail {
    grid-column: 1;
    grid-row: 1 / 5;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 8px;
  }
  .cart.woocommerce-cart-form__contents td.product-thumbnail img {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px;
    object-fit: cover;
    border-radius: 8px;
  }

  /* name */
  .cart.woocommerce-cart-form__contents td.product-name {
    grid-column: 2;
    grid-row: 1;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cart.woocommerce-cart-form__contents td.product-name a {
    color: var(--zp-ink);
  }

  /* unit price */
  .cart.woocommerce-cart-form__contents td.product-price {
    grid-column: 2;
    grid-row: 2;
    font-size: 13px;
    color: #6b7280;
  }

  /* quantity */
  .cart.woocommerce-cart-form__contents td.product-quantity {
    grid-column: 2;
    grid-row: 3;
    display: flex !important;
    justify-content: flex-start;
    margin-top: 4px;
  }
  .cart.woocommerce-cart-form__contents td.product-quantity .quantity input {
    width: 64px;
    text-align: center;
    padding: 6px 4px;
  }

  /* subtotal */
  .cart.woocommerce-cart-form__contents td.product-subtotal {
    grid-column: 2;
    grid-row: 4;
    margin-top: 6px;
    padding-top: 10px !important;
    border-top: 1px dashed #e5e7eb !important;
    font-weight: 700;
    font-size: 15px;
    color: var(--zp-ink);
  }

  /* remove button */
  .cart.woocommerce-cart-form__contents td.product-remove {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  .cart.woocommerce-cart-form__contents td.product-remove a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 18px;
    color: #9ca3af;
    line-height: 1;
  }
}
        .voucher-trigger-card {
          cursor: pointer;
          transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }
        .voucher-trigger-card:hover,
        .voucher-trigger-card:focus-visible {
          border-color: var(--zp-primary);
          box-shadow: 0 0 0 1px var(--zp-primary);
        }

        /* Defensive modal styling — Bootstrap's compiled .modal CSS isn't
           reliably present on this page, so every piece is hand-rolled here
           rather than assuming .modal-header/.modal-footer/.btn-close ship
           for free. Bootstrap JS still drives show/hide via .show + the
           dynamically-created .modal-backdrop; this only fixes layout. */
        #voucherModal.modal {
          position: fixed !important;
          top: 0 !important;
          left: 0 !important;
          width: 100% !important;
          height: 100% !important;
          z-index: 1055 !important;
          display: none;
          outline: 0;
        }
        #voucherModal.modal.show {
          display: flex !important;
        }
        #voucherModal .modal-dialog {
          position: relative;
          width: 100%;
          max-width: 500px;
          margin: 1.75rem auto;
          pointer-events: none;
        }
        /* True centering: applied on the .modal itself, since .modal-dialog-centered
           is a class on the dialog, but the parent needs to be the flex container. */
        #voucherModal.modal.show {
          align-items: center;
          justify-content: center;
        }
        @media (max-width: 575.98px) {
          #voucherModal .modal-dialog {
            margin: 0.75rem;
            max-width: none;
          }
        }
        #voucherModal .modal-content {
          position: relative;
          display: flex;
          flex-direction: column;
          width: 100%;
          max-height: 85vh;
          pointer-events: auto;
          background-color: #fff;
          border-radius: 0.75rem;
          overflow: hidden; /* clips header/footer to the rounded corners */
          outline: 0;
        }

        #voucherModal .modal-header {
          display: flex;
          flex-shrink: 0;
          align-items: center;
          justify-content: space-between;
          gap: 0.75rem;
          padding: 1rem 1.25rem;
        }
        #voucherModal .modal-title {
          margin: 0;
        }
        .voucher-modal-close {
          appearance: none !important;
          -webkit-appearance: none !important;
          box-sizing: border-box !important;
          flex-shrink: 0 !important;
          width: 2rem !important;
          height: 2rem !important;
          min-width: 2rem !important;
          padding: 0 !important;
          margin: 0 !important;
          border: 0 !important;
          border-radius: 50% !important;
          background-color: transparent !important;
          color: #fff !important;
          opacity: 0.85;
          font-size: 1rem !important;
          line-height: 1 !important;
          display: flex !important;
          align-items: center !important;
          justify-content: center !important;
          cursor: pointer;
          transition: opacity 0.15s ease, background-color 0.15s ease;
        }
        .voucher-modal-close:hover,
        .voucher-modal-close:focus-visible {
          opacity: 1;
          background-color: rgba(255, 255, 255, 0.15) !important;
        }
        .voucher-modal-close:focus {
          outline: none !important;
          box-shadow: none !important;
        }
        .voucher-modal-close i {
          pointer-events: none;
        }

        #voucherModal .modal-body {
          flex: 1 1 auto;
          overflow-y: auto;
          padding: 1.25rem;
        }
        #voucherModal .modal-body::-webkit-scrollbar {
          width: 6px;
        }
        #voucherModal .modal-body::-webkit-scrollbar-thumb {
          background-color: #d9d9d9;
          border-radius: 3px;
        }
        #voucherModal .modal-body::-webkit-scrollbar-track {
          background: transparent;
        }
        #voucher-trigger-title{
          color: var(--zp-ink);
        }
        #voucherModal .modal-footer {
          flex-shrink: 0;
          display: flex;
          align-items: center;
          justify-content: flex-end;
          gap: 0.5rem;
          padding: 0.875rem 1.25rem;
          background-color: #fff;
          border-top: 1px solid #eee;
        }

        .modal-backdrop {
          position: fixed !important;
          top: 0 !important;
          left: 0 !important;
          width: 100vw !important;
          height: 100vh !important;
          background-color: #000 !important;
          z-index: 1050 !important;
        }
        .modal-backdrop.show {
          opacity: 0.5 !important;
        }
        body.modal-open {
          overflow: hidden !important;
        }
        .voucher-trigger-badge {
          position: absolute !important;
          top: -6px !important;
          right: -8px !important;
          min-width: 16px !important;
          height: 16px !important;
          padding: 0 4px !important;
          box-sizing: border-box !important;
          display: flex !important;
          align-items: center !important;
          justify-content: center !important;
          background-color: #dc3545 !important;
          color: #fff !important;
          font-size: 0.62rem !important;
          font-weight: 700 !important;
          line-height: 1 !important;
          border-radius: 999px !important;
          border: 2px solid #fff !important;
          white-space: nowrap;
        }
        .cart-page-header .entry-title {
          display: flex;
          align-items: center;
          gap: 0.6rem;
          margin: 0;
          font-size: 1.75rem;
          font-weight: 700;
          color: var(--zp-ink);
          line-height: 1.2;
        }
        .cart-page-header__accent {
          display: inline-block;
          width: 6px;
          height: 1.5rem;
          border-radius: 3px;
          background-color: var(--zp-primary);
          flex-shrink: 0;
        }
        .cart-page-header__meta {
          margin: 0.4rem 0 0 calc(6px + 0.6rem);
          font-size: 0.9rem;
          color: #6c757d;
        }
        @media (max-width: 575.98px) {
          .cart-page-header .entry-title {
            font-size: 1.4rem;
          }
        }
        .page .entry-header{
          margin: 0
        }