/* STONK Shopee Theme & Branding */
:root {
  --primary: #ee4d2d;
  --primary-dark: #d03e20;
  --soft: #fff1ee;
  --orange: #ee4d2d;
}

.platform-switch a.active {
  background: var(--orange);
  color: #fff;
}

.calculator-product-tabs button.active {
  border-color: var(--orange);
  background: #fff0ec;
  color: #a52b16;
}

.category-suggestions button:hover,
.category-suggestions button:focus-visible {
  background: #fff0ec;
}

.unified-pricing-table col.col-source {
  width: 18%;
}

.unified-pricing-table thead th.is-best-channel {
  background: #fff0ec !important;
  border-bottom: 2px solid var(--orange) !important;
}

.best-channel-badge {
  display: block;
  margin-bottom: 3px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #ea580c;
}

/* Shopee mobile overrides */
@media screen and (max-width: 1024px) {
  .unified-pricing-table col.col-source {
    width: auto;
  }
}

.shopee-page .board-output-recommended {
  background: linear-gradient(135deg, #ee4d2d, #ff5722) !important;
}

.shopee-page .rec-row-list {
  color: #fef08a !important;
}

.shopee-page .rec-row-voucher {
  color: #ffffff !important;
}

.shopee-page .btn-apply-price {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.shopee-page .btn-apply-price:hover {
  background: #ffffff !important;
  color: var(--orange) !important;
}


/* Shopee Desktop PC 1-Row Layout Override */
@media (min-width: 1025px) {
  form#form .input-board,
  .shopee-page .input-board {
    display: grid !important;
    grid-template-columns: minmax(80px, 0.65fr) minmax(80px, 0.65fr) minmax(150px, 1.15fr) minmax(95px, 0.75fr) minmax(390px, 2.35fr) !important;
  }

  .shopee-page .board-output-recommended {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    white-space: nowrap !important;
    padding: 4px 10px !important;
    gap: 6px !important;
  }

  .shopee-page .board-output-recommended .board-output-meta {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
  }

  .shopee-page .board-output-recommended .rec-row-list,
  .shopee-page .board-output-recommended .rec-row-voucher {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }

  .shopee-page .board-output-recommended .btn-apply-price {
    flex-shrink: 0 !important;
    position: static !important;
    margin-left: auto !important;
    white-space: nowrap !important;
  }
}
