/**
 * Brand styling for the order_coupon reward dialog + checkout coupon UI.
 * Matches the asambeauty/asamluxe storefront tokens (teal #00403d, cream #f3f1ed,
 * ink #130210, pink accent #eb0059, 4-8px radii, site font).
 */

body > .teveo-reward-dialog,
.asam-thankyou .teveo-reward-dialog {
  width: min(460px, calc(100vw - 32px));
  max-height: min(92vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #130210;
  overflow: auto;
  box-shadow: 0 24px 70px rgba(19, 2, 16, .28);
  font-family: var(--asam-font, "asambeauty", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);
}
body > .teveo-reward-dialog::backdrop,
.asam-thankyou .teveo-reward-dialog::backdrop {
  background: rgba(19, 2, 16, .38);
  backdrop-filter: blur(2px);
}

/* Hero: cream band, teal headline, pink eyebrow */
.teveo-reward-dialog .teveo-reward-hero {
  background: #f3f1ed;
  color: #00403d;
  padding: 30px 28px 22px;
  text-align: center;
}
.teveo-reward-dialog .teveo-reward-eyebrow {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eb0059;
  color: #fff;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.teveo-reward-dialog .teveo-reward-eyebrow span { display: none; }
.teveo-reward-dialog .teveo-reward-hero h2 {
  margin: 0 0 6px;
  color: #00403d;
  font-size: clamp(26px, 5vw, 32px);
  line-height: 1.15;
  font-weight: 500;
}
.teveo-reward-dialog .teveo-reward-intro {
  margin: 0;
  color: #5a5858;
  font-size: 14px;
}
.teveo-reward-dialog .teveo-reward-confetti { display: none; }

/* Voucher ticket */
.teveo-reward-dialog .teveo-reward-ticket {
  margin-top: 20px;
  padding: 18px 20px 16px;
  border: 1px solid #dcd7cf;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  text-align: left;
}
.teveo-reward-dialog .teveo-reward-ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #5a5858;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.teveo-reward-dialog .teveo-reward-ticket-top svg { color: #00403d; width: 18px; height: 18px; }
.teveo-reward-dialog .teveo-reward-amount {
  margin: 6px 0 2px;
  color: #00403d;
  font-size: clamp(40px, 9vw, 52px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.02em;
}
.teveo-reward-dialog .teveo-reward-ticket p { margin: 0; color: #5a5858; font-size: 13px; }
.teveo-reward-dialog .teveo-reward-ticket::before,
.teveo-reward-dialog .teveo-reward-ticket::after { display: none; }

/* Body */
.teveo-reward-dialog .teveo-reward-body { padding: 20px 28px 28px; text-align: left; }
.teveo-reward-dialog .teveo-reward-body p { margin: 0 0 10px; font-size: 13px; line-height: 1.55; color: #130210; }
.teveo-reward-dialog .teveo-reward-expiry { color: #5a5858; }
.teveo-reward-dialog .teveo-reward-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0;
  padding: 10px 14px;
  border: 1px dashed #c9c2b8;
  border-radius: 4px;
  background: #f7f5f1;
  color: #5a5858;
  font-size: 12px;
}
.teveo-reward-dialog .teveo-reward-code strong {
  color: #130210;
  font-size: 13px;
  letter-spacing: .04em;
  word-break: break-all;
}
.teveo-reward-dialog .teveo-reward-hint { color: #5a5858; }

/* Actions: site buttons */
.teveo-reward-dialog .teveo-reward-actions { display: grid; gap: 10px; margin-top: 18px; }
.teveo-reward-dialog .teveo-reward-actions form { margin: 0; }
.teveo-reward-dialog .teveo-reward-actions button {
  width: 100%;
  min-height: 52px;
  border-radius: 4px;
  border: 1px solid #00403d;
  background: #00403d;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.teveo-reward-dialog .teveo-reward-actions form + form button {
  background: #fff;
  color: #00403d;
}
.teveo-reward-dialog .teveo-reward-actions button:hover { opacity: .9; }

/* Close */
.teveo-reward-dialog .teveo-reward-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #dcd7cf;
  border-radius: 999px;
  background: #fff;
  color: #130210;
  cursor: pointer;
}
.teveo-reward-dialog .teveo-reward-close svg { width: 16px; height: 16px; }
.teveo-reward-dialog .teveo-reward-hero { position: relative; }

@media (max-width: 480px) {
  body > .teveo-reward-dialog,
  .asam-thankyou .teveo-reward-dialog { width: calc(100vw - 20px); }
  .teveo-reward-dialog .teveo-reward-hero { padding: 26px 18px 18px; }
  .teveo-reward-dialog .teveo-reward-body { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .teveo-reward-dialog * { animation: none !important; transition: none !important; }
}

/* ---- Checkout / cart coupon UI (WooCommerce) ---- */
.asam-checkout .woocommerce-form-coupon-toggle,
.asam-cart-page .woocommerce-form-coupon-toggle {
  margin: 0 0 14px;
  font-size: 13px;
  color: #5a5858;
}
.woocommerce-form-coupon { margin: 0 0 16px; }
.woocommerce-form-coupon .form-row { display: flex; gap: 8px; margin: 0; }
.woocommerce-form-coupon input.input-text {
  flex: 1 1 auto;
  height: 44px;
  border: 1px solid #d8d5d0;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 14px;
}
.woocommerce-form-coupon button,
.woocommerce-remove-coupon { color: #00403d; font-weight: 600; text-decoration: underline; }
.woocommerce-form-coupon button {
  height: 44px;
  padding: 0 18px;
  border: 1px solid #00403d;
  border-radius: 4px;
  background: #00403d;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.woocommerce-checkout-review-order .cart-discount,
.asam-review .cart-discount { color: #00403d; }
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info {
  border-left-color: #00403d;
  background: #eaf3f2;
  color: #00403d;
}

/* Coupon notice bar on cart/checkout (WooCommerce info + message) */
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-cart .woocommerce-error {
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 0;
  border-left: 3px solid #00403d;
  border-radius: 4px;
  background: #eaf3f2;
  color: #00403d;
  font-size: 14px;
  list-style: none;
}
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-cart .woocommerce-error { border-left-color: #a3271f; background: #fdecea; color: #a3271f; }
body.woocommerce-checkout form.woocommerce-form-coupon,
body.woocommerce-cart form.woocommerce-form-coupon {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid #e2ded8;
  border-radius: 6px;
  background: #f7f5f1;
}
body.woocommerce-checkout form.woocommerce-form-coupon .form-row,
body.woocommerce-cart form.woocommerce-form-coupon .form-row { display: flex; gap: 10px; align-items: center; margin: 0; }
body.woocommerce-checkout form.woocommerce-form-coupon input.input-text,
body.woocommerce-cart form.woocommerce-form-coupon input.input-text {
  flex: 1 1 auto; height: 44px; border: 1px solid #d8d5d0; border-radius: 4px;
  padding: 0 12px; background: #fff; font-size: 14px;
}
body.woocommerce-checkout form.woocommerce-form-coupon button,
body.woocommerce-cart form.woocommerce-form-coupon button {
  height: 44px; padding: 0 20px; border: 1px solid #00403d; border-radius: 4px;
  background: #00403d; color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap;
}
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-cart .woocommerce-form-coupon-toggle { margin: 0 0 12px; font-size: 13px; color: #5a5858; }
