/* SVEA Checkout CSS */
.checkout-section { padding-top: 120px; }

/* Steps */
.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 0; }
.step { display: flex; align-items: center; gap: 8px; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: #eee; color: #888;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; transition: all 0.3s;
}
.step.active .step-num { background: #da3669; color: #fff; }
.step.done .step-num { background: #28a745; color: #fff; }
.step-label { font-size: 13px; color: #888; }
.step.active .step-label { color: #da3669; font-weight: 600; }
.step-line { flex: 1; height: 2px; background: #eee; min-width: 40px; margin: 0 5px; }

/* Form */
.checkout-step-panel label { font-size: 13px; font-weight: 600; margin-bottom: 5px; display: block; color: #555; }
.form-control { border: 1px solid #ddd; border-radius: 3px; padding: 10px 14px; font-size: 14px; width: 100%; }
.form-control:focus { border-color: #da3669; outline: none; box-shadow: 0 0 0 3px rgba(218,54,105,0.1); }
textarea.form-control { resize: vertical; }

/* Shipping options */
.shipping-options { display: flex; flex-direction: column; gap: 10px; }
.shipping-option { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid #eee; border-radius: 4px; cursor: pointer; transition: border-color 0.2s; }
.shipping-option:has(input:checked) { border-color: #da3669; background: #fff9fb; }
.shipping-option-info { display: flex; justify-content: space-between; flex: 1; font-size: 14px; }

/* Payment methods */
.payment-methods { display: flex; flex-direction: column; gap: 10px; }
.payment-method { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 2px solid #eee; border-radius: 4px; cursor: pointer; transition: border-color 0.2s; }
.payment-method:has(input:checked) { border-color: #da3669; }
.payment-icons { margin-left: auto; font-size: 20px; }

/* Stripe elements */
.stripe-element { border: 1px solid #ddd; border-radius: 3px; padding: 12px 14px; background: #fff; font-size: 14px; color: #555; }
.stripe-placeholder { color: #bbb; letter-spacing: 2px; }

/* Payment error */
.payment-error { background: #fff0f3; border: 1px solid #da3669; color: #c0143c; padding: 12px 16px; border-radius: 4px; font-size: 14px; }

/* Processing spinner */
.spinner-border { width: 32px; height: 32px; border: 3px solid #f3f3f3; border-top-color: #da3669; border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Confirmation */
.confirm-icon { font-size: 60px; color: #28a745; }

/* Order Summary */
.order-summary { background: #fafafa; border: 1px solid #f0f0f0; border-radius: 4px; padding: 25px; position: sticky; top: 100px; }
.widget-title { font-size: 13px; letter-spacing: 1.5px; color: #888; text-transform: uppercase; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.summary-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.summary-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 3px; }
.summary-item-info { flex: 1; font-size: 13px; }
.summary-item-price { font-weight: 700; color: #da3669; font-size: 13px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px solid #f5f5f5; }
.total-row { font-size: 17px; font-weight: 700; border-bottom: none; padding-top: 14px; }

/* RTL */
[dir="rtl"] .shipping-option { flex-direction: row-reverse; }
[dir="rtl"] .shipping-option-info { flex-direction: row-reverse; }
[dir="rtl"] .payment-method { flex-direction: row-reverse; }
[dir="rtl"] .payment-icons { margin-left: 0; margin-right: auto; }
[dir="rtl"] .summary-item { flex-direction: row-reverse; }

/* Mobile */
@media (max-width: 991px) {
  .order-summary { position: static; margin-top: 30px; }
}
