/* REQ-005 Fixed Special large amount channel — branch-only styles */

.fsl-topbar-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

#view-fixed_special_purchase .scroll {
  background: linear-gradient(180deg, #e8faf0 0%, #f3f6f4 140px, #f3f6f4 100%);
}

.fsl-hero {
  padding: 8px 16px 12px;
}

.fsl-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.fsl-brand {
  font-size: 28px;
  font-weight: 800;
  color: var(--opay);
  line-height: 1.1;
}

.fsl-product {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: #3d9b6a;
}

.fsl-countdown {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  flex-shrink: 0;
}

.fsl-cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 28px;
}

.fsl-cd-num {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--opay);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.fsl-cd-lab {
  margin-top: 2px;
  font-size: 9px;
  color: var(--muted);
}

.fsl-cd-colon {
  color: var(--opay);
  font-weight: 700;
  padding-top: 2px;
}

.fsl-stats {
  display: flex;
  gap: 28px;
  margin-top: 14px;
}

.fsl-stat-val {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.fsl-rate {
  font-size: 32px;
  font-weight: 800;
  color: var(--opay);
  line-height: 1;
}

.fsl-rate-was {
  font-size: 14px;
  color: #9aa3ab;
  text-decoration: line-through;
}

.fsl-days {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.fsl-stat-lab {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.fsl-quota {
  margin-top: 12px;
}

.fsl-quota-bar {
  height: 6px;
  border-radius: 999px;
  background: #d7ebe0;
  overflow: hidden;
}

.fsl-quota-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--opay);
}

.fsl-quota-txt {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.fsl-card {
  margin: 0 12px 16px;
  padding: 14px 14px 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.fsl-max-pill {
  display: inline-flex;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #b8e6d0;
  background: #f3fbf6;
  color: var(--opay-dark);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.fsl-amount-block {
  margin-top: 14px;
  text-align: center;
}

.fsl-amount-lab {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.fsl-amount-input {
  width: 100%;
  margin-top: 6px;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  outline: none;
}

.fsl-channel {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid #f0d4a8;
  background: #fff8ee;
  overflow: hidden;
}

.fsl-channel.on {
  border-color: #b8e6d0;
  background: #f3fbf6;
}

.fsl-channel-warn {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  padding: 8px 10px 0;
  font-size: 11px;
  line-height: 1.35;
  color: #b45309;
}

.fsl-channel-warn i {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 14px;
}

.fsl-channel-row {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.fsl-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #c5ccd3;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: transparent;
  background: #fff;
}

.fsl-check.on {
  border-color: var(--opay);
  background: var(--opay);
  color: #fff;
}

.fsl-check i { font-size: 12px; font-weight: 700; }

.fsl-channel-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fsl-channel-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.fsl-bubble {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  border-radius: 999px;
  padding: 2px 8px;
  background: #e8f7ee;
  color: var(--opay-dark);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.fsl-bubble i { font-size: 12px; }

.fsl-channel-meta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.fsl-channel-meta strong { color: var(--text); }

.fsl-channel-hint {
  display: block;
  color: #9aa3ab;
  font-size: 10px;
}

.fsl-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.fsl-chip {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.fsl-chip.on,
.fsl-chip.on.fsl-chip-max {
  border-color: #b8e6d0;
  background: #e8f6ef;
  color: #0a7a4b;
  font-weight: 700;
}

#view-fixed_prime {
  background: #e8f6ef;
}
#view-fixed_prime .topbar {
  background: transparent;
  border-bottom: 0;
  position: relative;
  z-index: 2;
}
#view-fixed_prime .scroll {
  background: transparent;
  padding: 0;
}
#view-fixed_prime .footer-bar {
  background: #fff;
  border-top: 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.fx-prime-page {
  min-height: 100%;
  background: linear-gradient(180deg, #e8f6ef 0%, #e8f6ef 168px, #f3f4f6 168px);
  padding-bottom: 8px;
}

.fx-prime-hero {
  padding: 4px 20px 18px;
}

.fx-prime-titles { margin-bottom: 14px; }

.fx-prime-brand {
  font-size: 30px;
  font-weight: 800;
  font-style: italic;
  color: var(--opay);
  line-height: 1.05;
  letter-spacing: -0.3px;
}

.fx-prime-product {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  color: #2f8f5b;
  line-height: 1.2;
}

.fx-prime-stats {
  display: flex;
  gap: 36px;
  margin-bottom: 14px;
}

.fx-prime-stat-val {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.fx-prime-rate {
  font-size: 34px;
  font-weight: 800;
  color: var(--opay);
  line-height: 1;
}

.fx-prime-rate-was {
  font-size: 14px;
  color: #9aa3ab;
  text-decoration: line-through;
}

.fx-prime-days {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.fx-prime-stat-lab {
  margin-top: 4px;
  font-size: 12px;
  color: #8b949e;
}

.fx-prime-quota {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 80, 50, 0.04);
}

.fx-prime-quota-txt {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 11px;
  color: #8b949e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-prime-quota-bar {
  flex: 0 0 72px;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: #e8ecef;
  overflow: hidden;
}

.fx-prime-quota-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--opay);
}

.fx-prime-sheet {
  background: #fff;
  border-radius: 20px 20px 0 0;
  margin-top: 2px;
  padding: 14px 16px 20px;
  min-height: calc(100% - 150px);
  box-shadow: 0 -2px 12px rgba(15, 80, 50, 0.04);
}

.fx-prime-inner {
  background: #fff;
  border: 1px solid #d8efe4;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}

.fx-prime-max {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 5px 12px;
  min-height: 24px;
  border: 0;
  border-radius: 0;
  background: #eaf8f0;
  color: #1f9a5c;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.fx-prime-inner-body {
  padding: 14px;
}

.fx-prime-amount {
  text-align: left;
  padding: 0;
}

.fx-prime-amount-lab {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.fx-prime-amount-box {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  box-sizing: border-box;
  min-height: 64px;
  display: flex;
  align-items: center;
}

.fx-prime-amount-box.error {
  border-color: #ef4444;
  background: #f3f4f6;
}

.fx-prime-amount-input {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  height: auto;
  min-height: 42px;
  padding: 2px 0;
  color: var(--opay);
  letter-spacing: -0.5px;
  outline: none;
  font-family: inherit;
  overflow: visible;
  -webkit-appearance: none;
  appearance: none;
}

.fx-prime-amount-box.error .fx-prime-amount-input {
  color: #ef4444;
  background: transparent;
}

.fx-prime-amount-err {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: #ef4444;
  line-height: 1.35;
}

.fx-prime-amount-err[hidden] {
  display: none;
}

.fx-prime-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.fx-prime-chip {
  border: 0;
  background: #f0f1f3;
  border-radius: 10px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
}

.fx-prime-chip.on {
  border: 0;
  background: #e8f6ef;
  color: #0a7a4b;
  font-weight: 700;
}

.fx-prime-divider {
  height: 0;
  margin: 14px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.fx-prime-renew {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fx-prime-renew-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.fx-prime-renew-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--opay);
  background: #e8f7ee;
  border-radius: 999px;
  padding: 2px 7px;
}

.fx-prime-renew-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f4f6;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.45;
}

.fx-prime-expect {
  margin: 16px 4px 8px;
  padding: 0;
}
.fx-prime-expect h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.fx-prime-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
  color: #6b7280;
}
.fx-prime-row strong { color: var(--text); font-weight: 700; }
.fx-prime-row.muted span,
.fx-prime-row.muted strong {
  color: #9ca3af;
  font-weight: 500;
}
.fx-prime-row.total {
  margin-top: 2px;
  padding-top: 8px;
  font-weight: 700;
  color: var(--text);
}
.fx-prime-row.total strong {
  font-weight: 800;
  color: var(--text);
}

.fx-prime-preview {
  padding-bottom: 12px;
}
.fx-prime-preview-amt {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  margin: 2px 0 10px;
  color: var(--text);
  line-height: 1.15;
}
.fx-prime-preview-card {
  background: #f5f6f8;
  border-radius: 12px;
  padding: 8px 14px 4px;
  margin-bottom: 10px;
}
.fx-prime-preview-card .fx-kv {
  margin-top: 0;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.25;
  min-height: 0;
}
.fx-prime-preview-card .fx-kv:first-child {
  padding-top: 2px;
}
.fx-prime-preview-card .fx-kv:last-child {
  padding-bottom: 4px;
}
.fx-prime-disclaimer {
  margin: 2px 0 12px;
  padding: 8px 10px;
  background: #fff8e8;
  border: 1px solid #f5e0b8;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.4;
  color: #8a7350;
}

.fsl-voucher {
  width: 100%;
  margin-top: 12px;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.fsl-voucher.selected { border-color: #b8e6d0; background: #f7fcf9; }
.fsl-voucher.invalid { border-color: #f3d0d0; }
.fsl-voucher.blocked {
  border-color: #e8ecef;
  background: #f5f6f7;
  cursor: not-allowed;
  opacity: 0.85;
}
.fsl-voucher.compact {
  padding: 8px 10px;
  min-height: 0;
}

.fsl-voucher-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e8f7ee;
  color: var(--opay);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 18px;
}

.fsl-voucher.compact .fsl-voucher-icon {
  width: 28px;
  height: 28px;
  font-size: 14px;
  background: #e9ecef;
  color: #9aa3ab;
}

.fsl-voucher-icon.muted {
  background: #e9ecef;
  color: #9aa3ab;
}

.fsl-voucher-badge {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--opay);
  border-radius: 8px;
  padding: 6px 4px;
  line-height: 1;
}

.fsl-voucher-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fsl-voucher-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.fsl-voucher.compact .fsl-voucher-title {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.fsl-voucher-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.fsl-voucher.compact .fsl-voucher-sub {
  font-size: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fsl-voucher-sub.err { color: #dc2626; font-weight: 600; }

.fsl-voucher-action {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--opay);
}

.fsl-renew {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fsl-renew-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fsl-renew-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--opay);
  background: #e8f7ee;
  border-radius: 999px;
  padding: 2px 6px;
}

.fsl-renew-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.fsl-footer-legal {
  margin-top: 8px;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}

.fsl-sheet-body p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

.fsl-sheet-muted {
  color: var(--muted) !important;
  font-size: 13px !important;
}

.fsl-debug-panel .debug-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.fsl-debug-panel input[type="number"] {
  width: 110px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 12px;
}

#view-fixed_special_purchase .switch {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  cursor: pointer;
  border: 0;
  flex-shrink: 0;
}

#view-fixed_special_purchase .switch.on { background: var(--opay); }

#view-fixed_special_purchase .switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  transition: left .2s;
}

#view-fixed_special_purchase .switch.on span { left: 21px; }
