/* ═══════════════════════════════════════════════════════════
   TaroSkoop — WooCommerce Müstiline Stiil
   ═══════════════════════════════════════════════════════════ */

/* ── Üldine WC leht ─────────────────────────────────────────── */
.taroskoop-theme .woocommerce,
.taroskoop-theme .woocommerce-page {
  position: relative;
  z-index: 10;
}

/* ── Kassasse leht ──────────────────────────────────────────── */
.taroskoop-theme .woocommerce-checkout {
  padding: 6rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.taroskoop-theme .woocommerce-billing-fields h3,
.taroskoop-theme #order_review_heading,
.taroskoop-theme .woocommerce-checkout h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(200,155,75,0.2);
}

/* ── Vormielemendid ─────────────────────────────────────────── */
.taroskoop-theme .woocommerce-checkout input[type="text"],
.taroskoop-theme .woocommerce-checkout input[type="email"],
.taroskoop-theme .woocommerce-checkout input[type="tel"],
.taroskoop-theme .woocommerce-checkout input[type="date"],
.taroskoop-theme .woocommerce-checkout select,
.taroskoop-theme .woocommerce-checkout textarea {
  background: rgba(11, 7, 26, 0.8) !important;
  border: 1px solid rgba(200,155,75,0.25) !important;
  border-radius: 10px !important;
  color: var(--clr-text) !important;
  padding: 0.85rem 1.1rem !important;
  font-family: 'EB Garamond', serif !important;
  font-size: 1rem !important;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.taroskoop-theme .woocommerce-checkout input:focus,
.taroskoop-theme .woocommerce-checkout select:focus,
.taroskoop-theme .woocommerce-checkout textarea:focus {
  border-color: rgba(200,155,75,0.6) !important;
  box-shadow: 0 0 0 3px rgba(200,155,75,0.1), 0 0 20px rgba(200,155,75,0.08) !important;
  outline: none !important;
}

.taroskoop-theme .woocommerce-checkout textarea {
  resize: vertical;
  min-height: 100px;
}

.taroskoop-theme .woocommerce-checkout label {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 0.4rem;
  display: block;
}

/* Select dark styling */
.taroskoop-theme .woocommerce-checkout select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c89b4b' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  padding-right: 2.5rem !important;
}

/* Vealipp */
.taroskoop-theme .woocommerce-checkout .woocommerce-invalid input,
.taroskoop-theme .woocommerce-checkout .woocommerce-invalid select,
.taroskoop-theme .woocommerce-checkout .woocommerce-invalid textarea {
  border-color: rgba(196,80,128,0.6) !important;
}

/* ── Tellimuse kokkuvõte ─────────────────────────────────────── */
.taroskoop-theme #order_review {
  background: linear-gradient(160deg, rgba(91,63,160,0.1) 0%, rgba(200,155,75,0.05) 100%);
  border: 1px solid rgba(200,155,75,0.15);
  border-radius: 16px;
  padding: 2rem;
}

.taroskoop-theme .woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
}

.taroskoop-theme .woocommerce-checkout-review-order-table th,
.taroskoop-theme .woocommerce-checkout-review-order-table td {
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid rgba(200,155,75,0.1);
  color: var(--clr-text);
  font-family: 'EB Garamond', serif;
}

.taroskoop-theme .woocommerce-checkout-review-order-table .order-total td {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--clr-gold-light);
  border-bottom: none;
}

/* ── Makseala ────────────────────────────────────────────────── */
.taroskoop-theme #payment {
  background: rgba(11, 7, 26, 0.6);
  border: 1px solid rgba(200,155,75,0.15);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.taroskoop-theme #payment .payment_methods {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.taroskoop-theme #payment .payment_methods li label {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--clr-text);
  text-transform: none;
  letter-spacing: 0;
}

.taroskoop-theme #payment .wc-stripe-elements-field,
.taroskoop-theme #payment .StripeElement {
  background: rgba(6,4,15,0.8) !important;
  border: 1px solid rgba(200,155,75,0.25) !important;
  border-radius: 10px !important;
  padding: 0.85rem 1rem !important;
}

/* ── Maksa nupp ─────────────────────────────────────────────── */
.taroskoop-theme #place_order,
.taroskoop-theme .woocommerce-checkout #place_order {
  display: block;
  width: 100%;
  padding: 1.1rem 2rem !important;
  background: linear-gradient(135deg, #c89b4b 0%, #f0d080 50%, #c89b4b 100%) !important;
  color: #0b071a !important;
  font-family: 'Cinzel', serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 50px !important;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(200,155,75,0.4), 0 4px 20px rgba(0,0,0,0.5) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  margin-top: 1.5rem;
}

.taroskoop-theme #place_order:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 0 50px rgba(200,155,75,0.6), 0 8px 30px rgba(0,0,0,0.6) !important;
}

/* ── Teated ──────────────────────────────────────────────────── */
.taroskoop-theme .woocommerce-message,
.taroskoop-theme .woocommerce-info {
  background: rgba(91,63,160,0.15) !important;
  border-top: 3px solid var(--clr-gold) !important;
  color: var(--clr-text) !important;
  border-radius: 0 0 10px 10px;
}

.taroskoop-theme .woocommerce-error {
  background: rgba(196,80,128,0.1) !important;
  border-top: 3px solid var(--clr-rose) !important;
  color: var(--clr-text) !important;
  border-radius: 0 0 10px 10px;
}
.taroskoop-theme .woocommerce-error li {
  padding-left: 30px !important;
}
.taroskoop-theme .woocommerce-error li::before,
.taroskoop-theme .woocommerce-error li::after {
  display: none !important;
}

/* ── Kassasse päis ───────────────────────────────────────────── */
.ts-checkout-header {
  text-align: center;
  padding: 6rem 2rem 1rem;
  position: relative;
  z-index: 10;
}
.ts-checkout-header h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  background: linear-gradient(135deg, #c89b4b 0%, #f0d080 50%, #c89b4b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.ts-checkout-header p {
  color: #a09080;
  font-size: 1rem;
}

/* ── Kohandatud väljade stiilid ─────────────────────────────── */
.taroskoop-theme .ts-field-section {
  background: linear-gradient(160deg, rgba(91,63,160,0.08) 0%, rgba(200,155,75,0.03) 100%);
  border: 1px solid rgba(200,155,75,0.12);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.taroskoop-theme .ts-field-section-title {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 1.5rem;
}

/* Char counter */
.taroskoop-theme .ts-char-counter {
  font-size: 0.75rem;
  color: var(--clr-text-dim);
  text-align: right;
  margin-top: 0.3rem;
}

/* Teema valik */
.taroskoop-theme .ts-topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.taroskoop-theme .ts-topic-option {
  position: relative;
}
.taroskoop-theme .ts-topic-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.taroskoop-theme .ts-topic-option label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: rgba(11,7,26,0.7);
  border: 1px solid rgba(200,155,75,0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'EB Garamond', serif !important;
  font-size: 0.95rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--clr-text-muted) !important;
}
.taroskoop-theme .ts-topic-option input:checked + label {
  border-color: rgba(200,155,75,0.6);
  background: rgba(200,155,75,0.1);
  color: var(--clr-gold-light) !important;
  box-shadow: 0 0 15px rgba(200,155,75,0.15);
}
.taroskoop-theme .ts-topic-option label:hover {
  border-color: rgba(200,155,75,0.4);
  color: var(--clr-text) !important;
}

/* ═══════════════════════════════════════════════════════════
   QUICK CHECKOUT (iframe bottom sheet)
   body.ts-quick-checkout
   ═══════════════════════════════════════════════════════════ */

/* ── Taust ─────────────────────────────────────────────────── */
body.ts-quick-checkout {
  background: #0b071a;
  min-height: 100vh;
  overflow-x: hidden;
}

body.ts-quick-checkout::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(91,63,160,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(200,155,75,0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── Peida nav, header, footer iframis ─────────────────────── */
body.ts-quick-checkout header,
body.ts-quick-checkout footer,
body.ts-quick-checkout nav,
body.ts-quick-checkout #wpadminbar,
body.ts-quick-checkout .site-header,
body.ts-quick-checkout .site-footer,
body.ts-quick-checkout .elementor-location-header,
body.ts-quick-checkout .elementor-location-footer,
body.ts-quick-checkout .wp-site-blocks > header,
body.ts-quick-checkout .wp-site-blocks > footer {
  display: none !important;
}

/* ── Kompaktne ümbris ──────────────────────────────────────── */
body.ts-quick-checkout .woocommerce-checkout,
body.ts-quick-checkout .wp-block-woocommerce-checkout {
  padding: 0 1.25rem 2.5rem !important;
  max-width: 480px !important;
  margin: 0 auto !important;
  position: relative;
  z-index: 1;
}

/* ── Päis: kompaktne ───────────────────────────────────────── */
body.ts-quick-checkout .ts-checkout-header {
  padding: 1.4rem 1rem 0.6rem !important;
}

body.ts-quick-checkout .ts-checkout-header h1 {
  font-size: clamp(1.1rem, 4vw, 1.35rem) !important;
  margin-bottom: 0.2rem;
}

body.ts-quick-checkout .ts-checkout-header p {
  font-size: 0.8rem;
  color: rgba(160,144,128,0.85);
}

body.ts-quick-checkout .ts-checkout-header::after {
  content: '✦  ✦  ✦';
  display: block;
  text-align: center;
  color: rgba(200,155,75,0.4);
  font-size: 0.55rem;
  letter-spacing: 0.6em;
  margin-top: 0.65rem;
}

/* ── Section pealkirjad ────────────────────────────────────── */
body.ts-quick-checkout .woocommerce-billing-fields h3,
body.ts-quick-checkout .wc-block-components-checkout__step-title {
  font-size: 0.62rem !important;
  margin: 1.1rem 0 0.7rem !important;
  letter-spacing: 0.2em !important;
  color: rgba(200,155,75,0.7) !important;
  text-transform: uppercase !important;
  font-family: 'Cinzel', serif !important;
  border: none !important;
  padding: 0 !important;
}

/* Step number (Blocks) */
body.ts-quick-checkout .wc-block-components-checkout__step-description {
  display: none !important;
}

/* "You are currently checking out as a guest." */
body.ts-quick-checkout .wc-block-checkout__customer-login,
body.ts-quick-checkout .woocommerce-form-login-toggle,
body.ts-quick-checkout .woocommerce-info,
body.ts-quick-checkout .wc-block-components-notice-banner,
body.ts-quick-checkout .wc-block-checkout__customer-form .wc-block-components-checkout-step__description {
  display: none !important;
}

/* WC Blocks checkbox */
body.ts-quick-checkout .wc-block-components-checkbox input[type="checkbox"] {
  accent-color: #c89b4b;
}

body.ts-quick-checkout .wc-block-components-checkbox__label {
  color: rgba(160,144,128,0.75) !important;
  font-size: 0.78rem !important;
}

/* Billing section spacing */
body.ts-quick-checkout .wc-block-checkout__billing-fields,
body.ts-quick-checkout .wc-block-checkout__contact-fields {
  margin-bottom: 0.5rem !important;
}

/* Grid kahe veeruga väljad (eesnimi + perenimi) */
body.ts-quick-checkout .wc-block-components-address-form {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.6rem !important;
}

body.ts-quick-checkout .wc-block-components-address-form .wc-block-components-text-input,
body.ts-quick-checkout .wc-block-components-address-form .wc-block-components-select {
  margin: 0 !important;
}

/* ── Vormi read ────────────────────────────────────────────── */
body.ts-quick-checkout .woocommerce-checkout .form-row {
  margin-bottom: 0.7rem;
}

/* Klassikaline checkout: label */
body.ts-quick-checkout .woocommerce-checkout label {
  font-family: 'Cinzel', serif !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(200,155,75,0.75) !important;
  margin-bottom: 0.3rem !important;
  display: block;
}

/* Klassikaline checkout: input/email/tel */
body.ts-quick-checkout .woocommerce-checkout input[type="text"],
body.ts-quick-checkout .woocommerce-checkout input[type="email"],
body.ts-quick-checkout .woocommerce-checkout input[type="tel"],
body.ts-quick-checkout .woocommerce-checkout input[type="password"],
body.ts-quick-checkout .woocommerce-checkout select,
body.ts-quick-checkout .woocommerce-checkout textarea {
  background: rgba(11,7,26,0.85) !important;
  border: 1px solid rgba(200,155,75,0.22) !important;
  border-radius: 10px !important;
  color: #e8dcc8 !important;
  padding: 0.7rem 0.95rem !important;
  font-family: 'EB Garamond', serif !important;
  font-size: 0.92rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color .25s, box-shadow .25s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

body.ts-quick-checkout .woocommerce-checkout input:focus,
body.ts-quick-checkout .woocommerce-checkout select:focus,
body.ts-quick-checkout .woocommerce-checkout textarea:focus {
  border-color: rgba(200,155,75,0.55) !important;
  box-shadow: 0 0 0 3px rgba(200,155,75,0.08), 0 0 18px rgba(200,155,75,0.07) !important;
  outline: none !important;
}

/* WC Blocks checkout: floating label inputs */
body.ts-quick-checkout .wc-block-components-text-input,
body.ts-quick-checkout .wc-block-components-select {
  position: relative;
}

body.ts-quick-checkout .wc-block-components-text-input input,
body.ts-quick-checkout .wc-block-components-text-input input[type="text"],
body.ts-quick-checkout .wc-block-components-text-input input[type="email"],
body.ts-quick-checkout .wc-block-components-text-input input[type="tel"],
body.ts-quick-checkout .wc-block-components-text-input input[type="password"],
body.ts-quick-checkout .wc-block-components-select select {
  background: rgba(11,7,26,0.85) !important;
  border: 1px solid rgba(200,155,75,0.22) !important;
  border-radius: 10px !important;
  color: #e8dcc8 !important;
  padding: 1.45rem 0.95rem 0.45rem !important;
  font-family: 'EB Garamond', serif !important;
  font-size: 0.95rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color .25s, box-shadow .25s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  height: auto !important;
}

body.ts-quick-checkout .wc-block-components-text-input input:focus,
body.ts-quick-checkout .wc-block-components-select select:focus {
  border-color: rgba(200,155,75,0.55) !important;
  box-shadow: 0 0 0 3px rgba(200,155,75,0.08) !important;
  outline: none !important;
}

/* Floating labels */
body.ts-quick-checkout .wc-block-components-text-input label,
body.ts-quick-checkout .wc-block-components-select label {
  font-family: 'Cinzel', serif !important;
  font-size: 0.58rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(200,155,75,0.65) !important;
  top: 0.5rem !important;
  left: 0.95rem !important;
}

/* Placeholder color */
body.ts-quick-checkout .wc-block-components-text-input input::placeholder {
  color: rgba(160,144,128,0.4) !important;
}

/* ── Peida duplikaat (main column order summary) ───────────── */
body.ts-quick-checkout .checkout-order-summary-block-fill-wrapper,
body.ts-quick-checkout .checkout-order-summary-block-fill,
body.ts-quick-checkout .wc-block-checkout__main .wc-block-components-order-summary,
body.ts-quick-checkout .wc-block-checkout__main .wp-block-woocommerce-checkout-order-summary-block,
body.ts-quick-checkout #order_review + #order_review {
  display: none !important;
}

/* ── Sidebar: collapsed by default (aria-expanded=false) ──── */
body.ts-quick-checkout .wc-block-components-checkout-order-summary__title[aria-expanded="false"]
  + .wc-block-components-checkout-order-summary__content {
  display: none !important;
}

/* Order summary toggle button stiil */
body.ts-quick-checkout .wc-block-components-checkout-order-summary__title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.85rem 1.1rem !important;
  background: linear-gradient(160deg, rgba(91,63,160,0.13) 0%, rgba(200,155,75,0.05) 100%) !important;
  border: 1px solid rgba(200,155,75,0.15) !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: border-color .2s, background .2s !important;
  margin-bottom: 0.5rem !important;
}

body.ts-quick-checkout .wc-block-components-checkout-order-summary__title:hover {
  border-color: rgba(200,155,75,0.35) !important;
  background: linear-gradient(160deg, rgba(91,63,160,0.18) 0%, rgba(200,155,75,0.08) 100%) !important;
}

body.ts-quick-checkout .wc-block-components-checkout-order-summary__title[aria-expanded="true"] {
  border-radius: 12px 12px 0 0 !important;
  margin-bottom: 0 !important;
  border-bottom-color: transparent !important;
}

body.ts-quick-checkout .wc-block-components-checkout-order-summary__title-text {
  font-family: 'Cinzel', serif !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: rgba(200,155,75,0.8) !important;
  margin: 0 !important;
}

body.ts-quick-checkout .wc-block-components-checkout-order-summary__title-price {
  font-family: 'Cinzel', serif !important;
  font-size: 0.95rem !important;
  color: var(--clr-gold-light) !important;
  margin-left: auto !important;
  margin-right: 0.4rem !important;
}

body.ts-quick-checkout .wc-block-components-checkout-order-summary__title-icon svg {
  stroke: rgba(200,155,75,0.6) !important;
  fill: rgba(200,155,75,0.6) !important;
  transition: transform .25s ease !important;
}

body.ts-quick-checkout .wc-block-components-checkout-order-summary__title[aria-expanded="true"]
  .wc-block-components-checkout-order-summary__title-icon svg {
  transform: rotate(180deg) !important;
}

/* Lahtine sisu */
body.ts-quick-checkout .wc-block-components-checkout-order-summary__content {
  background: rgba(11,7,26,0.6) !important;
  border: 1px solid rgba(200,155,75,0.15) !important;
  border-top: none !important;
  border-radius: 0 0 12px 12px !important;
  overflow: hidden !important;
  margin-bottom: 0.5rem !important;
}

/* ── Kupong: kohe nähtaval nupuga avamiseks ────────────────── */
body.ts-quick-checkout .wc-block-components-totals-coupon {
  padding: 0 !important;
}

body.ts-quick-checkout .wc-block-components-panel__button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.7rem 1.1rem !important;
  font-family: 'Cinzel', serif !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: rgba(200,155,75,0.75) !important;
  cursor: pointer !important;
  border: 1px dashed rgba(200,155,75,0.3) !important;
  border-radius: 8px !important;
  background: transparent !important;
  transition: border-color .2s, color .2s !important;
  width: 100% !important;
  line-height: 1 !important;
}

body.ts-quick-checkout .wc-block-components-panel__button:hover {
  border-color: rgba(200,155,75,0.6) !important;
  color: var(--clr-gold) !important;
}

body.ts-quick-checkout .wc-block-components-panel__button-icon {
  fill: rgba(200,155,75,0.6) !important;
  flex-shrink: 0 !important;
  width: 16px !important;
  height: 16px !important;
  transition: transform .25s ease !important;
  display: block !important;
  margin-top: 0 !important;
  vertical-align: middle !important;
}

body.ts-quick-checkout .wc-block-components-panel__button[aria-expanded="true"]
  .wc-block-components-panel__button-icon {
  transform: rotate(180deg) !important;
}

/* Coupon sisend lahti */
body.ts-quick-checkout .wc-block-components-panel__content {
  padding: 0.6rem 0 0 !important;
}

/* ── Classic #order_review (fallback) ─────────────────────── */
body.ts-quick-checkout #order_review {
  position: relative;
}

/* Blocks order summary content pealkiri (::before) eemaldatud —
   sidebar toggli päis näitab nüüd pealkirja + hinda */

/* ── Klassikaline order review ────────────────────────────── */
body.ts-quick-checkout #order_review {
  padding: 1rem 1.1rem 0.5rem !important;
  border-radius: 14px !important;
  background: linear-gradient(160deg, rgba(91,63,160,0.13) 0%, rgba(200,155,75,0.04) 100%) !important;
  border: 1px solid rgba(200,155,75,0.12) !important;
  margin-bottom: 0.75rem;
}

body.ts-quick-checkout .woocommerce-checkout-review-order-table {
  width: 100% !important;
  border-collapse: collapse !important;
}

body.ts-quick-checkout .woocommerce-checkout-review-order-table th,
body.ts-quick-checkout .woocommerce-checkout-review-order-table td {
  padding: 0.45rem 0.3rem !important;
  font-size: 0.85rem !important;
  color: #e8dcc8 !important;
  font-family: 'EB Garamond', serif !important;
  border-bottom: 1px solid rgba(200,155,75,0.08) !important;
}

body.ts-quick-checkout .woocommerce-checkout-review-order-table thead th {
  display: none !important; /* peida Product/Total veerupealkirjad */
}

body.ts-quick-checkout .woocommerce-checkout-review-order-table .product-name {
  color: #e8dcc8 !important;
  font-style: italic;
}

body.ts-quick-checkout .woocommerce-checkout-review-order-table .product-total {
  text-align: right !important;
  color: rgba(200,155,75,0.85) !important;
  font-family: 'Cinzel', serif !important;
  font-size: 0.85rem !important;
}

body.ts-quick-checkout .woocommerce-checkout-review-order-table .order-total th,
body.ts-quick-checkout .woocommerce-checkout-review-order-table .order-total td {
  font-family: 'Cinzel', serif !important;
  font-size: 1rem !important;
  color: var(--clr-gold-light) !important;
  border-bottom: none !important;
  padding-top: 0.65rem !important;
}

/* ── WC Blocks order summary ──────────────────────────────── */
body.ts-quick-checkout .wc-block-components-order-summary {
  background: linear-gradient(160deg, rgba(91,63,160,0.13) 0%, rgba(200,155,75,0.04) 100%) !important;
  border: 1px solid rgba(200,155,75,0.12) !important;
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

body.ts-quick-checkout .wc-block-components-order-summary-content {
  padding: 0.85rem 1.1rem !important;
}

/* Peida order-summary toggle/nool (alati avatud) */
body.ts-quick-checkout .wc-block-components-order-summary__toggle-button {
  display: none !important;
}

body.ts-quick-checkout .wc-block-components-order-summary-item {
  padding: 0.5rem 0 !important;
  border-bottom: 1px solid rgba(200,155,75,0.08) !important;
}

body.ts-quick-checkout .wc-block-components-order-summary-item:last-child {
  border-bottom: none !important;
}

/* Totals wrapper */
body.ts-quick-checkout .wc-block-components-totals-wrapper {
  border-radius: 14px !important;
  background: rgba(11,7,26,0.55) !important;
  border: none !important;
  margin-bottom: 0.75rem;
}

body.ts-quick-checkout .wc-block-components-totals-item {
  color: #e8dcc8 !important;
  font-family: 'EB Garamond', serif !important;
  padding: 0.5rem 1.1rem !important;
  border-bottom: 1px solid rgba(200,155,75,0.07) !important;
}

body.ts-quick-checkout .wc-block-components-totals-item:last-child {
  border-bottom: none !important;
}

body.ts-quick-checkout .wc-block-components-totals-item__label {
  color: rgba(160,144,128,0.8) !important;
  font-size: 0.82rem !important;
}

body.ts-quick-checkout .wc-block-components-totals-item__value {
  color: rgba(200,155,75,0.9) !important;
  font-family: 'Cinzel', serif !important;
  font-size: 0.88rem !important;
}

/* Order total rida */
body.ts-quick-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.ts-quick-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-family: 'Cinzel', serif !important;
  font-size: 1rem !important;
  color: var(--clr-gold-light) !important;
  font-weight: 700 !important;
}

body.ts-quick-checkout .wc-block-components-formatted-money-amount {
  color: rgba(200,155,75,0.9) !important;
  font-family: 'Cinzel', serif !important;
  font-size: 0.88rem !important;
}

/* Peida: pilt, kirjeldus, metadata — AGA mitte __description konteinerit (seal on nimi!) */
body.ts-quick-checkout .wc-block-components-order-summary-item__image,
body.ts-quick-checkout .wc-block-components-product-image,
body.ts-quick-checkout .wc-block-components-product-metadata__description,
body.ts-quick-checkout .wc-block-components-product-metadata,
body.ts-quick-checkout .woocommerce-checkout-review-order-table .product-thumbnail {
  display: none !important;
}

/* Order summary item: vahe külgedele */
body.ts-quick-checkout .wc-block-components-order-summary-item {
  padding: 0.6rem 1.1rem !important;
}

/* __description konteiner: näita, aga ilma paddinguta (pilt on eemaldatud) */
body.ts-quick-checkout .wc-block-components-order-summary-item__description {
  display: block !important;
  padding-left: 0 !important;
}

/* Peida tühjad discount + fee wrapperid */
body.ts-quick-checkout .wp-block-woocommerce-checkout-order-summary-discount-block,
body.ts-quick-checkout .wp-block-woocommerce-checkout-order-summary-fee-block {
  display: none !important;
}

/* Toote nimi */
body.ts-quick-checkout .wc-block-components-order-summary-item__full-name {
  display: block !important;
  font-family: 'EB Garamond', serif !important;
  font-size: 1rem !important;
  color: #e8dcc8 !important;
  font-style: italic;
  letter-spacing: 0.02em;
}

body.ts-quick-checkout .wc-block-components-order-summary-item__individual-prices {
  font-family: 'Cinzel', serif !important;
  font-size: 0.88rem !important;
  color: rgba(200,155,75,0.9) !important;
}

/* ── Peida üleliigsed billing väljad (Blocks ei kuula PHP filtrit) ── */
body.ts-quick-checkout .wc-block-components-address-form__address_1,
body.ts-quick-checkout .wc-block-components-address-form__address_2,
body.ts-quick-checkout .wc-block-components-address-form__city,
body.ts-quick-checkout .wc-block-components-address-form__state,
body.ts-quick-checkout .wc-block-components-address-form__postcode,
body.ts-quick-checkout .wc-block-components-address-form__phone,
body.ts-quick-checkout .wc-block-components-address-form__company,
body.ts-quick-checkout .wc-block-components-country-input {
  display: none !important;
}

/* ── Actions row: vertikaalne stack ─────────────────────────── */
body.ts-quick-checkout .wc-block-checkout__actions_row {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  align-items: stretch !important;
}

/* ── Peida üleliigsed elemendid ────────────────────────────── */
/* Return to Cart */
body.ts-quick-checkout .wc-block-components-checkout-return-to-cart-button,
body.ts-quick-checkout .wc-backward,
body.ts-quick-checkout a.wc-backward {
  display: none !important;
}

/* Lisa märkus tellimusele */
body.ts-quick-checkout .wc-block-checkout__add-note,
body.ts-quick-checkout .woocommerce-additional-fields,
body.ts-quick-checkout .woocommerce-additional-fields__field-wrapper {
  display: none !important;
}

/* Login toggle — peidetud (pole vaja iframis) */
body.ts-quick-checkout .woocommerce-form-login-toggle {
  display: none !important;
}

/* ── Privaatsuspoliitika tekst ─────────────────────────────── */
body.ts-quick-checkout .woocommerce-privacy-policy-text {
  font-size: 0.72rem !important;
  color: rgba(160,144,128,0.55) !important;
  text-align: center;
  margin: 0.6rem 0 0;
  line-height: 1.5;
}

body.ts-quick-checkout .woocommerce-privacy-policy-text a {
  color: rgba(200,155,75,0.6) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* ── Peida WC vaikimisi terms tekst (asendame omadega) ────── */
.woocommerce-terms-and-conditions-wrapper,
.wc-block-checkout__terms,
.wc-block-checkout__privacy-policy {
  display: none !important;
}

/* "You are currently checking out as a guest." */
.wc-block-checkout__customer-login,
.woocommerce-form-login-toggle,
.woocommerce-info,
.wc-block-components-notice-banner,
.wc-block-checkout__customer-form .wc-block-components-checkout-step__description {
  display: none !important;
}

/* ── Kohandatud nõustumise checkboxid ─────────────────────── */
.ts-consent-fields {
  margin: 0.9rem 0 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ts-consent-field {
  padding: 0.65rem 0.85rem;
  background: rgba(11,7,26,0.6);
  border: 1px solid rgba(200,155,75,0.15);
  border-radius: 10px;
  transition: border-color .2s;
}

.ts-consent-field.is-error {
  border-color: rgba(196,80,128,0.5) !important;
}

.ts-consent-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.65rem !important;
  cursor: pointer;
  font-family: 'EB Garamond', serif !important;
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  color: rgba(160,144,128,0.8) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.5;
}

.ts-consent-check {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
  accent-color: #c89b4b !important;
  cursor: pointer !important;
}

.ts-consent-text a {
  color: rgba(200,155,75,0.8) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.ts-consent-text a:hover {
  color: #c89b4b !important;
}

.ts-consent-error {
  display: block;
  font-size: 0.72rem;
  color: rgba(196,80,128,0.85);
  margin-top: 0.3rem;
  margin-left: 1.65rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.06em;
}

/* ── Kupong ─────────────────────────────────────────────────── */
/* Klassikaline: näita ja tee ilusaks */
body.ts-quick-checkout .woocommerce-form-coupon-toggle {
  display: block !important;
  text-align: center;
  margin: 0.5rem 0 0;
}

body.ts-quick-checkout .woocommerce-form-coupon-toggle .showcoupon {
  font-family: 'Cinzel', serif !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.1em !important;
  color: rgba(200,155,75,0.7) !important;
  text-decoration: none !important;
  border-bottom: 1px dashed rgba(200,155,75,0.35) !important;
  padding-bottom: 1px !important;
}

body.ts-quick-checkout .woocommerce-form-coupon-toggle .showcoupon:hover {
  color: var(--clr-gold) !important;
  border-color: rgba(200,155,75,0.7) !important;
}

body.ts-quick-checkout .checkout_coupon {
  background: rgba(11,7,26,0.6) !important;
  border: 1px dashed rgba(200,155,75,0.3) !important;
  border-radius: 10px !important;
  padding: 1rem !important;
  margin-bottom: 1rem !important;
  display: flex !important;
  gap: 0.5rem !important;
  align-items: flex-end !important;
}

body.ts-quick-checkout .checkout_coupon .form-row {
  flex: 1 !important;
  margin: 0 !important;
}

body.ts-quick-checkout .checkout_coupon input[type="text"] {
  border: 1px solid rgba(200,155,75,0.35) !important;
  background: rgba(6,4,15,0.8) !important;
  color: #e8dcc8 !important;
  border-radius: 8px !important;
  padding: 0.6rem 0.85rem !important;
  font-size: 0.88rem !important;
  width: 100% !important;
}

body.ts-quick-checkout .checkout_coupon button[type="submit"] {
  background: transparent !important;
  border: 1px solid rgba(200,155,75,0.5) !important;
  color: var(--clr-gold) !important;
  font-family: 'Cinzel', serif !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.1em !important;
  padding: 0.6rem 1rem !important;
  border-radius: 8px !important;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s !important;
}

body.ts-quick-checkout .checkout_coupon button[type="submit"]:hover {
  background: rgba(200,155,75,0.12) !important;
  color: #f0d080 !important;
}

/* WC Blocks kupong */
body.ts-quick-checkout .wc-block-components-totals-coupon {
  padding: 0.75rem 1rem !important;
}

body.ts-quick-checkout .wc-block-components-totals-coupon__form {
  display: flex !important;
  gap: 0.5rem !important;
  align-items: center !important;
}

body.ts-quick-checkout .wc-block-components-totals-coupon__input input {
  background: rgba(6,4,15,0.8) !important;
  border: 1px solid rgba(200,155,75,0.35) !important;
  border-radius: 8px !important;
  color: #e8dcc8 !important;
  padding: 0.6rem 0.85rem !important;
  font-size: 0.88rem !important;
}

body.ts-quick-checkout .wc-block-components-totals-coupon__button {
  background: transparent !important;
  border: 1px solid rgba(200,155,75,0.5) !important;
  color: var(--clr-gold) !important;
  border-radius: 8px !important;
  font-size: 0.78rem !important;
  padding: 0.55rem 0.9rem !important;
  cursor: pointer;
  transition: background .2s !important;
}

body.ts-quick-checkout .wc-block-components-totals-coupon__button:hover {
  background: rgba(200,155,75,0.1) !important;
}

/* ── Makseala ──────────────────────────────────────────────── */
body.ts-quick-checkout #payment {
  padding: 1rem 1.1rem !important;
  border-radius: 12px !important;
  margin-top: 0.75rem !important;
  position: relative;
}

body.ts-quick-checkout #payment::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(ellipse 120% 80% at 50% 100%, rgba(200,155,75,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Payment methods: radio + label inline ─────────────────── */
body.ts-quick-checkout #payment .payment_methods li {
  display: block !important;
  padding: 0 !important;
  list-style: none !important;
}

body.ts-quick-checkout #payment .payment_methods li > input[type="radio"] {
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 0.5rem 0 0 !important;
  width: 15px !important;
  height: 15px !important;
  accent-color: #c89b4b !important;
  flex-shrink: 0 !important;
}

body.ts-quick-checkout #payment .payment_methods li > label {
  display: inline !important;
  vertical-align: middle !important;
  font-size: 0.85rem !important;
  color: #e8dcc8 !important;
  font-family: 'EB Garamond', serif !important;
  font-weight: 400 !important;
  cursor: pointer !important;
}

/* Testi info tekst väiksem ja tuhmim */
body.ts-quick-checkout #payment .payment_methods .testmode-info {
  font-size: 0.7rem !important;
  color: rgba(160,144,128,0.45) !important;
  margin: 0.4rem 0 0.6rem !important;
}

/* ── Stripe Elements appearance — plugin loeb siit computed style'id iframele ── */
/*
 * #wc-stripe-hidden-input  → .Input värvid (kaardi välja taust, tekst, äär)
 * #wc-stripe-hidden-style-input → .Tab värvid (makseviisi tab-id)
 * .payment_box background  → colorBackground + theme (light → "stripe", dark → "night")
 */

/* Input kujundus — loetakse .Input reegliks */
body.ts-quick-checkout #wc-stripe-hidden-input {
  color: #1a1014 !important;
  background-color: #ffffff !important;
  border: 1.5px solid #c89b4b !important;
  border-radius: 8px !important;
  font-family: 'EB Garamond', serif !important;
  font-size: 16px !important;
  padding: 0.6rem 0.8rem !important;
}

/* Tab kujundus (makseviisi valija) — loetakse .Tab reegliks */
body.ts-quick-checkout #wc-stripe-hidden-style-input {
  color: #1a1014 !important;
  background-color: #f5f0e8 !important;
  border: 1px solid #c89b4b !important;
  border-radius: 8px !important;
}

/* Label värvid */
body.ts-quick-checkout #payment .woocommerce-PaymentMethod label,
body.ts-quick-checkout #payment .payment_methods label {
  color: #1a1014 !important;
}

/* Stripe payment box — hele taust → Stripe kasutab "stripe" (hele) teemat */
body.ts-quick-checkout #payment .payment_box {
  background-color: #ffffff !important;
}
body.ts-quick-checkout #payment .payment_box.payment_method_stripe {
  background: #ffffff !important;
  border-radius: 12px !important;
  padding: 1rem !important;
  margin-top: 0.5rem !important;
  border: 1px solid rgba(200,155,75,0.25) !important;
}

body.ts-quick-checkout #payment .wc-stripe-elements-field,
body.ts-quick-checkout #payment .StripeElement,
body.ts-quick-checkout #payment #wc-stripe-card-element,
body.ts-quick-checkout #payment .wc-upe-form,
body.ts-quick-checkout #payment .wc-payment-form {
  background: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Stripe iframe ümbritsev div */
body.ts-quick-checkout #payment .wc-stripe-upe-element {
  background: #ffffff !important;
  border-radius: 8px !important;
  overflow: hidden;
}

/* __PrivateStripeElement wrapper */
body.ts-quick-checkout #payment .__PrivateStripeElement,
body.ts-quick-checkout #payment .__PrivateStripeElement iframe {
  color-scheme: light !important;
}

body.ts-quick-checkout #payment .about_paypal,
body.ts-quick-checkout #payment .payment_box.payment_method_stripe p,
body.ts-quick-checkout #payment .testmode-info {
  font-size: 0.72rem !important;
  color: #888 !important;
  margin: 0 0 0.6rem !important;
}

body.ts-quick-checkout #payment .testmode-info strong {
  color: #555 !important;
}

body.ts-quick-checkout #payment .testmode-info a {
  color: #c89b4b !important;
}

/* WC Blocks payment */
body.ts-quick-checkout .wc-block-components-payment-method-label,
body.ts-quick-checkout .wc-block-components-radio-control__label {
  color: #e8dcc8 !important;
  font-family: 'EB Garamond', serif !important;
  font-size: 0.9rem !important;
}

body.ts-quick-checkout .wc-block-components-payment-method-icons img {
  filter: brightness(0.9) saturate(0.8) !important;
}

/* ── Maksa nupp ─────────────────────────────────────────────── */
body.ts-quick-checkout #place_order,
body.ts-quick-checkout .woocommerce-checkout #place_order,
body.ts-quick-checkout .wc-block-components-checkout-place-order-button,
body.ts-quick-checkout .wc-block-components-checkout__place-order button {
  display: block !important;
  width: 100% !important;
  padding: 1.05rem 2rem !important;
  background: linear-gradient(135deg, #c89b4b 0%, #f0d080 40%, #e8c060 60%, #c89b4b 100%) !important;
  background-size: 200% 100% !important;
  color: #0b071a !important;
  font-family: 'Cinzel', serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  box-shadow: 0 0 28px rgba(200,155,75,0.45), 0 4px 20px rgba(0,0,0,0.5) !important;
  margin: 1.25rem auto 0 !important;
  animation: qcBtnShimmer 3.5s ease infinite !important;
  text-align: center !important;
}

@keyframes qcBtnShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* Place order button sisu — flex center */
body.ts-quick-checkout .wc-block-components-checkout-place-order-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}

body.ts-quick-checkout .wc-block-components-checkout-place-order-button__text {
  display: block !important;
  text-align: center !important;
}

body.ts-quick-checkout #place_order:hover,
body.ts-quick-checkout .wc-block-components-checkout-place-order-button:hover {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 0 48px rgba(200,155,75,0.65), 0 8px 28px rgba(0,0,0,0.6) !important;
}

/* ── Teated: peida cart-teade, jäta vead ─────────────────── */
body.ts-quick-checkout .woocommerce-message {
  display: none !important;
}

body.ts-quick-checkout .woocommerce-NoticeGroup,
body.ts-quick-checkout .woocommerce-notices-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
}

body.ts-quick-checkout .woocommerce-error {
  font-size: 0.8rem !important;
  padding: 0.65rem 0.9rem !important;
}

body.ts-quick-checkout .woocommerce-error li {
  font-size: 0.8rem;
  padding-left: 30px !important;
}

#add_payment_method #payment div.payment_box::before,
.woocommerce-cart #payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::before {
  border: none !important;
}

/* ── Scrollbar müstiline ────────────────────────────────────── */
body.ts-quick-checkout ::-webkit-scrollbar { width: 4px; }
body.ts-quick-checkout ::-webkit-scrollbar-track { background: rgba(11,7,26,0.8); }
body.ts-quick-checkout ::-webkit-scrollbar-thumb { background: rgba(200,155,75,0.35); border-radius: 2px; }
body.ts-quick-checkout ::-webkit-scrollbar-thumb:hover { background: rgba(200,155,75,0.6); }
