:root {
  --bg: #f8f4ee;
  --card: #fffefb;
  --brown: #3d2213;
  --gold: #b9872f;
  --muted: #5c4a3d;
  --border: rgba(61, 34, 19, 0.12);
  --radius: 14px;
  --font: "Cairo", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--erv-text, var(--brown));
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: calc(var(--erw-vh, 1vh) * 100);
}

a {
  color: var(--gold);
  font-weight: 700;
}

.layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

h1 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  margin: 0 0 8px;
}

.sub {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 28px rgba(45, 26, 14, 0.06);
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 12px;
}

textarea {
  min-height: 72px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #b9872f, #7a5a1f);
  color: #fffef8;
}

.btn-ghost {
  background: rgba(185, 135, 47, 0.12);
  color: var(--brown);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.msg {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-top: 10px;
}

.msg.ok {
  background: rgba(46, 125, 50, 0.12);
  color: #1b5e20;
}

.msg.err {
  background: rgba(198, 40, 40, 0.1);
  color: #b71c1c;
}

.grid-apps {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.app-tile {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.app-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(45, 26, 14, 0.08);
}

.app-tile strong {
  display: block;
  color: var(--brown);
  margin-bottom: 4px;
}

.app-tile span {
  font-size: 0.8rem;
  color: var(--muted);
}

.order-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.order-row:last-child {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(185, 135, 47, 0.15);
  color: var(--gold);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.top-nav a {
  text-decoration: none;
}

/* خريطة placeholder (تتبع) */
.map-placeholder {
  min-height: 220px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: linear-gradient(135deg, rgba(185, 135, 47, 0.06), rgba(61, 34, 19, 0.04)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 11px,
      rgba(61, 34, 19, 0.04) 11px,
      rgba(61, 34, 19, 0.04) 12px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 11px,
      rgba(61, 34, 19, 0.04) 11px,
      rgba(61, 34, 19, 0.04) 12px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.track-coords {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* ——— إطار السلة الذهبي (مطابق لبطاقة الدفع) ——— */
.lp-cart-panel__surface {
  position: relative;
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(201, 162, 39, 0.14), transparent 55%),
    radial-gradient(ellipse 90% 60% at 0% 100%, rgba(185, 135, 47, 0.1), transparent 50%),
    linear-gradient(168deg, #fffefb 0%, #faf6ef 48%, #f3ebe0 100%);
}

.lp-cart-panel__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.42) 48%,
    transparent 58%
  );
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}

.lp-cart-panel__surface > * {
  position: relative;
  z-index: 1;
}

.lp-cart-card {
  border-radius: 18px;
  border: 1px solid transparent;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(250, 246, 238, 0.93)) padding-box,
    linear-gradient(
      135deg,
      rgba(232, 197, 106, 0.92) 0%,
      rgba(185, 135, 47, 0.52) 42%,
      rgba(122, 90, 31, 0.72) 100%
    )
    border-box;
  box-shadow:
    0 12px 32px rgba(45, 26, 14, 0.09),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset,
    0 0 28px rgba(201, 162, 39, 0.1);
}

.lp-cart-card--pay {
  box-shadow:
    0 14px 36px rgba(45, 26, 14, 0.11),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 0 36px rgba(201, 162, 39, 0.14);
}

/* ——— بطاقة الدفع الفاخرة (ERVENOW Luxe Pay) ——— */
.lp-cart-pay-section {
  margin-bottom: 14px;
}

.lp-cart-pay-section[hidden] {
  display: none !important;
}

.erv-pay-luxe-wrap {
  position: relative;
  z-index: 5;
}

.erv-pay-luxe {
  position: relative;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(232, 197, 106, 0.95) 0%,
    rgba(185, 135, 47, 0.55) 38%,
    rgba(122, 90, 31, 0.75) 100%
  );
  box-shadow:
    0 22px 48px rgba(45, 26, 14, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 0 40px rgba(201, 162, 39, 0.12);
}

.erv-pay-luxe__shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(201, 162, 39, 0.14), transparent 55%),
    radial-gradient(ellipse 90% 60% at 0% 100%, rgba(185, 135, 47, 0.1), transparent 50%),
    linear-gradient(168deg, #fffefb 0%, #faf6ef 48%, #f3ebe0 100%);
}

.erv-pay-luxe__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.45) 48%,
    transparent 58%
  );
  opacity: 0.35;
  pointer-events: none;
}

.erv-pay-luxe__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(185, 135, 47, 0.16);
}

.erv-pay-luxe__head-text {
  min-width: 0;
}

.erv-pay-luxe__eyebrow {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a7228;
  margin-bottom: 3px;
}

.erv-pay-luxe__title {
  display: block;
  font-size: 1rem;
  font-weight: 900;
  color: #3d2213;
  line-height: 1.25;
}

.erv-pay-luxe__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.erv-pay-luxe__badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.16);
  color: #5c3710;
  border: 1px solid rgba(185, 135, 47, 0.28);
  white-space: nowrap;
}

.erv-pay-luxe__body {
  position: relative;
  padding: 12px 14px 14px;
}

.erv-pay-luxe__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border: 1px solid rgba(185, 135, 47, 0.28);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(250, 246, 238, 0.88));
  box-shadow:
    0 10px 28px rgba(45, 26, 14, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-family: inherit;
  text-align: start;
  transition:
    transform 0.22s ease,
    box-shadow 0.25s ease,
    border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.erv-pay-luxe__trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow:
    0 14px 34px rgba(155, 111, 37, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.erv-pay-luxe__trigger:focus-visible {
  outline: 2px solid rgba(201, 162, 39, 0.75);
  outline-offset: 2px;
}

.erv-pay-luxe--open .erv-pay-luxe__trigger {
  border-color: rgba(201, 162, 39, 0.72);
  box-shadow:
    0 0 0 3px rgba(201, 162, 39, 0.16),
    0 12px 30px rgba(155, 111, 37, 0.12);
}

.erv-pay-luxe__trigger-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #fffdfa, #f5efe4);
  border: 1px solid rgba(185, 135, 47, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.erv-pay-luxe__trigger-icon img {
  width: auto;
  height: 26px;
  max-width: 42px;
  object-fit: contain;
}

.erv-pay-luxe__trigger-icon--placeholder {
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.55;
}

.erv-pay-luxe__trigger-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.erv-pay-luxe__trigger-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a7228;
  margin-bottom: 2px;
}

.erv-pay-luxe__trigger-value {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: #3d2213;
  line-height: 1.35;
}

.erv-pay-luxe__trigger-hint {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #6e5a4a;
  line-height: 1.35;
}

.erv-pay-luxe__trigger-chev {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.14);
  position: relative;
}

.erv-pay-luxe__trigger-chev::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #7a5a1f;
  border-bottom: 2px solid #7a5a1f;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}

.erv-pay-luxe--open .erv-pay-luxe__trigger-chev::after {
  transform: rotate(-135deg) translateY(2px);
}

.erv-pay-luxe__pick-label {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6e5a4a;
  text-align: center;
}

.erv-pay-luxe__panel--inline {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  z-index: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  max-height: min(280px, 42vh);
  margin: 0 0 10px;
  padding: 6px;
}

/* داخل سلة الهيدر: عرض كامل لوسائل الدفع بدون قصّ */
.lp-cart-pay-section .erv-pay-luxe--inline .erv-pay-luxe__shell {
  overflow: visible;
}

.lp-cart-pay-section .erv-pay-luxe__panel--inline {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  max-height: none;
  overflow: visible;
  border: 1px solid rgba(185, 135, 47, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.lp-cart-panel--pay-step .lp-cart-stack {
  max-height: none;
}

.lp-cart-panel--pay-step .lp-cart-card__body--items {
  max-height: min(22vh, 168px);
  min-height: 72px;
}

.lp-cart-panel--pay-step .lp-cart-card--items,
.lp-cart-panel--pay-step .lp-cart-card--fin,
.lp-cart-panel--pay-step .lp-cart-card--pay {
  flex-shrink: 0;
}

.lp-cart-panel--pay-step .lp-cart-card--pay,
.lp-cart-panel--pay-step .lp-cart-card--pay .lp-cart-card__body--pay,
.lp-cart-panel--pay-step .lp-cart-pay-section {
  overflow: visible;
}

.erv-pay-luxe--inline .erv-pay-luxe__trigger {
  display: none;
}

.erv-pay-luxe--inline .erv-pay-luxe__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.erv-pay-luxe__panel {
  position: absolute;
  left: 14px;
  right: 14px;
  top: calc(100% - 6px);
  z-index: 20;
  max-height: min(52vh, 360px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(185, 135, 47, 0.28);
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.99), rgba(248, 244, 238, 0.98));
  box-shadow:
    0 24px 56px rgba(45, 26, 14, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity 0.24s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.28s;
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 55, 29, 0.35) transparent;
}

.erv-pay-luxe--open .erv-pay-luxe__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.24s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

.erv-pay-luxe__group {
  margin-bottom: 8px;
}

.erv-pay-luxe__group:last-child {
  margin-bottom: 0;
}

.erv-pay-luxe__group-label {
  margin: 4px 8px 8px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a7228;
}

.erv-pay-luxe__opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  margin-bottom: 6px;
  border: 1px solid rgba(61, 34, 19, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-family: inherit;
  text-align: start;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.erv-pay-luxe__opt:last-child {
  margin-bottom: 0;
}

.erv-pay-luxe__opt:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 162, 39, 0.42);
  background: rgba(255, 252, 245, 0.98);
  box-shadow: 0 8px 22px rgba(45, 26, 14, 0.07);
}

.erv-pay-luxe__opt--selected {
  border-color: rgba(201, 162, 39, 0.78);
  background: linear-gradient(135deg, rgba(255, 252, 245, 0.98), rgba(250, 244, 232, 0.95));
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.22),
    0 10px 24px rgba(155, 111, 37, 0.1);
}

.erv-pay-luxe__opt-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #fffdfa, #f0e8da);
  border: 1px solid rgba(185, 135, 47, 0.16);
}

.erv-pay-luxe__opt-icon img {
  width: auto;
  height: 22px;
  max-width: 38px;
  object-fit: contain;
}

.erv-pay-luxe__opt--ew .erv-pay-luxe__opt-icon {
  background: linear-gradient(145deg, #2a1810, #1a1008);
  border-color: rgba(201, 162, 39, 0.35);
}

.erv-pay-luxe__opt--tabby .erv-pay-luxe__opt-icon {
  background: linear-gradient(145deg, #0f766e, #115e59);
}

.erv-pay-luxe__opt--tamara .erv-pay-luxe__opt-icon {
  background: linear-gradient(145deg, #831843, #9d174d);
}

.erv-pay-luxe__opt-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.erv-pay-luxe__opt-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: #3d2213;
  line-height: 1.3;
}

.erv-pay-luxe__opt-hint {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6e5a4a;
  line-height: 1.35;
}

.erv-pay-luxe__opt-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(185, 135, 47, 0.28);
  position: relative;
  opacity: 0.35;
  transition:
    opacity 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.erv-pay-luxe__opt--selected .erv-pay-luxe__opt-check {
  opacity: 1;
  background: linear-gradient(135deg, #c9a227, #7a5a1f);
  border-color: transparent;
}

.erv-pay-luxe__opt--selected .erv-pay-luxe__opt-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #fffef8;
  border-bottom: 2px solid #fffef8;
  transform: rotate(45deg);
}

.erv-pay-luxe__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #8a735f;
}

.erv-pay-luxe__foot svg {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}

.erv-pay-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  clip: rect(0, 0, 0, 0);
}

.erv-pay-ew-detail--luxe {
  margin-top: 12px;
  margin-bottom: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 252, 245, 0.98), rgba(248, 241, 229, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (max-width: 520px) {
  .erv-pay-luxe__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .erv-pay-luxe__badges {
    justify-content: flex-start;
  }
  .erv-pay-luxe__panel {
    max-height: min(46vh, 300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .erv-pay-luxe__trigger,
  .erv-pay-luxe__panel,
  .erv-pay-luxe__opt,
  .erv-pay-luxe__trigger-chev::after {
    transition: none;
  }
}

@media (prefers-color-scheme: dark) {
  .erv-pay-luxe__shell {
    background:
      radial-gradient(ellipse 120% 80% at 100% 0%, rgba(201, 162, 39, 0.12), transparent 55%),
      linear-gradient(168deg, #241c16 0%, #1a1410 100%);
  }
  .erv-pay-luxe__title,
  .erv-pay-luxe__trigger-value,
  .erv-pay-luxe__opt-title {
    color: #faf6ef;
  }
  .erv-pay-luxe__trigger {
    background: linear-gradient(165deg, rgba(36, 28, 22, 0.96), rgba(24, 18, 14, 0.92));
    border-color: rgba(212, 167, 106, 0.28);
  }
  .erv-pay-luxe__panel {
    background: linear-gradient(180deg, rgba(30, 24, 20, 0.99), rgba(22, 18, 14, 0.98));
    border-color: rgba(212, 167, 106, 0.25);
  }
  .erv-pay-luxe__opt {
    background: rgba(28, 22, 18, 0.88);
    border-color: rgba(212, 167, 106, 0.12);
  }
  .erv-pay-luxe__opt-hint,
  .erv-pay-luxe__trigger-hint {
    color: rgba(255, 248, 238, 0.62);
  }
}

/* بطاقات الدفع — السلة (رئيسية + صفحة السلة) */
.lp-cart-panel__pay-label {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--brown);
  text-align: center;
  letter-spacing: 0.02em;
}

@media (prefers-color-scheme: dark) {
  .lp-cart-panel__pay-label {
    color: #faf6ef;
  }
}

.erv-pay-cards {
  --pay-card-bg: linear-gradient(165deg, #fffdfa 0%, #faf6ef 100%);
  --pay-card-br: rgba(61, 34, 19, 0.12);
  --pay-card-sh: 0 10px 32px rgba(45, 26, 14, 0.1);
  --pay-card-title: #2a1810;
  --pay-card-hint: #6e5a4a;
  --pay-card-hover: rgba(212, 167, 106, 0.18);
  --pay-card-selected-br: rgba(201, 162, 39, 0.85);
  --pay-card-selected-bg: linear-gradient(165deg, rgba(255, 252, 245, 0.98) 0%, rgba(250, 244, 232, 0.95) 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.erv-pay-cards__row--5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.erv-pay-cards__row--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 520px) {
  .erv-pay-cards__row--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .erv-pay-cards__row--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.erv-pay-cards__bnpl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 400px) {
  .erv-pay-cards__bnpl {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  .erv-pay-cards {
    --pay-card-bg: linear-gradient(165deg, #1e1814 0%, #161210 100%);
    --pay-card-br: rgba(212, 167, 106, 0.22);
    --pay-card-sh: 0 12px 36px rgba(0, 0, 0, 0.45);
    --pay-card-title: #faf6ef;
    --pay-card-hint: rgba(255, 248, 238, 0.62);
    --pay-card-hover: rgba(212, 167, 106, 0.12);
    --pay-card-selected-bg: linear-gradient(165deg, rgba(42, 32, 26, 0.98) 0%, rgba(28, 22, 18, 0.96) 100%);
  }
}

.erv-pay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 12px 6px 10px;
  border: 1px solid var(--pay-card-br);
  border-radius: 22px;
  background: var(--pay-card-bg);
  box-shadow: var(--pay-card-sh);
  cursor: pointer;
  font-family: inherit;
  color: var(--pay-card-title);
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    border-color 0.2s ease,
    background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.erv-pay-card--bnpl {
  padding: 12px 6px 10px;
  gap: 6px;
  min-height: 0;
  justify-content: center;
}

.erv-pay-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(45, 26, 14, 0.14);
  border-color: rgba(201, 162, 39, 0.45);
  background: var(--pay-card-hover);
}

@media (prefers-color-scheme: dark) {
  .erv-pay-card:hover {
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
  }
}

.erv-pay-card--selected {
  border-color: var(--pay-card-selected-br);
  box-shadow:
    0 0 0 2px rgba(201, 162, 39, 0.35),
    0 12px 36px rgba(45, 26, 14, 0.12);
  background: var(--pay-card-selected-bg);
}

.erv-pay-card--ew {
  background: linear-gradient(145deg, #1a120c 0%, #2d1a0f 55%, #3d2615 100%);
  color: #faf6ef;
  border-color: rgba(212, 167, 106, 0.45);
}

.erv-pay-card--ew .erv-pay-card__hint {
  color: rgba(255, 248, 238, 0.72);
}

.erv-pay-card--ew.erv-pay-card--selected {
  box-shadow:
    0 0 0 2px rgba(232, 197, 106, 0.55),
    0 14px 40px rgba(0, 0, 0, 0.35);
}

.erv-pay-card--tabby {
  background: linear-gradient(165deg, #4f36e8 0%, #3524b0 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.erv-pay-card--tabby .erv-pay-card__hint {
  color: rgba(255, 255, 255, 0.88);
}

.erv-pay-card--tabby.erv-pay-card--selected {
  box-shadow:
    0 0 0 2px rgba(180, 160, 255, 0.65),
    0 14px 36px rgba(0, 0, 0, 0.35);
}

.erv-pay-card--tamara {
  background: linear-gradient(165deg, #e91e7a 0%, #a81455 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.erv-pay-card--tamara .erv-pay-card__hint {
  color: rgba(255, 255, 255, 0.9);
}

.erv-pay-card--tamara.erv-pay-card--selected {
  box-shadow:
    0 0 0 2px rgba(255, 180, 210, 0.55),
    0 14px 36px rgba(0, 0, 0, 0.35);
}

.erv-pay-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
}

.erv-pay-card__icon {
  display: block;
  height: 26px;
  width: auto;
  max-height: 26px;
  max-width: min(100%, 90px);
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}

.erv-pay-card--ew .erv-pay-card__icon {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.erv-pay-card__title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.erv-pay-card__hint {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--pay-card-hint);
  line-height: 1.35;
  max-width: 100%;
}

.erv-pay-ew-detail {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: linear-gradient(135deg, rgba(255, 252, 245, 0.95), rgba(250, 244, 232, 0.88));
  box-shadow: 0 6px 22px rgba(45, 26, 14, 0.08);
}

@media (prefers-color-scheme: dark) {
  .erv-pay-ew-detail {
    background: linear-gradient(135deg, rgba(36, 28, 22, 0.95), rgba(22, 18, 14, 0.92));
    border-color: rgba(212, 167, 106, 0.35);
  }
}

.erv-pay-ew-detail__row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brown);
}

@media (prefers-color-scheme: dark) {
  .erv-pay-ew-detail__row {
    color: #faf6ef;
  }
}

.erv-pay-ew-detail__label {
  color: var(--muted);
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  .erv-pay-ew-detail__label {
    color: rgba(255, 248, 238, 0.65);
  }
}

.erv-pay-ew-detail__bal {
  font-size: 1.1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--brown);
}

@media (prefers-color-scheme: dark) {
  .erv-pay-ew-detail__bal {
    color: #f5e6c8;
  }
}

.erv-pay-ew-detail__cur {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
}

.erv-pay-ew-detail__tagline {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 800;
  color: #5c3710;
}

@media (prefers-color-scheme: dark) {
  .erv-pay-ew-detail__tagline {
    color: #e8c56a;
  }
}

.lp-cart-panel__footer {
  flex-shrink: 0;
  padding: 14px 16px 18px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(185, 135, 47, 0.14);
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.72), rgba(248, 244, 238, 0.95));
  overflow: visible;
}

@media (prefers-color-scheme: dark) {
  .lp-cart-panel__footer {
    border-top-color: rgba(212, 167, 106, 0.15);
    background: linear-gradient(180deg, rgba(28, 22, 18, 0.92), rgba(22, 18, 14, 0.96));
  }
}

@import url("/assets/responsive-site.css");
@import url("/assets/ervenow-responsive.css");
