/* Checkout 3 pași — stil apropiat de fluxul „Alege → Detalii → Plătește” */
:root {
  --checkout-red: #e53935;
  --checkout-red-dark: #c62828;
  --checkout-green: #43a047;
  --checkout-green-soft: #e8f5e9;
  --checkout-border: rgba(0, 0, 0, 0.08);
}

.checkout-wiz {
  --cw-radius: 14px;
}

.checkout-wiz__prefill.checkout-wiz__prefill--hidden,
.checkout-wiz__prefill[hidden] {
  display: none !important;
}

.checkout-wiz__steps {
  gap: 0.35rem !important;
  padding: 0.75rem 0.5rem;
  background: #fafafa;
  border-radius: var(--cw-radius);
  border: 1px solid var(--checkout-border);
}

.checkout-wiz__step {
  position: relative;
}

.checkout-wiz__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #e0e0e0;
  color: #757575;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.checkout-wiz__step-label {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #9e9e9e;
}

.checkout-wiz__step--current .checkout-wiz__step-num {
  background: var(--checkout-red);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.2);
}

.checkout-wiz__step--current .checkout-wiz__step-label {
  color: var(--checkout-red-dark);
}

.checkout-wiz__step--done .checkout-wiz__step-num {
  background: var(--checkout-green);
  color: #fff;
}

.checkout-wiz__step--done .checkout-wiz__step-label {
  color: var(--checkout-green);
}

.checkout-wiz__step--todo .checkout-wiz__step-num {
  background: #eeeeee;
  color: #bdbdbd;
}

.checkout-wiz__head .checkout-wiz__badge-platform {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #f3e5f5, #ede7f6);
  color: #6a1b9a;
  margin-bottom: 0.35rem;
}

.checkout-wiz__title {
  font-weight: 800;
  color: #1a1a1a;
}

.checkout-wiz__packages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.checkout-wiz__pkg {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.checkout-wiz__pkg-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkout-wiz__pkg-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.75rem 0.85rem;
  border-radius: var(--cw-radius);
  border: 2px solid var(--checkout-border);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  min-height: 100%;
}

.checkout-wiz__pkg-qty {
  font-size: 1.25rem;
  font-weight: 800;
  color: #212121;
  line-height: 1.1;
}

.checkout-wiz__pkg-kind {
  font-size: 0.72rem;
  color: #757575;
  text-transform: lowercase;
  margin-top: 0.15rem;
}

.checkout-wiz__pkg-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--checkout-red);
  margin-top: 0.55rem;
}

.checkout-wiz__pkg-lei {
  font-size: 0.75rem;
  font-weight: 600;
}

.checkout-wiz__pkg-per1k {
  font-size: 0.68rem;
  color: #9e9e9e;
  margin-top: 0.35rem;
}

.checkout-wiz__pkg-save {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--checkout-green-soft);
  color: var(--checkout-green);
}

.checkout-wiz__flash-pill {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}

.checkout-wiz__pkg--featured .checkout-wiz__pkg-body {
  border-color: rgba(255, 193, 7, 0.65);
  background: linear-gradient(180deg, #fffef5, #fff);
}

.checkout-wiz__ribbon {
  position: absolute;
  top: -0.35rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #ffc107;
  color: #5d4000;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.checkout-wiz__pkg-check {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--checkout-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
}

.checkout-wiz__pkg-input:checked + .checkout-wiz__ribbon ~ .checkout-wiz__pkg-body,
.checkout-wiz__pkg-input:checked ~ .checkout-wiz__pkg-body {
  border-color: var(--checkout-red);
  box-shadow: 0 6px 22px rgba(229, 57, 53, 0.18);
}

.checkout-wiz__pkg:not(.checkout-wiz__pkg--featured) .checkout-wiz__pkg-input:checked ~ .checkout-wiz__pkg-body {
  border-color: var(--checkout-red);
}

.checkout-wiz__pkg-input:checked ~ .checkout-wiz__pkg-check {
  opacity: 1;
  transform: scale(1);
}

.checkout-wiz__pkg--featured .checkout-wiz__pkg-input:checked ~ .checkout-wiz__pkg-check {
  top: 1.25rem;
}

.checkout-wiz__pkg-input:focus-visible ~ .checkout-wiz__pkg-body {
  outline: 2px solid var(--checkout-red);
  outline-offset: 2px;
}

.checkout-wiz__btn-primary {
  background: var(--checkout-red);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
}

.checkout-wiz__btn-primary:hover {
  background: var(--checkout-red-dark);
  color: #fff;
}

.checkout-wiz__input {
  border-radius: 10px;
  border: 1px solid var(--checkout-border);
}

.checkout-wiz__pay-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.checkout-wiz__pay {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  cursor: pointer;
  padding: 0.85rem 1rem;
  border-radius: var(--cw-radius);
  border: 2px solid var(--checkout-border);
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}

.checkout-wiz__pay-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 1.85rem;
  color: #212121;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.checkout-wiz__pay-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkout-wiz__pay-body {
  flex: 1;
  min-width: 0;
}

.checkout-wiz__pay-title {
  display: block;
  font-weight: 800;
  color: #212121;
}

.checkout-wiz__pay-desc {
  display: block;
  font-size: 0.78rem;
  color: #757575;
  margin-top: 0.2rem;
}

.checkout-wiz__pay-check {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.checkout-wiz__pay-input:checked ~ .checkout-wiz__pay-check {
  background: var(--checkout-red);
  border-color: var(--checkout-red);
  color: #fff;
}

.checkout-wiz__pay-input:checked ~ .checkout-wiz__pay-body .checkout-wiz__pay-title {
  color: var(--checkout-red-dark);
}

.checkout-wiz__pay:has(.checkout-wiz__pay-input:checked) {
  border-color: var(--checkout-red);
  background: #fff5f5;
}

.checkout-wiz__pay--selected {
  border-color: var(--checkout-red);
  background: #fff5f5;
}

.checkout-wiz__pay--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.checkout-wiz__pay--disabled .checkout-wiz__pay-input:disabled {
  cursor: not-allowed;
}

.checkout-wiz__pay-input:focus-visible ~ .checkout-wiz__pay-check {
  outline: 2px solid var(--checkout-red);
  outline-offset: 2px;
}

.checkout-wiz__btn-cta {
  background: var(--checkout-red);
  border: none;
  color: #fff !important;
  font-weight: 800;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(229, 57, 53, 0.35);
}

.checkout-wiz__btn-cta:hover {
  background: var(--checkout-red-dark);
  color: #fff !important;
  filter: brightness(1.02);
}

.checkout-wiz__summary {
  border-radius: var(--cw-radius) !important;
  overflow: visible;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  box-shadow: 0 12px 40px rgba(26, 15, 46, 0.12) !important;
}

.checkout-wiz__summary-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--brand-purple-deep), var(--brand-orange-deep));
}

.checkout-wiz__summary-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1a1a1a;
}

.checkout-wiz__summary-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.12), rgba(255, 145, 0, 0.15));
  color: var(--brand-purple-deep);
  font-size: 1.1rem;
}

.checkout-wiz__summary-block {
  background: #fff;
  border: 1px solid var(--checkout-border);
}

.checkout-wiz__summary-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
  margin: 0.5rem 0 0.85rem;
}

.checkout-wiz__summary-row--money {
  font-weight: 600;
  font-size: 0.92rem;
  color: #333;
}

.checkout-wiz__summary-row--discount {
  font-size: 0.88rem;
}

.checkout-wiz__promo-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 0.25rem;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(67, 160, 71, 0.15);
  color: var(--checkout-green);
  vertical-align: middle;
}

.checkout-wiz__promo-box {
  border-top: none;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
  padding-bottom: 0.75rem;
}

.checkout-wiz__promo-input {
  border-radius: 8px 0 0 8px !important;
  border-right: none;
}

.checkout-wiz__promo-apply {
  background: var(--brand-purple-deep) !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 0 8px 8px 0 !important;
  border: none;
}

.checkout-wiz__promo-apply:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

.checkout-wiz__summary-wrap {
  position: relative;
}

.checkout-wiz__summary-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.checkout-wiz__lei {
  font-size: 0.72rem;
  font-weight: 600;
  color: #757575;
}

.checkout-wiz__total-amt {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--checkout-red);
  line-height: 1;
}

@media (max-width: 991.98px) {
  .checkout-wiz__summary.sticky-lg-top {
    position: relative !important;
    top: auto !important;
  }

  .checkout-wiz__layout {
    --bs-gutter-y: 0.85rem;
    /* Evită dublarea marginilor Bootstrap când coloanele sunt stivuite (mobil: conținut apoi rezumat) */
    margin-top: 0 !important;
  }

  .checkout-wiz__layout.row > [class*='col-'] {
    margin-top: 0 !important;
  }

  .checkout-wiz__layout.row > [class*='col-'] + [class*='col-'] {
    margin-top: var(--bs-gutter-y) !important;
  }

  .checkout-wiz__steps {
    padding: 0.5rem 0.35rem;
    gap: 0.2rem !important;
  }

  .checkout-wiz__step-num {
    width: 1.65rem;
    height: 1.65rem;
    font-size: 0.74rem;
    margin-bottom: 0.15rem;
  }

  .checkout-wiz__step-label {
    font-size: 0.54rem;
    letter-spacing: 0.05em;
  }

  .checkout-wiz__head .checkout-wiz__badge-platform {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
  }

  .checkout-wiz__head .checkout-wiz__title {
    font-size: 1.05rem;
  }

  .checkout-wiz__packages {
    gap: 0.55rem;
  }

  .checkout-wiz__pkg-body {
    padding: 0.65rem 0.5rem 0.55rem;
    min-height: 0;
  }

  .checkout-wiz__pkg-qty {
    font-size: 1.08rem;
  }

  .checkout-wiz__pkg-kind {
    font-size: 0.66rem;
  }

  .checkout-wiz__pkg-price {
    font-size: 0.92rem;
    margin-top: 0.38rem;
  }

  .checkout-wiz__pkg-per1k {
    font-size: 0.62rem;
    margin-top: 0.2rem;
  }

  .checkout-wiz__pkg-save {
    margin-top: 0.32rem;
    font-size: 0.57rem;
    padding: 0.12rem 0.38rem;
  }

  .checkout-wiz__pkg-check {
    top: 0.38rem;
    right: 0.38rem;
    width: 1.15rem;
    height: 1.15rem;
    font-size: 0.65rem;
  }

  .checkout-wiz__ribbon {
    font-size: 0.52rem;
    padding: 0.14rem 0.4rem;
    top: -0.3rem;
  }

  .checkout-wiz__pkg--featured .checkout-wiz__pkg-input:checked ~ .checkout-wiz__pkg-check {
    top: 1.05rem;
  }

  .checkout-wiz__pay {
    padding: 0.68rem 0.8rem;
    gap: 0.55rem;
  }

  .checkout-wiz__pay-icon {
    font-size: 1.5rem;
  }

  .checkout-wiz__pay-desc {
    font-size: 0.73rem;
  }

  .checkout-wiz__summary .card-body {
    padding: 0.9rem 0.9rem 1rem !important;
  }

  .checkout-wiz__summary-title {
    font-size: 0.88rem;
  }

  .checkout-wiz__summary-badge {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.95rem;
  }

  .checkout-wiz__summary-block {
    padding: 0.7rem !important;
    margin-bottom: 0.65rem !important;
  }

  .checkout-wiz__summary-row {
    font-size: 0.82rem;
  }

  .checkout-wiz__summary-row--money {
    font-size: 0.86rem;
  }

  .checkout-wiz__total-amt {
    font-size: 1.2rem;
  }

  .checkout-wiz__trust {
    margin-top: 1rem !important;
    padding-top: 0.85rem !important;
  }
}

/* Telefon îngust: tot 2 pe rând (ordinea din listă: stânga→dreapta, apoi rândul următor) */
@media (max-width: 575.98px) {
  .checkout-wiz__packages {
    gap: 0.45rem;
  }

  .checkout-wiz__pkg-body {
    padding: 0.55rem 0.4rem 0.5rem;
  }

  .checkout-wiz__pkg-per1k {
    font-size: 0.58rem;
    margin-top: 0.15rem;
  }

  .checkout-wiz__pane .fw-bold.text-uppercase.small {
    font-size: 0.68rem !important;
    margin-bottom: 0.65rem !important;
  }

  .checkout-wiz__btn-primary[data-checkout-next],
  .checkout-wiz__btn-cta {
    width: 100%;
    min-height: 3.15rem;
    padding: 0.9rem 1.35rem !important;
    font-size: 1.08rem;
    font-weight: 800;
    border-radius: 12px;
  }

  .checkout-wiz .d-flex.justify-content-end:has([data-checkout-next]) {
    justify-content: stretch !important;
  }

  .checkout-wiz .d-flex.justify-content-between:has([data-checkout-next]),
  .checkout-wiz .d-flex.justify-content-between:has([data-checkout-submit]) {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem !important;
  }
}

.checkout-wiz__psc-modal .modal-content {
  border-radius: var(--cw-radius);
}

.checkout-wiz__psc-rows {
  max-height: min(50vh, 22rem);
  overflow-y: auto;
}
