/* ═══════════════════════════════════════
   JELDEEX — Checkout Page
   Black & White Theme
   ═══════════════════════════════════════ */

.jlx-ck-layout {
  display: grid; grid-template-columns: 7fr 5fr;
  gap: 56px; align-items: start;
}

/* ── Left column ── */
.jlx-ck-left {
  background: #ffffff; border-radius: 14px;
  padding: 36px; border: 1px solid #e5e5e5;
}

/* ── Section title ── */
.jlx-ck-section-title {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.18em; color: #999;
  font-weight: 700; margin: 0 0 16px;
}

/* ── Form grids ── */
.jlx-ck-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.jlx-ck-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.jlx-ck-span-2 { grid-column: span 2; }

/* ── Form fields ── */
.jlx-ck-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.jlx-wrap .jlx-ck-field label {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.08em; color: #888;
}
.jlx-wrap .jlx-ck-field input,
.jlx-wrap .jlx-ck-field select,
.jlx-wrap .jlx-ck-field textarea {
  background: #f5f5f5 !important; border: 1px solid #e0e0e0 !important;
  border-radius: 4px; padding: 12px 14px; color: #111 !important;
  font-size: 13px; outline: none; transition: border-color 0.2s;
  font-family: 'Manrope', sans-serif; resize: none; width: 100%;
}
.jlx-wrap .jlx-ck-field input:focus,
.jlx-wrap .jlx-ck-field select:focus,
.jlx-wrap .jlx-ck-field textarea:focus {
  border-color: #111 !important;
}
.jlx-wrap .jlx-ck-field select option { background: #fff; color: #111; }

/* ── Zone cards ── */
.jlx-ck-zone-cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; margin-bottom: 22px;
}
.jlx-ck-zone-card {
  padding: 16px; border: 1px solid #e0e0e0; border-radius: 8px;
  background: #fafafa; cursor: pointer; transition: all 0.25s;
}
.jlx-ck-zone-card input { display: none; }
.jlx-ck-zone-card:has(input:checked) {
  border-color: #111; background: #f5f5f5;
}
.jlx-ckz-top {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 12px;
}
.jlx-ckz-icon { font-size: 20px; color: #ccc; }
.jlx-ck-zone-card:has(input:checked) .jlx-ckz-icon { color: #111; }
.jlx-ckz-price { font-size: 11px; font-weight: 700; color: #999; }
.jlx-ck-zone-card:has(input:checked) .jlx-ckz-price { color: #111; }
.jlx-wrap .jlx-ckz-name { font-size: 13px; font-weight: 700; margin: 0 0 3px; color: #333; }
.jlx-wrap .jlx-ckz-sub {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.08em; color: #aaa; margin: 0;
}

/* ── COD card ── */
.jlx-cod-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; background: #fafafa;
  border: 1.5px solid #111; border-radius: 8px;
}
.jlx-cod-icon { font-size: 24px; color: #111; }
.jlx-wrap .jlx-cod-card strong { display: block; font-size: 14px; color: #111; margin-bottom: 2px; }
.jlx-wrap .jlx-cod-card small  { font-size: 11px; color: #999; }
.jlx-cod-check { margin-left: auto; color: #111; }
.jlx-cod-check .material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ── Submit button ── */
.jlx-wrap .jlx-btn-confirm {
  width: 100%; display: flex; align-items: center;
  justify-content: center; gap: 8px; padding: 16px; margin-top: 24px;
  background: #111111; color: #ffffff;
  font-size: 15px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; border: none; border-radius: 8px;
  cursor: pointer; transition: background 0.2s;
  font-family: 'Manrope', sans-serif;
}
.jlx-wrap .jlx-btn-confirm:hover { background: #333333; }
.jlx-wrap .jlx-btn-confirm:disabled { opacity: 0.65; cursor: not-allowed; }

/* ── Order error ── */
.jlx-order-error {
  margin-top: 14px; padding: 12px 16px;
  background: rgba(239, 68, 68, 0.06); border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px; color: #ef4444; font-size: 13px; line-height: 1.5;
}

/* ── Right column ── */
.jlx-ck-right { position: sticky; top: 80px; }
.jlx-ck-summary {
  background: #ffffff; border: 1px solid #e5e5e5;
  border-radius: 14px; padding: 28px;
}

.jlx-ck-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.jlx-ck-item  { display: flex; gap: 14px; align-items: center; }
.jlx-ck-item-img {
  position: relative; width: 72px; height: 72px; border-radius: 6px;
  overflow: hidden; background: #f0f0f0; flex-shrink: 0;
}
.jlx-ck-item-img img { width: 100%; height: 100%; object-fit: cover; }
.jlx-ck-qty-badge {
  position: absolute; top: -6px; right: -6px;
  background: #111; color: #fff; font-size: 10px; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.jlx-ck-item-info { flex: 1; }
.jlx-wrap .jlx-ck-item-name { font-size: 12px; font-weight: 700; color: #111; margin-bottom: 4px; }
.jlx-ck-item-vars { display: flex; gap: 4px; flex-wrap: wrap; }
.jlx-wrap .jlx-ck-item-price { font-size: 13px; font-weight: 700; white-space: nowrap; color: #111; }

/* ── Trust grid ── */
.jlx-trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; padding-top: 16px;
  border-top: 1px solid #e5e5e5; margin-top: 8px;
}
.jlx-trust-cell { text-align: center; }
.jlx-trust-cell .material-symbols-outlined {
  color: #ccc; font-size: 16px; display: block; margin-bottom: 4px;
}
.jlx-wrap .jlx-trust-cell p {
  font-size: 9px; text-transform: uppercase;
  letter-spacing: -0.01em; color: #bbb; margin: 0;
}

/* ═══════════════════════════════════════
   SUCCESS STATE
   ═══════════════════════════════════════ */
.jlx-success-box {
  max-width: 560px; margin: 60px auto;
  background: #ffffff; border: 1px solid #e5e5e5;
  border-radius: 16px; padding: 48px 40px; text-align: center;
}
.jlx-success-icon .material-symbols-outlined {
  font-size: 64px; color: #22c55e;
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 48;
  display: block; margin-bottom: 20px;
}
.jlx-wrap .jlx-success-title {
  font-size: 26px; font-weight: 700; color: #111; margin: 0 0 10px;
}
.jlx-success-sub {
  font-size: 14px; color: #888; margin: 0 0 28px; line-height: 1.6;
}
.jlx-success-details {
  background: #fafafa; border-radius: 10px;
  padding: 16px 20px; margin-bottom: 28px; text-align: left;
}
.jlx-success-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid #e5e5e5; font-size: 13px;
}
.jlx-success-row:last-child { border-bottom: none; }
.jlx-success-row span   { color: #999; }
.jlx-success-row strong  { color: #111; text-align: right; max-width: 60%; }
.jlx-success-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ── Step indicator (if used) ── */
.jlx-steps { display: flex; align-items: center; max-width: 380px; margin-bottom: 36px; }
.jlx-step  { display: flex; flex-direction: column; gap: 3px; }
.jlx-step-num { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 500; color: #ccc; }
.jlx-step-lbl { font-size: 12px; font-weight: 600; color: #ccc; }
.jlx-step.active .jlx-step-num, .jlx-step.active .jlx-step-lbl { color: #111; }
.jlx-step.done .jlx-step-num, .jlx-step.done .jlx-step-lbl { color: #22c55e; }
.jlx-step-line { flex: 1; height: 1px; background: #e0e0e0; margin: 0 12px; }
.jlx-ck-step { animation: jlxFade 0.3s ease; }
.jlx-ck-step.hidden { display: none; }

/* ── Action buttons ── */
.jlx-ck-actions { display: flex; gap: 10px; margin-top: 20px; }
.jlx-wrap .jlx-btn-next {
  flex: 1; padding: 14px; background: #111; color: #fff;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; border: none; border-radius: 6px;
  cursor: pointer; transition: background 0.2s; font-family: 'Manrope', sans-serif;
}
.jlx-wrap .jlx-btn-next:hover { background: #333; }
.jlx-wrap .jlx-btn-back {
  padding: 14px 16px; background: transparent; color: #999;
  border: 1px solid #e0e0e0; border-radius: 6px; cursor: pointer;
  font-size: 12px; font-family: 'Manrope', sans-serif; transition: color 0.2s;
}
.jlx-wrap .jlx-btn-back:hover { color: #111; }

/* ═══════════════════════════════════════
   RESPONSIVE — Checkout
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .jlx-ck-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .jlx-ck-right {
    position: static;
  }
}
@media (max-width: 768px) {
  .jlx-ck-left {
    padding: 22px 18px;
  }
  .jlx-ck-grid-2,
  .jlx-ck-grid-3 {
    grid-template-columns: 1fr;
  }
  .jlx-ck-span-2 {
    grid-column: span 1;
  }
  .jlx-ck-zone-cards {
    grid-template-columns: 1fr;
  }
  .jlx-ck-summary {
    padding: 20px 16px;
  }
  .jlx-ck-item-img {
    width: 60px;
    height: 60px;
  }
  .jlx-success-box {
    padding: 32px 20px;
    margin: 30px auto;
  }
}
