.product-pricing-melontik-page {
  --pp-coral: #ff765d;
  --pp-coral-soft: #fff0eb;
  --pp-ink: #2f201d;
  --pp-muted: #847571;
  --pp-line: #eaded9;
  --pp-teal: #087085;
  width: min(1536px, calc(100vw - 64px));
  margin: 0 auto 48px;
  color: var(--pp-ink);
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.product-pricing-melontik-page * { box-sizing: border-box; }
.pp-loading {
  min-height: 520px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--pp-teal);
}

.pp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.pp-card {
  min-height: 255px;
  padding: 24px;
  border: 1px solid rgba(224, 213, 209, .78);
  border-radius: 13px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 28px rgba(57, 35, 29, .07);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pp-card h3 { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 700; color: var(--pp-ink); }
.pp-title { min-height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pp-help { position: relative; width: 25px; height: 25px; display: grid; place-items: center; color: var(--pp-coral); cursor: help; }
.pp-help svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pp-help:hover::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: calc(100% + 10px);
  width: 280px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #2f1711;
  color: #fff;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(37, 16, 10, .22);
}

.pp-card select,
.pp-input,
.pp-commission input {
  width: 100%;
  height: 48px;
  border: 1px solid #d8d0cd;
  border-radius: 9px;
  background: #f7f7f7;
  color: #302622;
  font: 500 13px/1 Poppins, sans-serif;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.pp-card select { padding: 0 14px; cursor: pointer; }
.pp-card select:focus,
.pp-input:focus-within,
.pp-commission input:focus { border-color: var(--pp-coral); box-shadow: 0 0 0 3px rgba(255, 118, 93, .13); background: #fff; }
.pp-input { display: flex; align-items: center; gap: 9px; padding: 0 13px; }
.pp-input input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; }
.pp-input-icon { width: 20px; height: 20px; color: #755f59; display: grid; place-items: center; }
.pp-input-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.pp-switch-row { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.pp-switch {
  position: relative;
  width: 36px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: #d8d6d4;
  padding: 0;
  cursor: pointer;
}
.pp-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2d2927;
  transition: transform .18s ease, background .18s ease;
}
.pp-switch.checked { background: #ffd3ca; }
.pp-switch.checked::after { transform: translateX(16px); background: var(--pp-coral); }
.pp-micro-fee { display: grid; gap: 7px; font-size: 11px; font-weight: 600; color: #6f5d58; }
.pp-micro-fee .pp-input { background: #fffaf8; }

.pp-vat-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pp-vat-options button {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #544642;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  font: 600 12px/1 Poppins, sans-serif;
  cursor: pointer;
}
.pp-vat-options i {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #d9d7d5;
  flex: 0 0 auto;
}
.pp-vat-options i::after { content: ""; position: absolute; width: 14px; height: 14px; top: 3px; left: 3px; border-radius: 50%; background: #292624; transition: transform .16s ease; }
.pp-vat-options button.active i { background: #ffd3ca; }
.pp-vat-options button.active i::after { transform: translateX(14px); background: var(--pp-coral); }

.pp-category { white-space: nowrap; text-overflow: ellipsis; }
.pp-commission { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.pp-commission strong { font-size: 12px; white-space: nowrap; }
.pp-commission input { height: 38px; padding: 0 12px; }
.pp-commission span { font-weight: 700; color: var(--pp-coral); }
.pp-card > small { color: var(--pp-muted); font-size: 10.5px; line-height: 1.4; }

.pp-result-card {
  justify-content: center;
  text-align: center;
  background: #fff;
}
.pp-result-card.has-result { background: linear-gradient(145deg, #fff 0%, #fff8f5 100%); }
.pp-price { display: block; color: var(--pp-ink); font-size: clamp(34px, 3vw, 52px); line-height: 1; letter-spacing: -1.8px; }
.pp-result-card > button {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff9e8b, var(--pp-coral));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 700 13px/1 Poppins, sans-serif;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(255, 118, 93, .22);
}
.pp-result-card > button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pp-result-card > button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.pp-result-card > small { min-height: 16px; opacity: 0; color: #9a3a2d; }
.pp-result-card > small.visible { opacity: 1; }

.pp-missing-alert {
  position: fixed;
  z-index: 10040;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 32px));
  padding: 16px 50px 16px 18px;
  border: 1px solid #f1c14b;
  border-radius: 12px;
  background: #ffe58d;
  color: #3d2914;
  display: grid;
  gap: 3px;
  box-shadow: 0 14px 34px rgba(90, 58, 10, .22);
}
.pp-missing-alert strong { font-size: 13px; }
.pp-missing-alert span { font-size: 11px; }
.pp-missing-alert a { margin-top: 7px; height: 35px; border-radius: 7px; background: #351710; color: #fff; display: grid; place-items: center; text-decoration: none; font-size: 11px; font-weight: 700; }
.pp-missing-alert button { position: absolute; right: 12px; top: 9px; border: 0; background: transparent; color: #3d2914; font-size: 22px; cursor: pointer; }

.pp-analysis {
  margin-top: 26px;
  border: 1px solid #eaded9;
  border-radius: 13px;
  overflow: hidden;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 30px rgba(57, 35, 29, .07);
}
.pp-analysis header { min-height: 78px; padding: 17px 24px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(100deg, #fff2ee, #fff); border-bottom: 1px solid #f0d8d1; }
.pp-analysis header span { color: var(--pp-coral); font-size: 10px; font-weight: 800; letter-spacing: .8px; }
.pp-analysis h2 { margin: 3px 0 0; font-size: 20px; }
.pp-analysis header b { color: #8a7772; font-size: 11px; }
.pp-analysis-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pp-analysis-grid > div { min-height: 76px; padding: 14px 18px; border-right: 1px solid #f0e6e2; border-bottom: 1px solid #f0e6e2; display: grid; gap: 7px; }
.pp-analysis-grid span { color: #80716d; font-size: 10.5px; line-height: 1.3; }
.pp-analysis-grid strong { font-size: 15px; color: #31231f; }
.pp-analysis-grid > div:last-child strong,
.pp-analysis-grid > div:nth-last-child(2) strong,
.pp-analysis-grid > div:nth-last-child(3) strong { color: #09923c; }
.pp-analysis footer { padding: 12px 18px; display: flex; gap: 18px; flex-wrap: wrap; color: #7b6d69; font-size: 10px; }
.pp-analysis footer span::before { content: "✓"; color: #16a34a; font-weight: 900; margin-right: 5px; }

@media (max-width: 1050px) {
  .product-pricing-melontik-page { width: min(100% - 28px, 1536px); }
  .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-analysis-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .pp-grid { grid-template-columns: 1fr; gap: 14px; }
  .pp-card { min-height: auto; padding: 18px; }
  .pp-analysis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-analysis header { align-items: flex-start; gap: 10px; }
  .pp-vat-options { grid-template-columns: repeat(2, 1fr); }
}
