/* ------------------------------------------------------
🧾 CLOUD KITCHEN — CHECKOUT PAGE (Premium UI)
------------------------------------------------------- */

.checkout-container {
  padding: 2rem 0;
}

/* Main two-column layout */
.checkout-wrapper {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.2rem;
  align-items: flex-start;
}

/* ------------------------------
LEFT SIDE — Billing Form
------------------------------- */
.checkout-left {
  background: var(--color-navbar-bg);
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
}

.checkout-left h3 {
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
}

.payment-method {
  margin-top: 1.8rem;
}

.payment-method h4 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 8px 0;
}

/* ------------------------------
RIGHT SIDE — Order Summary
------------------------------- */
.checkout-summary {
  background: var(--color-navbar-bg);
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 90px;
}

.checkout-summary h3 {
  margin-bottom: 1.2rem;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Items */
.checkout-items {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* Breakdown */
.checkout-line {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 0.95rem;
}

/* Promo Box */
.promo-box {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}

.promo-box input {
  flex: 1;
  padding: 11px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.promo-box button {
  padding: 11px 18px;
  background: var(--color-primary);
  border: none;
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.promo-box button:hover {
  background: var(--color-primary-dark);
}

/* Total */
.checkout-total {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid #ddd;
  padding-top: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Checkout Button */
.checkout-btn {
  margin-top: 1.5rem;
  width: 100%;
  padding: 14px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.checkout-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}
/* Saved address list */
.saved-address-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.address-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
  transition: 0.25s ease;
}

.address-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(255, 102, 0, 0.25);
}

.address-card input[type="radio"] {
  margin-top: 8px;
}

/* Address Type Tag */
.address-type-tag {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 5px;
}

/* Different colors for different address types */
.address-type-tag.home {
  background: rgba(255, 102, 0, 0.15);
  color: #ff6600;
}

.address-type-tag.office {
  background: rgba(0, 140, 255, 0.15);
  color: #008cff;
}

.address-type-tag.other {
  background: rgba(100, 100, 100, 0.15);
  color: #555;
}

.addr-text {
  font-size: 0.9rem;
}

.addr-phone {
  font-size: 0.85rem;
  opacity: 0.7;
}

.add-address-btn {
  margin-top: 10px;
  padding: 8px 14px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* ------------------------------
Responsive Design
------------------------------- */
@media (max-width: 900px) {
  .checkout-wrapper {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }
}

@media (max-width: 480px) {
  .checkout-left,
  .checkout-summary {
    padding: 1.2rem;
  }
}
