/* ==========================================================================
   checkout.css — Checkout page
   Checkout sections, payment options, order summary.
   Self-contained: every value is written out (no CSS variables) and every
   selector has its own rule, so changing one block never touches another.
   ========================================================================== */

/* ── .payment-option ── */
.payment-option.active {
  border-color: #4a154b;
  background: #4a154b08;
}

.payment-option input[type="radio"] {
  accent-color: #4a154b;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ── .order-summary-card ── */
.order-summary-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 6px 30px #4a154b1f;
  position: sticky;
  top: 140px;
}

.order-summary-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #4a154b;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .order-summary-card {
    position: static;
  }

}

/* ── .checkout-layout ── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  padding: 40px 0 72px;
  align-items: start;
}

/* ── .checkout-section ── */
.checkout-section {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 6px 30px #4a154b1f;
}

.checkout-section h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #4a154b;
  margin-bottom: 18px;
}

/* ── .payment-methods ── */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── .payment-option ── */
.payment-option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1.5px solid #e0c8e8;
  border-radius: 14px;
  cursor: pointer;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.payment-option:hover {
  border-color: #4a154b;
  background: #f9f0fa;
}

.payment-option.active {
  border-color: #4a154b;
  background: #f9f0fa;
  box-shadow: 0 0 0 3px #4a154b1a;
}

/* ── .payment-option-label ── */
.payment-option-label {
  font-weight: 600;
  color: #4a154b;
}

/* ── .payment-option-desc ── */
.payment-option-desc {
  font-size: .84rem;
  color: #4a154bb2;
  margin-top: 3px;
  line-height: 1.55;
}

/* ── .place-order-btn ── */
.place-order-btn {
  width: 100%;
  margin-top: 18px;
  padding: 16px;
  font-size: .95rem;
}

/* ── .order-item ── */
.order-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0e0f2;
}

/* ── .order-item-img ── */
.order-item-img {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  background: #f0e0f2;
}

/* ── .order-item-info ── */
.order-item-info {
  flex: 1;
  min-width: 0;
}

/* ── .order-item-name ── */
.order-item-name {
  font-weight: 600;
  color: #4a154b;
  font-size: .92rem;
}

/* ── .order-item-qty ── */
.order-item-qty {
  font-size: 0.8rem;
  color: #4a154bb2;
}

/* ── .order-item-price ── */
.order-item-price {
  font-weight: 600;
  color: #4a154b;
  font-size: .92rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  /* ── .checkout-layout ── */
  .checkout-layout {
    grid-template-columns: 1fr;
  }

}
