/* ============================================================
   CHECKOUT PAGE — REDESIGN
   ============================================================ */

/* Page background */
.checkout_area {
  background: #f3f4f6;
  padding-top: 28px;
  padding-bottom: 40px;
}

/* Breadcrumb */
.checkout_area .top_breadcrumb {
  background: transparent;
  padding-top: 0;
  margin-bottom: 0px;
}

/* ---- Left: form sections become white cards ---- */
.co-form .co-section {
  background: #fff;
  border-left: none;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.co-form .co-section-last {
  margin-bottom: 0;
}

/* ---- Right column sticky on desktop ---- */
@media (min-width: 992px) {
  .co-checkout-row {
    align-items: flex-start;
  }
  .co-checkout-row > .col-lg-4 {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
  }
  .co-checkout-row > .col-lg-4::-webkit-scrollbar {
    width: 4px;
  }
  .co-checkout-row > .col-lg-4::-webkit-scrollbar-track {
    background: transparent;
  }
  .co-checkout-row > .col-lg-4::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
  }
  /* Left col: scrollable within viewport so right col stays visible */
  .co-checkout-row > .col-lg-8 {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
    padding-right: 10px;
  }
  .co-checkout-row > .col-lg-8::-webkit-scrollbar {
    width: 4px;
  }
  .co-checkout-row > .col-lg-8::-webkit-scrollbar-track {
    background: transparent;
  }
  .co-checkout-row > .col-lg-8::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
  }
}

/* ---- Order Summary base card ---- */
.os-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.os-card:last-child {
  margin-bottom: 0;
}

/* Header */
.os-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid #f0f0f0;
}
.os-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.os-modify {
  font-size: 12.5px;
  color: #666;
  text-decoration: underline;
}
.os-modify:hover { color: #1b2a3b; }

/* Product items */
.os-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.os-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.os-item-img {
  width: 62px;
  height: 62px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid #e8e8e8;
  flex-shrink: 0;
  background: #f5f5f5;
}
.os-item-body {
  flex: 1;
  min-width: 0;
}
.os-item-name {
  font-size: 12.5px;
  font-weight: 500;
  color: #222;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.os-item-meta {
  font-size: 11.5px;
  color: #999;
  margin-top: 4px;
}
.os-item-right {
  flex-shrink: 0;
  text-align: right;
}
.os-item-old-price {
  font-size: 11px;
  color: #bbb;
  text-decoration: line-through;
  display: block;
}
.os-item-price {
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}

/* Price breakdown */
.os-breakdown {
  margin-top: 12px;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}
.os-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
  padding: 5px 0;
}
.os-row span:last-child {
  font-weight: 500;
  color: #444;
}
.os-row.os-total {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  border-top: 1px solid #f0f0f0;
  margin-top: 6px;
  padding-top: 10px;
}
.os-row.os-total span:last-child {
  font-weight: 700;
  color: #1a1a1a;
}

/* Delivery badge */
.os-delivery {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f0faf4;
  border: 1px solid #b7dfca;
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 12px;
  color: #276749;
  font-weight: 500;
  margin-top: 14px;
  line-height: 1.4;
}
.os-delivery svg {
  flex-shrink: 0;
}

/* Coupon */
.os-coupon {
  display: flex;
  gap: 8px;
}
.os-coupon-input {
  flex: 1;
  padding: 10px 13px;
  font-size: 13px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  outline: none;
  color: #222;
  background: #fff;
  min-width: 0;
}
.os-coupon-input:focus {
  border-color: #888;
}
.os-coupon-input::placeholder {
  color: #c0c0c0;
}
.os-coupon-btn {
  padding: 10px 16px;
  background: #1b2a3b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
  flex-shrink: 0;
}
.os-coupon-btn:hover {
  background: #daa342;
}

/* Payment */
.os-pmt-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.os-pmt-option {
  border: 2px solid #1b2a3b;
  border-radius: 8px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 8px;
  background: #fff;
  transition: border-color .2s;
}
.os-pmt-option:last-child {
  margin-bottom: 0;
}
.os-pmt-option:hover {
  border-color: #daa342;
}
.os-pmt-option input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #1b2a3b;
  flex-shrink: 0;
  cursor: pointer;
}
.os-pmt-icon {
  width: 38px;
  height: 38px;
  background: #fff8ee;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.os-pmt-icon svg {
  width: 22px;
  height: 22px;
  color: #d97706;
}
.os-pmt-info {
  flex: 1;
}
.os-pmt-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.os-pmt-badge {
  font-size: 9.5px;
  font-weight: 700;
  background: #f59e0b;
  color: #fff;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.os-pmt-desc {
  font-size: 11.5px;
  color: #999;
  margin-top: 2px;
}

/* T&C */
.os-tnc {
  margin-bottom: 14px;
}
.os-tnc .form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.os-tnc .form-check-input {
  margin-top: 2px;
  flex-shrink: 0;
  border: 2px solid #555;
  cursor: pointer;
}
.os-tnc .form-check-input:focus {
  border-color: #1b2a3b;
  box-shadow: none;
}
.os-tnc .form-check-label {
  font-size: 11.5px;
  color: #666;
  line-height: 1.55;
  cursor: pointer;
}
.os-tnc .form-check-label a {
  color: #1b2a3b;
  text-decoration: underline;
}

/* Confirm button */
.os-confirm-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: #1b2a3b;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .25s;
  letter-spacing: .3px;
  text-decoration: none !important;
}
.os-confirm-btn:hover {
  background: #daa342;
  color: #fff !important;
}
.os-confirm-btn[disabled],
.os-confirm-btn.disabled {
  opacity: .65;
  pointer-events: none;
}

/* Privacy */
.os-privacy {
  font-size: 11px;
  color: #bbb;
  line-height: 1.6;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 0;
}
.os-privacy a {
  color: #999;
  text-decoration: underline;
}

/* Two-column field row (Email+Phone / City+AltPhone) */
.co-field-row {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}
.co-field-row.co-field-last {
  margin-bottom: 0;
}
.co-field-row > .co-field {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
@media (max-width: 575px) {
  .co-field-row {
    flex-direction: column;
    gap: 0;
  }
  .co-field-row > .co-field {
    margin-bottom: 12px;
  }
  .co-field-row > .co-field:last-child {
    margin-bottom: 0;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .co-form .co-section {
    padding: 12px 14px;
  }
  .os-card {
    padding: 16px;
  }
  .checkout_area {
    padding-top: 16px;
    padding-bottom: 30px;
  }
}
