/* EM Direct Checkout Modal — Styles
   Reutiliza .paq-modal, .paq-form del tema.
   Solo clases nuevas para stepper, summary, payments. */

/* ─── Stepper ─── */
.emdc-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  padding: 0 16px;
}

.emdc-stepper__step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.emdc-stepper__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: #e9ecef;
  color: #687176;
  transition: background 0.3s, color 0.3s;
  flex-shrink: 0;
}

.emdc-stepper__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #687176;
  transition: color 0.3s;
}

.emdc-stepper__step--active .emdc-stepper__num {
  background: #11B798;
  color: #fff;
}

.emdc-stepper__step--active .emdc-stepper__label {
  color: #112B47;
}

.emdc-stepper__step--done .emdc-stepper__num {
  background: #11B798;
  color: #fff;
}

.emdc-stepper__step--done .emdc-stepper__label {
  color: #11B798;
}

.emdc-stepper__line {
  flex: 1;
  height: 2px;
  background: #e9ecef;
  margin: 0 12px;
  min-width: 40px;
  transition: background 0.3s;
}

.emdc-stepper__step--done ~ .emdc-stepper__line,
.emdc-stepper__step--done + .emdc-stepper__line {
  background: #11B798;
}

/* ─── Steps ─── */
.emdc-step {
  display: none;
}

.emdc-step--active {
  display: block;
  animation: emdcFadeIn 0.25s ease;
}

@keyframes emdcFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Back button ─── */
.emdc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 8px !important;
  color: #11B798;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px !important;
  transition: background 0.2s;
  flex-shrink: 0;
}

.emdc-back-btn:hover {
  background: rgba(17, 183, 152, 0.08) !important;
}

/* ─── Summary ─── */
.emdc-summary {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.emdc-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.emdc-summary__name {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #112B47;
}

.emdc-summary__price {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #112B47;
}

.emdc-summary__divider {
  height: 1px;
  background: #d9dce0;
  margin: 12px 0;
}

.emdc-summary__row--total {
  font-size: 18px;
}

.emdc-summary__row--total strong {
  color: #112B47;
}

/* ─── Coupon ─── */
.emdc-summary__coupon {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.emdc-summary__coupon .paq-form__input {
  min-height: 40px;
  font-size: 14px;
}

.emdc-coupon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: #112B47;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.emdc-coupon-btn:hover {
  background: #1a3d5c;
}

.emdc-coupon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.emdc-summary__coupon-applied {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 8px 0;
}

.emdc-summary__coupon-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(17, 183, 152, 0.1);
  color: #11B798;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.emdc-coupon-remove {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #11B798;
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px !important;
  line-height: 1;
}

.emdc-coupon-remove:hover {
  color: #e74c3c;
}

.emdc-summary__discount {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #11B798;
}

.emdc-summary__coupon-error {
  color: #e74c3c;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  margin-top: 6px;
}

/* ─── Payments ─── */
.emdc-payments {
  margin-bottom: 24px;
}

.emdc-payments__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #112B47;
  margin-bottom: 12px;
}

.emdc-payments__empty {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #687176;
  text-align: center;
  padding: 16px;
}

.emdc-payments__option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.emdc-payments__option:hover {
  border-color: #c5cdd4;
}

.emdc-payments__option--selected {
  border-color: #11B798;
  background: rgba(17, 183, 152, 0.04);
}

.emdc-payments__radio {
  margin-top: 3px;
  accent-color: #11B798;
  flex-shrink: 0;
}

.emdc-payments__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.emdc-payments__info strong {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #112B47;
}

.emdc-payments__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #687176;
  line-height: 1.4;
}

/* ─── Buy button (injected by plugin on WC pages) ─── */
.emdc-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #11B798 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 12px 24px !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(17, 183, 152, 0.25) !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.emdc-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 183, 152, 0.35) !important;
}

/* ─── Waiting state ─── */
.emdc-waiting {
  text-align: center;
  padding: 32px 0;
}

.emdc-waiting__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e9ecef;
  border-top-color: #11B798;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: emdcSpin 0.8s linear infinite;
}

@keyframes emdcSpin {
  to { transform: rotate(360deg); }
}

.emdc-waiting p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #112B47;
  margin: 0 0 4px;
}

.emdc-waiting__hint {
  font-size: 13px !important;
  color: #687176 !important;
}

.emdc-waiting__hint a {
  color: #11B798;
}

/* ─── BACS details ─── */
.emdc-bacs-details {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
}

.emdc-bacs-details__title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: #112B47;
  margin: 0 0 16px;
}

.emdc-bacs-details__account {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e9ecef;
}

.emdc-bacs-details__account:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.emdc-bacs-details__account p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #112B47;
  margin: 4px 0;
}

.emdc-bacs-details__ref {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #687176;
  margin: 16px 0 20px;
}

.emdc-bacs-details__btn {
  display: inline-flex !important;
  text-decoration: none !important;
}

/* ─── Continue button disabled state ─── */
.emdc-continue-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .emdc-stepper {
    margin-bottom: 24px;
  }

  .emdc-stepper__label {
    font-size: 12px;
  }

  .emdc-stepper__num {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .emdc-summary {
    padding: 16px;
  }

  .emdc-summary__row--total {
    font-size: 16px;
  }
}
