/* Oshara Veda — Checkout Modal */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

.ov-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(20, 30, 24, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  font-family: 'Quicksand', Arial, sans-serif;
}
.ov-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.ov-modal {
  background: #fbf8f2;
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 30px 26px 26px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: translateY(16px);
  transition: transform 0.25s ease;
}
.ov-modal-overlay.is-open .ov-modal { transform: translateY(0); }

.ov-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #555;
  cursor: pointer;
  padding: 4px;
}
.ov-modal__close:hover { color: #1a3b2a; }

.ov-modal__title {
  font-weight: 700;
  font-size: 22px;
  color: #1a3b2a;
  margin: 0 0 14px;
}

.ov-modal__product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #efe8d8;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-weight: 600;
}
.ov-modal__product-name { color: #1a3b2a; font-size: 14px; }
.ov-modal__product-price { color: #c8973f; font-size: 16px; }

.ov-field { margin-bottom: 14px; }
.ov-field-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ov-field-row .ov-field { flex: 1 1 140px; }

.ov-field label,
.ov-field__group-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a3b2a;
  margin-bottom: 5px;
}

.ov-field input[type="text"],
.ov-field input[type="tel"],
.ov-field input[type="email"],
.ov-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d8cfba;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: #222;
}
.ov-field input:focus,
.ov-field textarea:focus {
  outline: none;
  border-color: #1a3b2a;
}

.ov-error {
  display: block;
  color: #b3261e;
  font-size: 12px;
  margin-top: 4px;
  min-height: 14px;
}
.ov-form-error {
  color: #b3261e;
  font-size: 13px;
  margin: 6px 0 0;
  text-align: center;
}

.ov-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d8cfba;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  background: #fff;
}
.ov-radio input { margin-top: 3px; accent-color: #1a3b2a; }
.ov-radio__text { font-size: 14px; color: #222; font-weight: 500; }
.ov-cod-note {
  display: block;
  font-weight: 400;
  color: #6a6a6a;
  font-size: 12px;
  margin-top: 2px;
}

.ov-submit-btn {
  width: 100%;
  background: #1a3b2a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease;
}
.ov-submit-btn:hover { background: #0f2a1c; }
.ov-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.ov-submit-btn__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: ov-spin 0.7s linear infinite;
}
.ov-submit-btn.is-loading .ov-submit-btn__spinner { display: inline-block; }
.ov-submit-btn.is-loading .ov-submit-btn__text { opacity: 0.7; }
@keyframes ov-spin { to { transform: rotate(360deg); } }

.ov-modal__step[hidden] { display: none; }

.ov-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1a3b2a;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.ov-modal__step[data-step="success"] { text-align: center; }
.ov-success-order-number { font-weight: 700; color: #c8973f; margin: 0 0 8px; }
.ov-success-message { color: #444; font-size: 14px; margin: 0 0 18px; }

@media (prefers-reduced-motion: reduce) {
  .ov-modal-overlay, .ov-modal, .ov-submit-btn__spinner { transition: none; animation: none; }
}

@media (max-width: 480px) {
  .ov-modal { padding: 24px 18px 20px; border-radius: 10px; }
  .ov-field-row { flex-direction: column; }
}

/* Order summary shortcode — [ov_order_summary] on the success/failure page */
.ov-order-summary {
  max-width: 460px;
  margin: 48px auto;
  font-family: 'Quicksand', Arial, sans-serif;
}
.ov-order-summary__card {
  position: relative;
  background: #fbf8f2;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(26,59,42,0.10);
  padding: 36px 30px 28px;
  overflow: hidden;
}
.ov-order-summary__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #1a3b2a, #c8973f);
}

.ov-order-summary__head { text-align: center; margin-bottom: 22px; }
.ov-order-summary__badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.ov-order-summary__badge svg { width: 22px; height: 22px; }
.ov-order-summary__badge--ok { background: #1a3b2a; }
.ov-order-summary__badge--fail { background: #b3261e; }
.ov-order-summary__title { font-weight: 700; font-size: 21px; color: #1a3b2a; margin: 0 0 6px; }
.ov-order-summary__sub { color: #6a6a6a; font-size: 13.5px; line-height: 1.5; margin: 0; max-width: 340px; margin-inline: auto; }

.ov-order-summary__number {
  background: #efe8d8;
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  margin-bottom: 22px;
}
.ov-order-summary__number-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a7f63;
  margin-bottom: 4px;
}
.ov-order-summary__number-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.ov-order-summary__number-value {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: #1a3b2a;
}
.ov-order-summary__copy {
  background: none;
  border: 1px solid #c8973f;
  color: #96712c;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.ov-order-summary__copy:hover { background: #c8973f; color: #fff; }

.ov-order-summary__rows { margin-bottom: 4px; }
.ov-order-summary__row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #e6dfcd;
}
.ov-order-summary__row:last-child { border-bottom: none; }
.ov-order-summary__row-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ov-order-summary__row-icon svg { width: 16px; height: 16px; }
.ov-order-summary__row-label { font-size: 12.5px; color: #6a6a6a; }
.ov-order-summary__row-value { font-size: 14px; color: #2a2a2a; font-weight: 600; text-align: right; }
.ov-order-summary__row-value--strong { color: #1a3b2a; font-size: 16px; }
.ov-order-summary__row-value--gold { color: #96712c; }

.ov-order-summary__cancelled {
  text-align: center;
  color: #b3261e;
  background: rgba(179,38,30,0.08);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin: 18px 0 4px;
}

.ov-order-summary__timeline {
  display: flex;
  justify-content: space-between;
  margin: 26px 0 4px;
  position: relative;
}
.ov-order-summary__timeline::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: #e6dfcd;
  z-index: 0;
}
.ov-order-summary__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.ov-order-summary__step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fbf8f2;
  border: 2px solid #d8cfba;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ov-order-summary__step-dot svg { width: 11px; height: 11px; }
.ov-order-summary__step-label { font-size: 11px; color: #8a8a8a; font-weight: 600; text-align: center; }
.ov-order-summary__step--done .ov-order-summary__step-dot { background: #1a3b2a; border-color: #1a3b2a; }
.ov-order-summary__step--done .ov-order-summary__step-label { color: #1a3b2a; }
.ov-order-summary__step--current .ov-order-summary__step-dot { border-color: #c8973f; background: #fff; }
.ov-order-summary__step--current .ov-order-summary__step-label { color: #96712c; }

.ov-order-summary__actions { margin-top: 26px; text-align: center; }
.ov-order-summary__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1a3b2a;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ov-order-summary__cta svg { width: 16px; height: 16px; }
.ov-order-summary__cta:hover { background: #0f2a1c; color: #fff; transform: translateY(-1px); }

.ov-order-summary__empty { text-align: center; color: #6a6a6a; padding: 40px 0; font-family: 'Quicksand', Arial, sans-serif; }

@media (max-width: 480px) {
  .ov-order-summary { margin: 24px auto; }
  .ov-order-summary__card { padding: 28px 20px 22px; border-radius: 14px; }
  .ov-order-summary__step-label { font-size: 9.5px; }
}
