/* ============== CHECKOUT / BUY-NOW PAGES ============== */
.checkout-section {
  padding: 36px 0 72px;
}

/* card / section */
.form-section {
  border: 1px solid #e7ebe7;
  border-radius: 14px;
  margin-bottom: 24px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.section-header {
  background: linear-gradient(90deg, #0d2a18, #061a11);
  color: #fff;
  padding: 15px 22px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-header::before {
  content: "";
  width: 6px;
  height: 20px;
  border-radius: 3px;
  background: var(--green);
  flex: none;
}
/* Shipping header carries Bootstrap's justify-content-between; keep title left
   (with the accent bar) and push "Same as Billing" to the right instead. */
.section-header.d-flex {
  justify-content: flex-start !important;
}
.form-content {
  padding: 24px;
}

/* inputs */
.form-control,
.form-select {
  width: 100%;
  border: 1.5px solid #e1e5dc;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  margin-bottom: 15px;
  background: #f9fbf6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(112, 174, 19, 0.15);
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #46544b;
  margin-bottom: 6px;
}

/* product table */
.table {
  width: 100%;
  margin-bottom: 0;
}
.table th {
  background-color: #f4f7ee;
  font-weight: 700;
  padding: 13px 12px;
  font-size: 13px;
  color: #56624a;
  border-bottom: 1px solid #e7ebe7;
  text-align: left;
}
.table td {
  padding: 16px 12px;
  vertical-align: middle;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #f0f2ec;
}
.table-striped tbody tr:nth-of-type(odd) {
  background-color: #fbfdf8;
}

.btn-delete {
  background: #fff;
  border: 1px solid #f0d6d2;
  color: #c0473a;
  font-size: 14px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-delete:hover {
  background: #c0473a;
  border-color: #c0473a;
  color: #fff;
}

.child-resistance-badge {
  display: inline-block;
  background-color: var(--green);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 5px;
}

/* payment */
.payment-icons {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 10px;
}
.payment-icon {
  height: 24px;
  width: auto;
}
.radio-option {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1.5px solid #e7ebe7;
  border-radius: 10px;
  cursor: pointer;
}
.radio-option:has(input:checked) {
  border-color: var(--green);
  background: #f7faf2;
}
.radio-option input[type="radio"] {
  margin-right: 12px;
  transform: scale(1.2);
  accent-color: var(--green);
}

/* order summary */
.order-summary {
  background-color: #f7faf2;
  border: 1px solid #eef3e6;
  padding: 20px;
  border-radius: 12px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #46544b;
}
.summary-row span:last-child {
  font-weight: 700;
  color: #1d2b22;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  padding-top: 14px;
  border-top: 2px solid #e3ead7;
  margin-top: 14px;
}
.summary-total span:first-child {
  font-size: 15px;
  color: #15241b;
}
.summary-total span:last-child {
  font-size: 22px;
  color: var(--green);
}

/* checkout button (keeps id/logic; restyled to brand) */
.checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  border: none;
  color: #fff;
  padding: 14px 40px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  margin-top: 20px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(112, 174, 19, 0.28);
  transition: filter 0.2s ease, transform 0.15s ease;
}
.checkout-btn:hover {
  filter: brightness(1.05);
  color: #fff;
}
.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.approval-notice {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin: 16px 0 6px;
  line-height: 1.5;
}
.approval-notice strong {
  color: #374151;
}
.terms-link {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}
.terms-link:hover {
  text-decoration: underline;
}

.same-as-billing {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
}
.same-as-billing input {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
}

/* empty cart */
.empty-cart {
  text-align: center;
  padding: 48px 30px;
  color: #6b7280;
}
.empty-cart-ico {
  color: #c4cbbd;
  margin-bottom: 14px;
}
.empty-cart h5 {
  font-size: 19px;
  font-weight: 800;
  color: #15241b;
  margin: 8px 0;
}
.empty-cart .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
  text-decoration: none;
}
.empty-cart .btn:hover {
  filter: brightness(1.05);
  color: #fff;
}
