@charset "utf-8";
:root {
  --accent: #ff3d14;
  --accent-dark: #e92f0a;
  --ink: #152033;
  --muted: #667085;
  --line: #e5e9f0;
  --soft: #f6f8fb;
  --green: #0f8f3b;
  --blue: #1b73e8;
  --orange: #ff6a2a;
  --purple: #6d4aff;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 15px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #fbfcfe;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
}

.brand strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 650;
}

.brand small {
  display: block;
  margin-top: 8px;
  color: #344054;
  font-size: 11px;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 10px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 6px;
  color: #24324a;
  font-weight: 550;
}

.side-link.active {
  color: var(--accent);
  background: #fff0eb;
  box-shadow: inset 4px 0 0 var(--accent);
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #98a2b3;
  border-radius: 5px;
  font-size: 13px;
}

.sidebar-card {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.support-card {
  display: grid;
  gap: 12px;
}

.support-card a {
  color: #53627a;
  font-size: 13px;
}

.content {
  min-width: 0;
  padding: 26px 32px 42px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 22px;
}

.page-header h1 {
  margin: 0 0 6px;
  font-size: 29px;
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: 0;
}

.page-header p {
  margin: 0;
  color: #4a5871;
}

.header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-primary,
.btn-light {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 650;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #ff4b1c, #f3350d);
  box-shadow: 0 7px 16px rgba(255, 61, 20, .18);
}

.btn-light {
  color: #1f2b3d;
  background: #fff;
  border-color: var(--line);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .03);
}

.panel h2 {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: 0;
}

.top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 410px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

label {
  display: block;
  margin: 12px 0 6px;
  color: #3c4960;
  font-size: 13px;
  font-weight: 550;
}

.form-control,
.input-unit input {
  min-height: 42px;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  padding: 0 13px;
  color: #172033;
  background: #fff;
}

.notice {
  margin-top: 14px;
  border: 1px solid;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}

.notice.warning {
  color: #8a4b04;
  background: #fff8ea;
  border-color: #ffe1a8;
}

.notice.info {
  color: #1d4e89;
  background: #f0f7ff;
  border-color: #cfe5ff;
}

.notice.success {
  color: #137333;
  background: #eefbf2;
  border-color: #c9efd3;
}

.service-toggle {
  display: grid;
  grid-template-columns: 42px 1fr 42px 120px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}

.service-toggle small,
.service-card small,
.product-name-cell small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.service-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.green .service-icon { color: var(--green); background: #eaf8ef; }
.orange .service-icon { color: var(--orange); background: #fff0e6; }
.blue .service-icon { color: var(--blue); background: #eaf3ff; }

.switch {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #d0d5dd;
  position: relative;
}

.switch::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
}

.switch.on {
  background: #17a34a;
}

.switch.on::after {
  left: 16px;
}

.service-toggle b {
  text-align: right;
}

.service-toggle b small {
  font-weight: 500;
}

.fee-summary dl,
.result-card dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 13px 18px;
  margin: 0;
}

.fee-summary dt,
.result-card dt {
  color: #24324a;
  font-weight: 600;
}

.fee-summary dd,
.result-card dd {
  margin: 0;
  font-weight: 700;
}

.total-fee {
  margin: 18px 0 12px;
  padding: 12px;
  border-radius: 6px;
  color: var(--accent);
  background: #fff1ed;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  margin-bottom: 18px;
}

.price-table {
  display: grid;
  grid-template-columns: 190px repeat(5, minmax(130px, 1fr));
  overflow-x: auto;
}

.row-labels,
.price-option {
  display: grid;
  grid-template-rows: repeat(7, 42px);
  border: 1px solid var(--line);
  border-right: 0;
  position: relative;
}

.row-labels span,
.price-option span,
.price-option b,
.price-option strong {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  padding: 0 8px;
  text-align: center;
}

.row-labels span {
  justify-content: flex-start;
  color: #4a5871;
  background: #fafbfc;
  font-size: 13px;
}

.price-option strong:first-of-type {
  color: var(--accent);
  background: #fff6f3;
}

.price-option.recommended {
  border: 1px solid #22a447;
  background: #fbfffc;
}

.badge-recommend {
  position: absolute;
  top: -17px;
  right: -1px;
  height: 22px !important;
  padding: 0 10px !important;
  border-radius: 999px;
  color: #fff;
  background: #0f8f3b;
  font-size: 12px;
  font-weight: 700;
}

.price {
  color: var(--accent);
  font-size: 18px;
}

.profit {
  color: var(--green);
}

.suggest-box {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #bfe8ca;
  border-radius: 8px;
  background: #f2fbf4;
}

.suggest-box strong {
  display: block;
  color: var(--green);
  font-size: 28px;
  margin: 6px 0;
}

.explain-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.explain-grid article {
  border-right: 1px solid var(--line);
  padding-right: 16px;
}

.explain-grid article:last-child {
  border-right: 0;
}

.explain-grid p {
  color: #4a5871;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.filter-bar {
  display: grid;
  grid-template-columns: 280px 230px 230px 230px auto;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.product-toolbar {
  display: grid;
  gap: 16px;
}

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

.product-import-form input[type="file"] {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: #fff;
}

.table-scroll {
  overflow-x: auto;
}

.product-table,
.history-table,
.mini-table {
  width: 100%;
  border-collapse: collapse;
}

.product-table th,
.product-table td,
.history-table th,
.history-table td,
.mini-table th,
.mini-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  vertical-align: middle;
  white-space: nowrap;
}

.product-table th,
.history-table th,
.mini-table th {
  color: #344054;
  background: #fafbfc;
  font-size: 13px;
  font-weight: 700;
}

.product-name-cell {
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: normal !important;
}

.product-thumb {
  flex: 0 0 54px;
  height: 54px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #44546a;
  background: #f2f4f7;
  border: 1px solid var(--line);
  font-weight: 800;
}

.sale-price,
.fee-link {
  color: var(--accent);
}

.fee-link {
  border: 0;
  background: transparent;
  font-weight: 700;
}

.actions {
  color: #53627a;
}

.fee-detail-row td {
  background: #fff;
  padding-top: 0;
}

.fee-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.fee-chips {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.fee-chips span {
  border-right: 1px solid var(--line);
  padding-right: 12px;
}

.fee-chips small {
  display: block;
  margin-top: 5px;
}

.fee-chips .total {
  text-align: right;
  border-right: 0;
}

.fee-chips .total strong {
  display: block;
  color: var(--accent);
  font-size: 18px;
}

.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
}

.pagination-bar button,
.page-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  display: inline-grid;
  place-items: center;
  color: #344054;
  font-weight: 650;
}

.pagination-bar button:first-child,
.page-btn.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.page-btn.disabled {
  pointer-events: none;
  opacity: .45;
}

.pager,
.page-size-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-size-form {
  color: #53627a;
  font-size: 13px;
}

.page-size-form select {
  height: 34px;
  min-width: 74px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 8px;
}

.page-ellipsis {
  color: #98a2b3;
  padding: 0 2px;
}

.tabs {
  display: flex;
  gap: 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.tabs a {
  padding: 0 0 14px;
  color: #344054;
  font-weight: 600;
}

.tabs a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.upload-box {
  min-height: 150px;
  border: 1px dashed #ff9a7d;
  border-radius: 8px;
  background: #fffaf8;
  display: grid;
  place-items: center;
  gap: 8px;
  align-content: center;
}

.file-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.file-row small {
  display: block;
  color: var(--muted);
}

.file-row b {
  margin-left: auto;
  color: var(--green);
  background: #eaf8ef;
  border-radius: 6px;
  padding: 4px 9px;
}

.pdf-mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: #fff;
  background: #ef2a16;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.split-box {
  display: grid;
  grid-template-columns: .8fr 1.25fr;
  gap: 24px;
}

.input-unit {
  display: flex;
}

.input-unit input {
  width: 100%;
  border-radius: 6px 0 0 6px;
}

.input-unit span {
  min-width: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #d8dee8;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  background: #f8fafc;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.service-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.switch-check {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.switch-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-check span {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #d0d5dd;
  position: relative;
  transition: background .16s ease;
}

.switch-check span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .2);
  transition: transform .16s ease;
}

.switch-check input:checked + span {
  background: #17a34a;
}

.switch-check input:checked + span::after {
  transform: translateX(16px);
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: #0b66d8;
  font-size: 13px;
}

.status-pill {
  color: var(--green);
  background: #eaf8ef;
  border-radius: 999px;
  padding: 4px 10px;
}

.center-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.w-100 {
  width: 100%;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .support-card {
    display: none;
  }

  .side-nav {
    display: flex;
  }

  .top-grid,
  .calc-layout,
  .settings-grid,
  .service-grid,
  .explain-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .top-grid {
    grid-template-columns: minmax(320px, .95fr) minmax(420px, 1.35fr);
  }

  .fee-summary {
    grid-column: 1 / -1;
  }

  .service-toggle {
    grid-template-columns: 42px minmax(180px, 1fr) 42px 130px;
  }
}

@media (max-width: 720px) {
  .content {
    padding: 18px 14px;
  }

  .page-header,
  .pagination-bar,
  .split-box {
    display: grid;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .brand strong {
    font-size: 22px;
  }
}


/* Shopee calculator redesign */
.calculator-header h1 { text-transform: none; }
.calculator-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.calculator-main { display: grid; gap: 16px; }
.calculator-side { display: grid; gap: 16px; }
.sticky-summary { position: sticky; top: 18px; }
.calc-card { padding: 20px; }
.calc-two-cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; }
.calc-block h2, .fee-detail-panel h2, .suggestion-panel h2, .quick-analysis h2, .sticky-summary h2 { color: var(--accent); font-size: 15px; margin: 0 0 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid label:last-child { grid-column: 1 / -1; }
.money-field, .percent-field { display: flex; align-items: center; min-height: 42px; border: 1px solid #d8dee8; border-radius: 6px; background: #fff; overflow: hidden; }
.money-field input, .percent-field input { width: 100%; border: 0; outline: 0; padding: 0 12px; font-size: 16px; background: transparent; }
.money-field b, .percent-field b { min-width: 40px; align-self: stretch; display: grid; place-items: center; border-left: 1px solid #e2e8f0; color: #475467; background: #f8fafc; }
.money-field.compact, .percent-field.compact { width: 120px; justify-self: end; }
.money-field.compact input, .percent-field.compact input { text-align: right; font-size: 15px; font-weight: 700; }
.shop-choice { margin: 0 0 14px; }
.shop-choice > span, label > span:first-child { display: block; margin-bottom: 8px; color: #3c4960; font-size: 13px; font-weight: 600; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented button { min-height: 42px; border: 1px solid #d8dee8; border-radius: 6px; background: #fff; color: #475467; font-weight: 700; }
.segmented button.active { color: var(--accent); border-color: var(--accent); background: #fff7f4; }
.program-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.program-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px 126px; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fff; opacity: .55; }
.program-row.enabled { opacity: 1; }
.program-row small { display: block; color: var(--muted); margin-top: 4px; }
.program-row .switch { border: 0; cursor: pointer; }
.fee-card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.fee-card-grid article { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fffaf8; display: grid; gap: 4px; }
.fee-card-grid article:nth-child(2) { background: #f5f9ff; }
.fee-card-grid article:nth-child(3) { background: #f3fbf5; }
.fee-card-grid article:nth-child(4) { background: #fff7ed; }
.fee-card-grid article:nth-child(5) { background: #f7f4ff; }
.fee-card-grid b { color: var(--ink); margin-top: 4px; }
.fee-card-grid em { color: var(--muted); font-style: normal; font-size: 12px; }
.profit-options { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 14px; overflow-x: auto; padding-top: 10px; }
.profit-card { position: relative; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; min-width: 170px; }
.profit-card h3 { margin: 0; padding: 14px; color: var(--accent); background: #fff6f2; text-align: center; font-size: 14px; }
.profit-card dl { display: grid; gap: 12px; padding: 14px; margin: 0; }
.profit-card dt { color: #53627a; font-size: 12px; }
.profit-card dd { margin: -28px 0 0; text-align: right; font-weight: 700; }
.profit-card button { margin: 0 14px 14px; width: calc(100% - 28px); height: 38px; border-radius: 6px; border: 1px solid var(--accent); color: var(--accent); background: #fff; font-weight: 700; }
.profit-card.selected { border-color: #16a34a; box-shadow: inset 0 0 0 1px #16a34a; }
.profit-card.selected h3 { color: var(--green); background: #f1fbf3; }
.profit-card.selected button { color: #fff; border-color: var(--green); background: var(--green); }
.summary-list { display: grid; grid-template-columns: 1fr auto; gap: 13px 18px; margin: 0; }
.summary-list dt { color: #344054; }
.summary-list dd { margin: 0; font-weight: 700; }
.summary-total { margin: 18px 0 12px; padding: 14px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #ffd8ce; border-radius: 8px; background: #fff4f0; color: var(--accent); font-weight: 800; }
.profit-result { border: 1px solid #c9efd3; border-radius: 8px; background: #f1fbf4; padding: 16px; margin-bottom: 14px; color: var(--green); }
.profit-result strong { display: block; font-size: 30px; margin: 5px 0; }
.profit-result span { display: flex; justify-content: space-between; color: #157a34; }
.quick-analysis #quickAnalysis { display: grid; gap: 12px; margin-bottom: 16px; }
.quick-analysis p { margin: 0; padding-left: 14px; border-left: 4px solid #c7d2fe; color: #4a5871; }
.detail-drawer { margin-top: 18px; }
.detail-drawer pre { white-space: pre-wrap; margin: 0; color: #344054; font-family: Consolas, monospace; }
.history-drawer { position: fixed; inset: 0; z-index: 20; background: rgba(15, 23, 42, .25); display: grid; place-items: center; padding: 24px; }
.history-drawer[hidden] { display: none; }
.history-box { width: min(620px, 100%); max-height: 80vh; overflow: auto; background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 20px 60px rgba(15, 23, 42, .2); }
.history-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.history-head button { border: 0; background: #f2f4f7; border-radius: 6px; padding: 8px 12px; }
.history-list { display: grid; gap: 10px; margin-bottom: 14px; }
.history-list article { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 4px; }
.history-list strong { color: var(--accent); font-size: 18px; }
.history-list span, .history-list small { color: var(--muted); }
@media (max-width: 1500px) {
  .calculator-grid { grid-template-columns: 1fr; }
  .sticky-summary { position: static; }
}
@media (max-width: 1100px) {
  .calc-two-cols, .program-list, .fee-card-grid, .form-grid { grid-template-columns: 1fr; }
  .program-row { grid-template-columns: 42px minmax(0, 1fr); }
  .program-row .switch, .program-row .compact { justify-self: start; }
}


/* Shopee calculator v2 image match */
.content { padding: 26px 26px 42px; }
.calculator-header { align-items: center; margin-bottom: 28px; }
.calculator-header h1 { font-size: 30px; text-transform: none; }
.calculator-header p { margin-top: 8px; color: #53627a; }
.calculator-v2 { grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; }
.calculator-v2 .calculator-main { gap: 16px; }
.calc-entry-card { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(420px, .84fr); gap: 24px; padding: 20px; }
.calc-entry-card h2 { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 15px; margin-bottom: 18px; }
.tiny-icon { color: var(--accent); font-size: 15px; }
.entry-left { padding-right: 24px; border-right: 1px solid #eef1f5; }
.entry-note { grid-column: 1 / -1; margin-top: 2px; }
.product-input-layout { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(230px, .95fr); gap: 28px; }
.input-stack { display: grid; gap: 14px; align-content: start; }
.input-stack label { margin: 0; }
.input-stack small { display: block; margin-top: 8px; color: #53627a; line-height: 1.45; }
.shop-choice { margin: 0; }
.segmented { min-height: 42px; }
.segmented button { font-size: 13px; }
.program-list { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 0; }
.program-row { min-height: 75px; grid-template-columns: 42px minmax(0, 1fr) 42px 112px; padding: 11px 12px; box-shadow: 0 8px 18px rgba(16, 24, 40, .025); }
.program-row strong { font-size: 13px; }
.program-row small { font-size: 12px; line-height: 1.35; }
.program-row .compact { width: 100px; }
.program-row .compact input { font-size: 15px; }
.fee-detail-panel, .suggestion-panel { padding: 20px; }
.fee-card-grid { grid-template-columns: repeat(5, minmax(135px, 1fr)); }
.fee-card-grid article { min-height: 106px; grid-template-columns: 42px 1fr; align-items: start; }
.fee-card-grid article .service-icon { grid-row: span 4; }
.fee-card-grid b, .fee-card-grid em { grid-column: 2; }
.profit-options { grid-template-columns: repeat(5, minmax(178px, 1fr)); gap: 16px; }
.profit-card h3 { min-height: 46px; display: grid; place-items: center; }
.profit-card dl { gap: 14px; }
.profit-card dd { font-size: 15px; }
.profit-card .sale-price { font-size: 18px; }
.calculator-side { gap: 16px; }
.sticky-summary, .quick-analysis { padding: 20px; }
.sticky-summary h2, .quick-analysis h2 { color: var(--accent); }
.summary-list { border-bottom: 1px dashed #cfd6e2; padding-bottom: 16px; }
.summary-total { height: 44px; }
.profit-result strong { font-size: 31px; }
.quick-analysis p { display: grid; min-height: 50px; align-content: center; padding-left: 54px; border-left: 0; position: relative; }
.quick-analysis p::before { content: ""; position: absolute; left: 0; top: 8px; width: 34px; height: 34px; border-radius: 50%; background: #6aa5ff; }
.quick-analysis p:nth-child(1)::before { background: #55b879; }
.quick-analysis p:nth-child(2)::before { background: #6aa5ff; }
.quick-analysis p:nth-child(3)::before { background: #8b6cf6; }
@media (max-width: 1680px) {
  .calculator-v2 { grid-template-columns: minmax(0, 1fr) 360px; }
  .calc-entry-card { grid-template-columns: minmax(0, 1fr); }
  .entry-left { padding-right: 0; border-right: 0; }
}
@media (max-width: 1200px) {
  .calculator-v2 { grid-template-columns: 1fr; }
  .product-input-layout { grid-template-columns: 1fr; }
  .fee-card-grid, .profit-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .fee-card-grid, .profit-options { grid-template-columns: 1fr; }
  .program-row { grid-template-columns: 42px minmax(0, 1fr); }
  .program-row .switch, .program-row .compact { justify-self: start; }
}


/* Shopee calculator large-screen corrections */
.calculator-v2 {
  grid-template-columns: minmax(0, 1fr) 390px !important;
  align-items: start !important;
}

.calculator-side {
  align-self: start !important;
  min-width: 0 !important;
}

.sticky-summary {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}

.calc-entry-card {
  grid-template-columns: minmax(0, 1.15fr) minmax(460px, .85fr) !important;
  align-items: start !important;
}

.entry-right {
  min-width: 0 !important;
}

.program-row {
  grid-template-columns: 42px minmax(190px, 1fr) 42px 150px !important;
  gap: 12px !important;
  overflow: visible !important;
}

.program-row .compact,
.money-field.compact,
.percent-field.compact {
  width: 150px !important;
  min-width: 150px !important;
}

.program-row .compact input,
.money-field.compact input,
.percent-field.compact input {
  min-width: 0 !important;
  padding: 0 10px !important;
}

.program-row .compact b,
.money-field.compact b,
.percent-field.compact b {
  min-width: 34px !important;
}

.summary-list dd,
.summary-total b,
.profit-result strong {
  white-space: nowrap !important;
}

@media (max-width: 1680px) {
  .calculator-v2 {
    grid-template-columns: minmax(0, 1fr) 360px !important;
  }

  .calc-entry-card {
    grid-template-columns: 1fr !important;
  }

  .entry-left {
    padding-right: 0 !important;
    border-right: 0 !important;
  }
}

@media (max-width: 1320px) {
  .calculator-v2 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .program-row {
    grid-template-columns: 42px minmax(0, 1fr) !important;
  }

  .program-row .switch,
  .program-row .compact {
    justify-self: start !important;
  }
}


/* Shopee calculator final responsive fix */
.sticky-summary {
  position: static !important;
  top: auto !important;
}

.calculator-v2 {
  grid-template-columns: minmax(0, 1fr) 390px !important;
}

.calc-entry-card {
  grid-template-columns: minmax(0, 1.15fr) minmax(480px, .85fr) !important;
}

.program-row {
  grid-template-columns: 42px minmax(210px, 1fr) 42px 170px !important;
}

.program-row .compact,
.money-field.compact,
.percent-field.compact {
  width: 170px !important;
  min-width: 170px !important;
}

.program-row .compact input {
  text-align: right !important;
}

@media (max-width: 1800px) {
  .calculator-v2 {
    grid-template-columns: 1fr !important;
  }

  .calculator-side {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px) !important;
    align-items: start !important;
  }

  .calc-entry-card {
    grid-template-columns: minmax(0, 1fr) minmax(460px, .85fr) !important;
  }
}

@media (max-width: 1500px) {
  .calc-entry-card {
    grid-template-columns: 1fr !important;
  }

  .entry-left {
    padding-right: 0 !important;
    border-right: 0 !important;
  }

  .calculator-side {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .product-input-layout {
    grid-template-columns: 1fr !important;
  }

  .program-row {
    grid-template-columns: 42px minmax(0, 1fr) !important;
  }

  .program-row .switch,
  .program-row .compact {
    justify-self: start !important;
  }
}


/* Shopee calculator program-row overflow fix */
.program-row {
  grid-template-columns: 42px minmax(150px, 1fr) 42px 150px !important;
  max-width: 100% !important;
}

.program-row .compact,
.money-field.compact,
.percent-field.compact {
  width: 150px !important;
  min-width: 150px !important;
}

.program-row > div {
  min-width: 0 !important;
}

.program-row strong,
.program-row small {
  overflow-wrap: anywhere !important;
}


/* Shopee calculator desktop summary placement */
.product-name-field {
  grid-column: 1 / -1;
}

@media (min-width: 1321px) {
  .calculator-v2 {
    grid-template-columns: minmax(0, 1fr) 390px !important;
  }

  .calculator-side {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-self: start !important;
  }

  .sticky-summary {
    position: static !important;
  }
}

@media (max-width: 1800px) and (min-width: 1321px) {
  .calc-entry-card {
    grid-template-columns: 1fr !important;
  }

  .entry-left {
    padding-right: 0 !important;
    border-right: 0 !important;
  }
}

@media (max-width: 1320px) {
  .calculator-v2 {
    grid-template-columns: 1fr !important;
  }

  .calculator-side {
    grid-template-columns: 1fr !important;
  }
}


/* Shopee calculator keep desktop summary visible without overlap */
.calculator-v2,
.calculator-main,
.calc-entry-card,
.entry-left,
.entry-right,
.product-input-layout,
.program-list,
.program-row {
  min-width: 0 !important;
  max-width: 100% !important;
}

.calc-entry-card {
  width: 100% !important;
  overflow: hidden !important;
}

.entry-right,
.program-list,
.program-row {
  width: 100% !important;
}

.program-row {
  grid-template-columns: 42px minmax(0, 1fr) 38px minmax(128px, 150px) !important;
}

.program-row .compact,
.money-field.compact,
.percent-field.compact {
  width: 100% !important;
  min-width: 128px !important;
  max-width: 150px !important;
}

@media (min-width: 1321px) and (max-width: 1680px) {
  .calculator-v2 {
    grid-template-columns: minmax(0, 1fr) 390px !important;
  }

  .calc-entry-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


/* Shopee calculator constrain main grid track */
.calculator-main {
  grid-template-columns: minmax(0, 1fr) !important;
  overflow: hidden !important;
}

.calculator-main > .panel {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}


/* Shopee calculator requested polish */
.side-inputs {
  gap: 14px !important;
}

.fee-card-grid {
  grid-template-columns: repeat(4, minmax(145px, 1fr)) !important;
}

.fee-card-grid article {
  min-height: 116px !important;
  gap: 5px !important;
}

.fee-svg {
  position: relative;
  overflow: hidden;
}

.fee-svg::before,
.fee-svg::after {
  content: "";
  position: absolute;
  display: block;
}

.fee-platform::before {
  width: 17px;
  height: 16px;
  left: 8px;
  top: 11px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.fee-platform::after {
  width: 10px;
  height: 6px;
  left: 11px;
  top: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.fee-transaction::before {
  inset: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.fee-transaction::after {
  content: "%";
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: currentColor;
  font-size: 13px;
  font-weight: 800;
}

.fee-piship::before {
  width: 20px;
  height: 12px;
  left: 6px;
  top: 11px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.fee-piship::after {
  width: 22px;
  height: 6px;
  left: 7px;
  top: 23px;
  border-left: 5px solid currentColor;
  border-right: 5px solid currentColor;
  border-radius: 999px;
}

.fee-voucher::before {
  width: 22px;
  height: 15px;
  left: 6px;
  top: 10px;
  border: 2px solid currentColor;
  border-radius: 5px;
  transform: rotate(-8deg);
}

.fee-voucher::after {
  width: 2px;
  height: 11px;
  left: 17px;
  top: 12px;
  background: currentColor;
  opacity: .75;
}

.suggested-sale {
  color: var(--accent) !important;
  border-color: #ffd8ce !important;
  background: #fff4f0 !important;
}

.suggested-sale span {
  color: #1f7a39 !important;
}

.profit-options {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(196px, 1fr) !important;
  grid-template-columns: none !important;
  gap: 16px !important;
  overflow-x: auto !important;
  padding: 10px 2px 12px !important;
  align-items: stretch !important;
}

.profit-card {
  min-width: 196px !important;
  display: grid !important;
  grid-template-rows: 48px 1fr 52px !important;
}

.profit-card h3 {
  min-height: 48px !important;
  padding: 10px 12px !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}

.profit-card dl {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 5px !important;
  padding: 14px !important;
}

.profit-card dt {
  min-height: 17px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

.profit-card dd {
  margin: 0 0 8px !important;
  text-align: left !important;
  line-height: 1.2 !important;
  min-height: 19px !important;
}

.profit-card .sale-price {
  font-size: 18px !important;
}

.profit-card button {
  align-self: end !important;
}

@media (min-width: 1700px) {
  .profit-options {
    grid-auto-flow: initial !important;
    grid-auto-columns: initial !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .fee-card-grid {
    grid-template-columns: 1fr !important;
  }
}


/* Settings import workflow */
.import-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.upload-box {
  cursor: pointer;
  padding: 18px;
}

.upload-box input {
  margin-top: 10px;
}

.link-import {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.manual-import {
  margin-top: 14px;
}

.manual-import summary {
  cursor: pointer;
  color: #0b66d8;
  font-weight: 650;
}

.manual-import textarea {
  width: 100%;
  min-height: 130px;
  padding: 12px;
  margin: 12px 0;
  resize: vertical;
}

.import-result {
  margin-bottom: 18px;
}

.import-result.success {
  border-color: #bfe8ca;
  background: #f8fffa;
}

.import-result.error {
  border-color: #ffd8ce;
  background: #fff7f4;
}

.import-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.import-stats span,
.fee-count {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.import-stats b,
.fee-count b {
  display: block;
  color: var(--accent);
  font-size: 24px;
}

.import-stats small,
.fee-count span {
  color: var(--muted);
}

.settings-fee-panel {
  margin-bottom: 18px;
}

.settings-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.settings-panel-head h2 {
  margin-bottom: 6px;
}

.settings-panel-head p {
  margin: 0;
  color: #53627a;
}

.fee-count.compact {
  min-width: 190px;
  margin: 0;
}

.fee-settings-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.fee-setting-card {
  min-height: 142px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.fee-setting-card > span {
  display: block;
  margin-bottom: 10px;
  color: #24324a;
  font-size: 13px;
  font-weight: 750;
}

.fee-setting-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.4;
}

.category-fee-preview {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.category-fee-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

@media (max-width: 720px) {
  .link-import,
  .import-stats,
  .fee-settings-cards,
  .settings-panel-head,
  .category-fee-preview-head {
    grid-template-columns: 1fr;
    display: grid;
  }
}


/* Searchable category selector */
.category-combobox {
  display: grid;
  gap: 7px;
}

.category-combobox input[type="search"],
.category-combobox input[list],
.category-combobox .form-control {
  width: 100%;
}

.category-combobox small {
  color: var(--muted);
  line-height: 1.35;
}


/* Products page refinement */
.btn-primary,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.products-header {
  align-items: center;
}

.header-import-form {
  margin: 0;
}

.import-trigger {
  position: relative;
  overflow: hidden;
}

.import-trigger input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.products-page {
  padding: 0;
  overflow: hidden;
}

.product-filter-bar {
  grid-template-columns: minmax(240px, 1.1fr) repeat(3, minmax(170px, .8fr)) repeat(2, auto);
  padding: 18px;
}

.clear-filter {
  min-width: 86px;
}

.product-list-table {
  min-width: 1320px;
}

.product-list-table th,
.product-list-table td {
  text-align: center;
}

.product-list-table th:nth-child(2),
.product-list-table td:nth-child(2) {
  text-align: left;
}

.product-list-table td {
  height: 72px;
}

.product-name-cell {
  min-width: 300px;
}

.product-thumb {
  overflow: hidden;
}

.product-thumb img,
.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-leaf {
  max-width: 180px;
  color: #344054;
  white-space: normal !important;
  line-height: 1.35;
}

.fee-toggle {
  cursor: pointer;
}

.fee-toggle[aria-expanded="true"] span {
  display: inline-block;
  transform: rotate(180deg);
}

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.delete-product-form {
  margin: 0;
}

.icon-action {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #53627a;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.icon-action:hover {
  color: var(--accent);
  border-color: #ffb7a5;
  background: #fff7f4;
}

.icon-action.danger {
  font-size: 22px;
}

.icon-action.danger:hover {
  color: #b42318;
  border-color: #fecdca;
  background: #fff4f3;
}

.product-fee-chips {
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  align-items: center;
}

.product-fee-chips span {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 2px 10px;
  align-items: center;
  min-height: 56px;
}

.product-fee-chips .total {
  display: block;
  min-width: 110px;
}

.chip-icon {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff1ed;
  color: var(--accent);
  position: relative;
  overflow: hidden;
}

.product-fee-chips span:nth-child(2) .chip-icon {
  color: var(--blue);
  background: #eef6ff;
}

.product-fee-chips span:nth-child(3) .chip-icon {
  color: var(--green);
  background: #ecfdf3;
}

.product-fee-chips span:nth-child(4) .chip-icon {
  color: var(--orange);
  background: #fff4e8;
}

.product-fee-chips span:nth-child(6) .chip-icon {
  color: var(--purple);
  background: #f3f0ff;
}

.chip-icon::before,
.chip-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.image-input-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.image-preview {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f4f7;
  color: #667085;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 12px;
}

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

@media (max-width: 720px) {
  .product-filter-bar,
  .image-input-row {
    grid-template-columns: 1fr;
  }
}

/* Calculator listing price result */
.listing-result {
  border: 1px solid #dbe7ff;
  border-radius: 8px;
  background: #f5f9ff;
  padding: 14px 16px;
  margin: -4px 0 14px;
  color: #1b4f9c;
}

.listing-result small {
  display: block;
  color: #285a9f;
  font-weight: 800;
  font-size: 12px;
}

.listing-result strong {
  display: block;
  color: #0b66d8;
  font-size: 28px;
  margin: 5px 0;
  white-space: nowrap;
}

.listing-result span {
  display: flex;
  justify-content: space-between;
  color: #355f95;
  font-size: 13px;
}
/* Login */
.login-page {
  min-height: calc(100vh - 84px);
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.login-panel {
  width: min(430px, 100%);
  padding: 28px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.login-brand strong {
  display: block;
  font-size: 22px;
  color: var(--ink);
}

.login-brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  margin: 0;
}

.login-form .form-control {
  width: 100%;
  margin-top: 8px;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #475467;
}

.remember-row span {
  margin: 0 !important;
}

.login-error,
.field-error {
  color: #b42318;
  font-size: 13px;
}

.login-error ul {
  margin: 0;
  padding-left: 18px;
}
/* Products quick edit link */
.product-edit-link {
  color: var(--ink);
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}

.product-edit-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Sidebar feature icons */
.nav-icon svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-link.active .nav-icon {
  border-color: #ff8f73;
  background: #fff7f4;
}
/* Calculator full-width profit suggestions */
.calculator-v2 > .calculator-wide-panel {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.calculator-v2 > .calculator-wide-panel .profit-options {
  display: grid !important;
  grid-auto-flow: initial !important;
  grid-auto-columns: initial !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 16px !important;
  overflow-x: visible !important;
  padding: 10px 2px 2px !important;
}

.calculator-v2 > .calculator-wide-panel .profit-card {
  min-width: 0 !important;
}

@media (max-width: 1280px) {
  .calculator-v2 > .calculator-wide-panel .profit-options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .calculator-v2 > .calculator-wide-panel .profit-options {
    grid-template-columns: 1fr !important;
  }
}
/* Profit recommendation badge visible fix */
.calculator-wide-panel .profit-card .badge-recommend {
  top: 8px !important;
  right: 8px !important;
  z-index: 2 !important;
  height: 24px !important;
  min-width: 68px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: #0f8f3b !important;
  color: #fff !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 14px rgba(15, 143, 59, .22) !important;
}

.calculator-wide-panel .profit-card.selected h3 {
  padding-right: 82px !important;
}
/* Product image upload */
.upload-image-row {
  grid-template-columns: 64px minmax(0, 1fr) !important;
  align-items: start !important;
}

.upload-image-row .image-preview {
  width: 64px;
  height: 64px;
}

.image-upload-stack {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.image-upload-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.image-upload-btn {
  min-height: 36px;
  padding: 0 14px;
}

#imageUploadStatus {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
/* Save/upload feedback */
.app-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: min(360px, calc(100vw - 32px));
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid #c9efd3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.app-toast .toast-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #17a34a;
  box-shadow: 0 0 0 6px rgba(23, 163, 74, .12);
}

.app-toast b {
  display: block;
  color: #0f5132;
  font-size: 14px;
  line-height: 1.25;
}

.app-toast small {
  display: block;
  margin-top: 3px;
  color: #475467;
  line-height: 1.35;
}

.app-toast.error {
  border-color: #fecdca;
}

.app-toast.error .toast-dot {
  background: #d92d20;
  box-shadow: 0 0 0 6px rgba(217, 45, 32, .12);
}

.app-toast.error b {
  color: #b42318;
}

.btn-primary.is-loading,
.btn-light.is-loading,
.image-upload-btn.is-loading {
  opacity: .78;
  cursor: progress;
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, .12);
}

.btn-primary.is-success,
.btn-light.is-success,
.image-upload-btn.is-success {
  animation: savePulse .75s ease;
}

@keyframes savePulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.025); box-shadow: 0 0 0 4px rgba(23, 163, 74, .12); }
  100% { transform: scale(1); }
}
/* Hide native product image file control */
#productImageFile {
  display: none !important;
}