/* birdie.lv — Product Page CRO
   Enqueued via woodmart-child/functions.php after woodmart-style + child-style.
   No !important — Woodmart uses CSS vars for buttons; same specificity wins by load order.
   Elementor-specific delivery section styling lives in Elementor > Custom CSS, not here.
*/

/* ────────────────────────────────────────────────────────────────
   BUTTON COLOURS
   --btn-accented-bgcolor must be a <color>, NOT a gradient —
   Woodmart reads it via background-color: var(...).
   Gradient applied separately via background shorthand on the
   actual button selectors, which overrides background-color.
   ──────────────────────────────────────────────────────────────── */
:root {
  --btn-accented-bgcolor:          #2e8035;
  --btn-accented-bgcolor-hover:    #246829;
  --btn-accented-color:            #fff;
  --btn-accented-color-hover:      #fff;
  --btn-accented-box-shadow:       0 1px 2px rgba(0,0,0,.08), 0 4px 14px rgba(36,104,41,.28);
  --btn-accented-box-shadow-hover: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(36,104,41,.36);
  --btn-accented-brd-radius:       7px;
}

/* Single ATC — explicit properties, not CSS vars (vars can be
   overridden by Woodmart's generated theme-settings stylesheet) */
.single_add_to_cart_button {
  background: #2e8035;
  border-radius: 8px;
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 16px 28px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(36,104,41,.25);
  transition: background .22s ease, box-shadow .22s ease;
}

.single_add_to_cart_button:hover {
  background: #246829;
  box-shadow: 0 4px 16px rgba(36,104,41,.35);
}

.single_add_to_cart_button:active {
  background: #1f5c23;
  box-shadow: 0 1px 4px rgba(36,104,41,.2);
}

.single_add_to_cart_button.disabled {
  background: #c8c8c8;
  box-shadow: none;
  cursor: not-allowed;
}

/* Desktop: quantity + ATC side by side on single product page.
   Both form.cart (simple) and .woocommerce-variation-add-to-cart
   (variable) use flex-wrap:wrap by default — switch to nowrap.
   Scoped to .single-product so cart page layout is unaffected. */
@media (min-width: 768px) {
  /* Only the quantity+ATC row goes nowrap — not form.cart itself,
     which would pull table.variations (swatches) onto the same line. */
  .single-product .woocommerce-variation-add-to-cart {
    flex-wrap: nowrap;
    align-items: center;
  }

  .single-product .single_add_to_cart_button {
    flex: 1 1 auto;
    width: auto;
  }
}

/* ────────────────────────────────────────────────────────────────
   PRODUCT TITLE
   Woodmart outputs .product_title.entry-title.wd-entities-title
   but sets styles via CSS vars on .product-title. Our selector
   (0,2,1) beats .product-title (0,1,0) by specificity.
   ──────────────────────────────────────────────────────────────── */
.product_title.entry-title {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #0c0c0c;
  margin-bottom: 6px;
}

/* ────────────────────────────────────────────────────────────────
   PRICE — already scoped, no !important needed
   ──────────────────────────────────────────────────────────────── */
.single-product-page .wd-single-price .woocommerce-Price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: #1a6b2e;
  letter-spacing: -0.03em;
}

/* ────────────────────────────────────────────────────────────────
   BRAND LOGO
   ──────────────────────────────────────────────────────────────── */
.wd-product-brands img {
  max-height: 26px;
  width: auto;
  opacity: 0.65;
  margin-bottom: 6px;
}

/* ────────────────────────────────────────────────────────────────
   FLIGHT RATINGS (birdie-flight-ratings widget — functions.php)
   HTML: <div class="birdie-flight-ratings">
           <span class="birdie-fr-val">9</span>
           <span class="birdie-fr-sep">/</span>...
         </div>
   ──────────────────────────────────────────────────────────────── */
.birdie-flight-ratings {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  background: #f0eef8;
  border-radius: 5px;
  padding: 2px 8px;
  margin-top: 3px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.birdie-fr-val {
  color: #18183a;
  font-weight: 800;
}

.birdie-fr-sep {
  color: #c4c2d8;
  font-weight: 400;
  padding: 0 2px;
}

/* ────────────────────────────────────────────────────────────────
   FLIGHT RATINGS — single product page
   HTML: .flight-ratings > .flight-item (.flight-value + .flight-label)
         separated by .flight-separator
   ──────────────────────────────────────────────────────────────── */
.flight-ratings {
  display: inline-flex !important;
  align-items: center !important;
  background: #f4f2fb !important;
  border-radius: 10px !important;
  padding: 8px 4px !important;
  gap: 0 !important;
  border: 1px solid rgba(0,0,0,.06) !important;
}

.flight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
  gap: 2px;
}

.flight-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #18183a;
  line-height: 1;
  letter-spacing: -0.03em;
}

.flight-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flight-separator {
  color: #ccc9e0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1;
  padding-bottom: 10px; /* align with value, not label */
}

/* ────────────────────────────────────────────────────────────────
   SHORT DESCRIPTION
   ──────────────────────────────────────────────────────────────── */
.woocommerce-product-details__short-description {
  font-size: 0.93rem;
  line-height: 1.75;
  color: #444;
  background: #f6faf6;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 10px 0 16px;
}

/* ────────────────────────────────────────────────────────────────
   DISABLED SWATCH X ICON
   Woodmart uses two CSS gradients for the X — diagonal lines in a
   non-square swatch appear unequal length by geometry. SVG data URI
   is always square, centered, symmetric regardless of swatch shape.
   Same selector as Woodmart → child load order wins, no !important.
   ──────────────────────────────────────────────────────────────── */
[class*="wd-swatches"].wd-dis-style-2 .wd-swatch::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cline x1='3' y1='3' x2='17' y2='17' stroke='%23CF000F' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='17' y1='3' x2='3' y2='17' stroke='%23CF000F' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 55% 55%;
  background-repeat: no-repeat;
  background-position: center;
}

/* ────────────────────────────────────────────────────────────────
   SWATCHES
   .wd-swatches-single .wd-swatch (0,2,0) beats base .wd-swatch (0,1,0).
   Woodmart style-1 uses :after for selected underline; we add outline
   on top — no conflict.
   ──────────────────────────────────────────────────────────────── */
.wd-swatches-single .wd-swatch {
  border-radius: 9px;
  transition: transform .18s cubic-bezier(.34,1.4,.64,1),
              box-shadow .18s cubic-bezier(.22,1,.36,1);
}

@media (hover: hover) and (pointer: fine) {
  .wd-swatches-single .wd-swatch:hover {
    transform: scale(1.07);
    box-shadow: 0 3px 14px rgba(0,0,0,.14);
  }
}

.wd-swatches-single .wd-swatch.wd-selected,
.wd-swatches-single .wd-swatch[aria-checked="true"] {
  outline: 2.5px solid #2a7a2e;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(42,122,46,.14);
  transform: scale(1.07);
}

/* ────────────────────────────────────────────────────────────────
   STOCK STATUS — pulsing green dot instead of Woodmart's f107 icon.
   Woodmart: p.stock.wd-style-default.in-stock:before (0,3,1)
   Ours: same selector in child — identical specificity, child wins
   by load order. No !important needed.
   ──────────────────────────────────────────────────────────────── */
p.stock.wd-style-default.in-stock {
  color: #1a6b2e;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 7px;
}

p.stock.wd-style-default.in-stock::before {
  content: "";
  font-family: inherit;
  font-size: 0;
  display: inline-block;
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: #1a6b2e;
  color: transparent;
  margin-inline-end: 0;
  animation: stock-pulse 2.2s cubic-bezier(.4,0,.6,1) infinite;
}

@keyframes stock-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .28; transform: scale(.65); }
}

@media (prefers-reduced-motion: reduce) {
  p.stock.wd-style-default.in-stock::before {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ────────────────────────────────────────────────────────────────
   QUANTITY STEPPER — connected pill
   Outer border + overflow:hidden on wrapper, children have no border.
   Divider lines via border-right / border-left on the buttons.
   ──────────────────────────────────────────────────────────────── */
.single-product .quantity {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  vertical-align: middle;
}

.single-product .quantity .minus,
.single-product .quantity .plus {
  width: 44px !important;
  min-height: 48px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  border-radius: 0 !important;
  background: #f7f7f7 !important;
  color: #555 !important;
  font-size: 1.2rem !important;
  font-weight: 300 !important;
  line-height: 1;
  cursor: pointer;
  padding: 0 !important;
  box-shadow: none !important;
  transition: background .15s ease, color .15s ease;
}

.single-product .quantity .minus { border-right: 1.5px solid #ddd !important; }
.single-product .quantity .plus  { border-left:  1.5px solid #ddd !important; }

.single-product .quantity .minus:hover,
.single-product .quantity .plus:hover {
  background: #efefef !important;
  color: #111 !important;
}

.single-product .quantity .minus:active,
.single-product .quantity .plus:active {
  background: #e5e5e5 !important;
}

.single-product .quantity .input-text.qty,
.single-product .quantity input[type="number"] {
  width: 52px;
  min-height: 48px;
  border: none;
  border-radius: 0;
  background: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #111;
  padding: 0;
  box-shadow: none;
}

/* ════════════════════════════════════════════════════════════════
   CART PAGE — full stylesheet (moved from Elementor Custom CSS)
   body.woocommerce-cart scoped throughout.
   ════════════════════════════════════════════════════════════════ */

/* 1. CSS variables + base */
body.woocommerce-cart {
  --sc-accent:        #179252;
  --sc-accent-dark:   #084D40;
  --sc-accent-tint:   #eaf5ef;
  --sc-text:          #1a1a1a;
  --sc-text-muted:    #616161;
  --sc-border:        #dedede;
  --sc-border-light:  #ebebeb;
  --sc-bg-card:       #f6faf8;
  --sc-radius:        8px;
  --sc-focus-ring:    0 0 0 1px var(--sc-accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--sc-text);
}

body.woocommerce-cart .elementor-element-13213a4b * {
  box-sizing: border-box;
}

/* 2. Layout — two-column flex */
body.woocommerce-cart .elementor-element-13213a4b > .e-con-inner {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: flex-start !important;
  gap: 48px !important;
  margin: 0 auto !important;
  width: 100%;
}

body.woocommerce-cart .elementor-element-13213a4b.wd-negative-gap > .e-con-inner > .e-con {
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-cart .elementor-element-6949865a {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 62%;
}

/* Right column IS the summary card */
body.woocommerce-cart .elementor-element-235e0d69 {
  flex: 0 0 38% !important;
  width: 38% !important;
  position: sticky !important;
  top: 24px !important;
  background: var(--sc-bg-card) !important;
  border: 1px solid var(--sc-border-light) !important;
  border-radius: 12px !important;
  padding: 8px 24px 24px !important;
}

/* 3. Gift card notice */
body.woocommerce-cart .ywgc_have_code .woocommerce-info {
  display: flex !important;
  align-items: center;
  gap: 8px;
  background: #fff !important;
  border: 1px solid var(--sc-border-light) !important;
  border-left: 3px solid var(--sc-accent) !important;
  border-radius: var(--sc-radius) !important;
  color: var(--sc-text) !important;
  font-size: 14px !important;
  line-height: 1.4;
  padding: 14px 16px !important;
  margin: 0 0 12px !important;
  box-shadow: none !important;
  width: 100%;
}

body.woocommerce-cart .ywgc_have_code .woocommerce-info::before {
  content: "🎁" !important;
  display: inline-block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  font-size: 16px;
  line-height: 1;
  background: none !important;
  border: 0 !important;
}

body.woocommerce-cart .ywgc_have_code .woocommerce-info::after {
  content: none !important;
  display: none !important;
}

body.woocommerce-cart .ywgc_have_code .woocommerce-info a,
body.woocommerce-cart .ywgc-show-giftcard {
  color: var(--sc-accent) !important;
  text-decoration: underline;
  font-weight: 600;
  white-space: nowrap;
}

body.woocommerce-cart .ywgc_enter_code {
  background: #fff;
  border: 1px solid var(--sc-border-light);
  border-radius: var(--sc-radius);
  padding: 16px 20px !important;
  margin: 0 0 12px !important;
  max-width: 100% !important;
}

body.woocommerce-cart .ywgc_enter_code > div[style] {
  margin: 0 !important;
  left: auto !important;
  right: auto !important;
}

body.woocommerce-cart .ywgc_enter_code > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: static !important;
}

body.woocommerce-cart .ywgc_enter_code > div > p:not(.form-row) {
  flex: 1 1 100%;
  font-size: 13px;
  color: var(--sc-text-muted);
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-cart .ywgc_enter_code .form-row {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}

body.woocommerce-cart .ywgc_enter_code .form-row-first {
  flex: 0 1 50%;
  max-width: 50% !important;
  min-width: 180px;
}

body.woocommerce-cart .ywgc_enter_code .form-row-last {
  flex: 0 0 auto;
}

body.woocommerce-cart .ywgc_enter_code .clear {
  display: none;
}

body.woocommerce-cart .ywgc_enter_code .input-text {
  height: 48px;
  width: 100%;
  padding: 12px 14px !important;
  font-size: 14px !important;
  color: var(--sc-text) !important;
  background: #fff !important;
  border: 1px solid var(--sc-border) !important;
  border-radius: var(--sc-radius) !important;
  box-shadow: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}

body.woocommerce-cart .ywgc_enter_code .input-text:focus {
  border-color: var(--sc-accent) !important;
  box-shadow: var(--sc-focus-ring) !important;
  outline: none !important;
}

body.woocommerce-cart .ywgc_apply_gift_card_button {
  width: auto;
  padding: 0 24px;
  height: 48px;
  background: #fff !important;
  color: var(--sc-text) !important;
  border: 1px solid var(--sc-border) !important;
  border-radius: var(--sc-radius) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: border-color .15s ease;
}

body.woocommerce-cart .ywgc_apply_gift_card_button:hover {
  border-color: var(--sc-text) !important;
}

/* 4. Cart table */
body.woocommerce-cart .woocommerce-cart-form .shop_table {
  border: 0 !important;
  background: transparent !important;
  font-size: 14px;
  margin-bottom: 0;
}

body.woocommerce-cart .woocommerce-cart-form .shop_table thead th {
  font-size: 12px !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--sc-text-muted) !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--sc-border-light) !important;
  padding: 0 8px 10px !important;
  text-align: left;
}

body.woocommerce-cart .woocommerce-cart-form .shop_table td {
  border: 0 !important;
  border-bottom: 1px solid var(--sc-border-light) !important;
  background: transparent !important;
  padding: 18px 8px !important;
  vertical-align: middle !important;
}

body.woocommerce-cart .woocommerce-cart-form .product-thumbnail {
  width: 88px;
}

body.woocommerce-cart .woocommerce-cart-form .product-thumbnail img {
  width: 72px !important;
  height: 72px !important;
  max-width: none !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--sc-border) !important;
  border-radius: var(--sc-radius) !important;
  background: #fff;
  display: block;
}

body.woocommerce-cart .woocommerce-cart-form .product-name a {
  font-size: 14px;
  font-weight: 500;
  color: var(--sc-text) !important;
  line-height: 1.35;
  text-decoration: none;
}

body.woocommerce-cart .woocommerce-cart-form .product-name a:hover {
  color: var(--sc-accent) !important;
}

body.woocommerce-cart .woocommerce-cart-form ul.variation {
  margin: 4px 0 0 !important;
  font-size: 12px;
  color: var(--sc-text-muted);
}

body.woocommerce-cart .woocommerce-cart-form ul.variation p {
  display: inline;
  margin: 0;
}

body.woocommerce-cart .woocommerce-cart-form ul.variation .item-variation-name {
  font-weight: 500;
}

body.woocommerce-cart .woocommerce-cart-form .product-price .amount,
body.woocommerce-cart .woocommerce-cart-form .product-price .woocommerce-Price-currencySymbol {
  color: var(--sc-text) !important;
}

body.woocommerce-cart .woocommerce-cart-form .product-subtotal .amount,
body.woocommerce-cart .woocommerce-cart-form .product-subtotal .woocommerce-Price-currencySymbol {
  color: var(--sc-text) !important;
  font-weight: 600;
}

body.woocommerce-cart .woocommerce-cart-form .product-remove .remove::before,
body.woocommerce-cart .woocommerce-cart-form .product-remove .remove::after {
  content: none !important;
  display: none !important;
}

body.woocommerce-cart .woocommerce-cart-form .product-remove .remove {
  width: 28px;
  height: 28px;
  line-height: 26px;
  font-size: 16px !important;
  color: #b5b5b5 !important;
  background: transparent !important;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: color .15s ease, border-color .15s ease;
}

body.woocommerce-cart .woocommerce-cart-form .product-remove .remove:hover {
  color: #d72c0d !important;
  border-color: #d72c0d;
  background: transparent !important;
}

body.woocommerce-cart .woocommerce-cart-form .quantity {
  display: inline-flex !important;
  align-items: center;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  background: #fff;
  overflow: hidden;
  height: 40px;
}

body.woocommerce-cart .woocommerce-cart-form .quantity .btn {
  width: 34px;
  height: 38px;
  border: 0 !important;
  background: transparent !important;
  color: var(--sc-text-muted);
  font-size: 15px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
  border-radius: 8px !important;
}

body.woocommerce-cart .woocommerce-cart-form .quantity .btn:hover {
  color: var(--sc-text);
  background: #f6f6f7 !important;
}

body.woocommerce-cart .woocommerce-cart-form .quantity .qty {
  width: 36px;
  height: 38px !important;
  border: 0 !important;
  padding: 0 !important;
  text-align: center;
  font-size: 14px !important;
  font-weight: 500;
  color: var(--sc-text);
  background: transparent !important;
  box-shadow: none !important;
  -moz-appearance: textfield;
}

body.woocommerce-cart .woocommerce-cart-form .quantity .qty::-webkit-outer-spin-button,
body.woocommerce-cart .woocommerce-cart-form .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 5. Actions row — coupon inline */
body.woocommerce-cart .wd-cart-action-row td.actions {
  border-bottom: 0 !important;
  padding: 18px 0 0 !important;
}

body.woocommerce-cart .cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.woocommerce-cart .cart-actions .coupon {
  display: flex;
  gap: 10px;
  flex: 1 1 auto;
  max-width: 440px;
}

body.woocommerce-cart .cart-actions .coupon .input-text {
  flex: 1 1 auto;
  height: 48px;
  padding: 12px 14px !important;
  font-size: 14px !important;
  color: var(--sc-text) !important;
  background: #fff !important;
  border: 1px solid var(--sc-border) !important;
  border-radius: var(--sc-radius) !important;
  box-shadow: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}

body.woocommerce-cart .cart-actions .coupon .input-text:focus {
  border-color: var(--sc-accent) !important;
  box-shadow: var(--sc-focus-ring) !important;
  outline: none !important;
}

body.woocommerce-cart .cart-actions .coupon .button {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 20px;
  background: #fff !important;
  color: var(--sc-text) !important;
  border: 1px solid var(--sc-border) !important;
  border-radius: var(--sc-radius) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  box-shadow: none !important;
  transition: border-color .15s ease;
}

body.woocommerce-cart .cart-actions .coupon .button:hover {
  border-color: var(--sc-text) !important;
}

body.woocommerce-cart .cart-actions button[name="update_cart"] {
  display: none !important;
}

/* 6. Summary card — right column (Groza kopsavilkums)
   Elementor container (.elementor-element-235e0d69) IS the card shell.
   Strip Woodmart's inner box; style the content cleanly. */
body.woocommerce-cart .cart_totals,
body.woocommerce-cart .cart-totals-inner,
body.woocommerce-cart .cart-totals-inner.wd-layout-2 {
  width: 100% !important;
  float: none !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

/* Heading */
body.woocommerce-cart .cart_totals h2 {
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: var(--sc-text) !important;
  text-transform: none !important;
  margin: 8px 0 0 !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid var(--sc-border-light) !important;
  text-align: left !important;
}

/* Table reset */
body.woocommerce-cart .cart_totals .shop_table {
  border: 0 !important;
  border-collapse: collapse !important;
  background: transparent !important;
  width: 100%;
  font-size: 14px;
  margin: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-cart .cart_totals .shop_table tbody,
body.woocommerce-cart .cart_totals .shop_table tr {
  border: 0 !important;
  background: transparent !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* All cells — no borders by default */
body.woocommerce-cart .cart_totals .shop_table th,
body.woocommerce-cart .cart_totals .shop_table td {
  border: 0 !important;
  background: transparent !important;
  padding: 12px 0 !important;
  vertical-align: middle !important;
}

/* Row separators — scoped to specific rows only */
body.woocommerce-cart .cart_totals .shop_table tr.cart-subtotal > th,
body.woocommerce-cart .cart_totals .shop_table tr.cart-subtotal > td,
body.woocommerce-cart .cart_totals .shop_table tr.woocommerce-shipping-totals > th,
body.woocommerce-cart .cart_totals .shop_table tr.woocommerce-shipping-totals > td {
  border-bottom: 0 solid var(--sc-border-light) !important;
}

/* Remove bottom padding from subtotal row — separator handles spacing */
body.woocommerce-cart .cart_totals .shop_table tr.cart-subtotal > th,
body.woocommerce-cart .cart_totals .shop_table tr.cart-subtotal > td {
  padding-bottom: 0 !important;
}

/* Label column — muted, left */
body.woocommerce-cart .cart_totals .shop_table th {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--sc-text-muted) !important;
  text-align: left;
  vertical-align: middle;
  padding-right: 12px !important;
  width: 35%;
}

/* Value column — right-aligned */
body.woocommerce-cart .cart_totals .shop_table td {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--sc-text) !important;
  text-align: right;
}

body.woocommerce-cart .cart_totals .woocommerce-Price-amount,
body.woocommerce-cart .cart_totals .woocommerce-Price-currencySymbol {
  color: var(--sc-text) !important;
}

/* ── Shipping row ── */
/* Replace untranslated "Shipment" */
body.woocommerce-cart .cart_totals .woocommerce-shipping-totals th {
  font-size: 0 !important;
  vertical-align: top !important;
  padding-top: 14px !important;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-totals th::before {
  content: "Piegāde";
  font-size: 13px;
  font-weight: 400;
  color: var(--sc-text-muted);
}

/* Shipping td: left-align, owns the option list */
body.woocommerce-cart .cart_totals .woocommerce-shipping-totals td {
  text-align: left !important;
  vertical-align: top !important;
  padding-top: 10px !important;
}

/* Shipping options — card tiles */
body.woocommerce-cart .cart_totals #shipping_method {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.woocommerce-cart .cart_totals #shipping_method li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin: 0;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--sc-border-light);
  border-radius: 7px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

body.woocommerce-cart .cart_totals #shipping_method li:has(input:checked) {
  background: #fff;
  border-color: var(--sc-accent);
}

body.woocommerce-cart .cart_totals #shipping_method input.shipping_method {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin: 0;
  accent-color: var(--sc-accent);
  cursor: pointer;
}

body.woocommerce-cart .cart_totals #shipping_method label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 13px;
  font-weight: 400;
  color: var(--sc-text);
  margin: 0;
  cursor: pointer;
  line-height: 1.35;
}

body.woocommerce-cart .cart_totals #shipping_method label .woocommerce-Price-amount {
  font-weight: 600;
  white-space: nowrap;
}

/* Delivery address note */
body.woocommerce-cart .woocommerce-shipping-destination {
  font-size: 11px;
  color: var(--sc-text-muted);
  margin: 6px 0 4px !important;
  line-height: 1.4;
}

body.woocommerce-cart .woocommerce-shipping-destination strong {
  color: var(--sc-text);
  font-weight: 500;
}

/* "Mainīt adresi" link */
body.woocommerce-cart .shipping-calculator-button {
  font-size: 12px;
  color: var(--sc-accent) !important;
  text-decoration: underline;
  font-weight: 500;
}

/* Address edit form */
body.woocommerce-cart .shipping-calculator-form {
  text-align: left;
  margin-top: 10px;
}

body.woocommerce-cart .shipping-calculator-form .form-row {
  float: none !important;
  width: 100% !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}

body.woocommerce-cart .shipping-calculator-form label {
  font-size: 12px;
  font-weight: 400;
  color: var(--sc-text-muted);
  margin-bottom: 4px;
  display: block;
}

body.woocommerce-cart .shipping-calculator-form .input-text,
body.woocommerce-cart .shipping-calculator-form select {
  height: 40px;
  width: 100%;
  padding: 8px 12px !important;
  font-size: 13px !important;
  color: var(--sc-text) !important;
  background: #fff !important;
  border: 1px solid var(--sc-border) !important;
  border-radius: var(--sc-radius) !important;
  box-shadow: none !important;
}

body.woocommerce-cart .shipping-calculator-form .input-text:focus,
body.woocommerce-cart .shipping-calculator-form select:focus {
  border-color: var(--sc-accent) !important;
  box-shadow: var(--sc-focus-ring) !important;
  outline: none !important;
}

body.woocommerce-cart .shipping-calculator-form button[name="calc_shipping"] {
  height: 40px;
  padding: 0 16px;
  background: #fff !important;
  color: var(--sc-text) !important;
  border: 1px solid var(--sc-border) !important;
  border-radius: var(--sc-radius) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  box-shadow: none !important;
}

body.woocommerce-cart .shipping-calculator-form button[name="calc_shipping"]:hover {
  border-color: var(--sc-text) !important;
}

/* ── Grand total row ── */
body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
  border-bottom: 0 !important;
  border-top: 2px solid var(--sc-border) !important;
  padding-top: 14px !important;
  padding-bottom: 6px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--sc-text) !important;
  vertical-align: middle !important;
}

body.woocommerce-cart .cart_totals .order-total td .amount,
body.woocommerce-cart .cart_totals .order-total td .woocommerce-Price-currencySymbol {
  color: var(--sc-accent) !important;
  font-size: 18px !important;
}

body.woocommerce-cart .cart_totals .order-total .includes_tax {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--sc-text-muted);
  margin-top: 2px;
}

body.woocommerce-cart .cart_totals .order-total .includes_tax .amount,
body.woocommerce-cart .cart_totals .order-total .includes_tax .woocommerce-Price-currencySymbol {
  color: var(--sc-text-muted) !important;
  font-size: 11px !important;
  font-weight: 400;
}

/* 7. Checkout CTA */
body.woocommerce-cart .wc-proceed-to-checkout {
  padding: 0 !important;
  margin-top: 8px;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  height: 56px;
  margin: 0 !important;
  background: var(--sc-accent) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  border: 0 !important;
  border-radius: var(--sc-radius) !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button::after {
  content: "→";
  font-weight: 400;
  transition: transform .15s ease;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  background: var(--sc-accent-dark) !important;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover::after {
  transform: translateX(3px);
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:active {
  transform: scale(.995);
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:focus-visible {
  outline: 2px solid var(--sc-accent);
  outline-offset: 2px;
}

body.woocommerce-cart .wc-proceed-to-checkout::after {
  content: "🔒 Droši maksājumi · SSL šifrēts savienojums";
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--sc-text-muted);
  margin-top: 12px;
}

/* 8. Responsive */
@media (max-width: 1024px) {
  body.woocommerce-cart .elementor-element-13213a4b > .e-con-inner {
    flex-direction: column !important;
    gap: 24px !important;
  }

  body.woocommerce-cart .elementor-element-6949865a {
    max-width: 100% !important;
  }

  body.woocommerce-cart .elementor-element-235e0d69 {
    position: static !important;
    width: 100% !important;
    flex: 1 1 auto !important;
  }
}

@media (max-width: 767px) {
  body.woocommerce-cart .ywgc_enter_code .input-text,
  body.woocommerce-cart .cart-actions .coupon .input-text,
  body.woocommerce-cart .shipping-calculator-form .input-text,
  body.woocommerce-cart .shipping-calculator-form select,
  body.woocommerce-cart .woocommerce-cart-form .quantity .qty {
    font-size: 16px !important;
  }

  body.woocommerce-cart .woocommerce-cart-form .shop_table thead {
    display: none !important;
  }

  body.woocommerce-cart .woocommerce-cart-form .shop_table tr.cart_item {
    display: block;
    position: relative;
    background: #fff;
    border: 1px solid var(--sc-border-light);
    border-radius: 12px;
    padding: 16px 16px 12px 104px;
    margin-bottom: 12px;
    min-height: 104px;
  }

  body.woocommerce-cart .woocommerce-cart-form .shop_table tr.cart_item td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0 !important;
    padding: 4px 0 !important;
    text-align: right;
  }

  body.woocommerce-cart .woocommerce-cart-form .shop_table tr.cart_item td[data-title]::before {
    content: attr(data-title);
    font-size: 12px;
    font-weight: 500;
    color: var(--sc-text-muted);
  }

  body.woocommerce-cart .woocommerce-cart-form .shop_table tr.cart_item .product-thumbnail {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 0 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form .shop_table tr.cart_item .product-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 0 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form .shop_table tr.cart_item .product-name {
    justify-content: flex-start;
    text-align: left;
    padding-right: 24px !important;
  }

  body.woocommerce-cart .woocommerce-cart-form .shop_table tr.cart_item .product-name::before {
    content: none;
  }

  body.woocommerce-cart .ywgc_enter_code .form-row-first,
  body.woocommerce-cart .ywgc_enter_code .form-row-last {
    flex: 1 1 100%;
    max-width: 100% !important;
  }

  body.woocommerce-cart .ywgc_apply_gift_card_button {
    width: 100%;
  }

  body.woocommerce-cart .cart-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.woocommerce-cart .cart-actions .coupon {
    max-width: 100%;
  }

  body.woocommerce-cart .elementor-element-235e0d69 {
    padding: 4px 16px 16px !important;
  }
}

/* ────────────────────────────────────────────────────────────────
   VARIATION LABEL
   ──────────────────────────────────────────────────────────────── */
.variations .label label {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #444;
}

/* ────────────────────────────────────────────────────────────────
   SPEC TABLE
   ──────────────────────────────────────────────────────────────── */
.woocommerce-product-attributes tr:nth-child(even) td,
.woocommerce-product-attributes tr:nth-child(even) th {
  background: #f8f6fc;
}

.woocommerce-product-attributes th {
  font-weight: 600;
  color: #777;
  font-size: 0.83rem;
  padding: 9px 14px;
}

.woocommerce-product-attributes td {
  font-weight: 600;
  color: #111;
  padding: 9px 14px;
}

/* ────────────────────────────────────────────────────────────────
   RELATED PRODUCTS HEADING
   ──────────────────────────────────────────────────────────────── */
.wd-el-title.slider-title {
  font-weight: 800;
  border-left: 3px solid #e53935;
  padding-left: 12px;
  margin-bottom: 18px;
}

/* ────────────────────────────────────────────────────────────────
   RESET VARIATIONS — "Notīrīt" pill chip
   ──────────────────────────────────────────────────────────────── */
.wd-reset-var {
  margin-top: 7px;
}

a.reset_variations {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #777;
  text-decoration: none;
  background: #f1f1f1;
  border: 1px solid #e4e4e4;
  border-radius: 99px;
  padding: 4px 11px 4px 9px;
  letter-spacing: 0.02em;
  transition: background .18s cubic-bezier(.22,1,.36,1),
              color .18s cubic-bezier(.22,1,.36,1),
              border-color .18s cubic-bezier(.22,1,.36,1);
}

a.reset_variations::before {
  content: "×";
  font-size: 1.05rem;
  line-height: 1;
  color: #bbb;
  margin-right: 1px;
  transition: color .18s cubic-bezier(.22,1,.36,1);
}

@media (hover: hover) and (pointer: fine) {
  a.reset_variations:hover {
    background: #fdecea;
    border-color: #f2aaaa;
    color: #c0392b;
  }

  a.reset_variations:hover::before {
    color: #c0392b;
  }
}

/* ────────────────────────────────────────────────────────────────
   DELIVERY SECTION — Elementor element IDs
   Lives here (not Elementor custom CSS) by user preference.
   IDs from the product page sidebar + global section template 4536.
   !important required — Elementor generates per-post inline CSS
   with high specificity that load-order alone cannot beat.
   ──────────────────────────────────────────────────────────────── */

/* Top "same day Valmiera" chip */
.elementor-element-2ba83339 {
  background: linear-gradient(135deg, #e8f5e9, #f0faf0) !important;
  border-radius: 10px !important;
  border: 1px solid rgba(46,128,53,.18) !important;
  padding: 9px 14px !important;
  align-items: center !important;
  gap: 8px !important;
  flex-direction: row-reverse !important;
}

.elementor-element-23d2df73 p {
  font-size: 0.73rem !important;
  font-weight: 700 !important;
  color: #1a6b2e !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

.elementor-element-503212fb img {
  width: 16px !important;
  height: 16px !important;
  filter: sepia(1) saturate(4) hue-rotate(88deg) brightness(.55) !important;
}

/* Delivery card wrapper */
.elementor-element-6f594056 .elementor-shortcode {
  border: 1px solid #efefef !important;
  border-radius: 14px !important;
  background: #fff !important;
  padding: 14px !important;
  overflow: hidden !important;
}

.elementor-element-609c4655,
.elementor-element-609c4655.e-con-boxed,
.elementor-element-609c4655 > .e-con-inner {
  padding: 0 !important;
  margin: 0 !important;
  gap: 10px !important;
  border: none !important;
}

/* "Piegāde:" label — real section title */
.elementor-element-11c5a8bf .woodmart-title-container {
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.09em !important;
  color: #555 !important;
  margin: 0 0 8px !important;
}

/* Rows wrapper */
.elementor-element-714183f2 {
  gap: 6px !important;
  flex-direction: column !important;
}

/* Individual delivery row — card per option */
.elementor-element-3698210b,
.elementor-element-410559ce {
  background: #f8f8f8 !important;
  border: 1px solid #efefef !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
}

/* Left: icon + name + description */
.elementor-element-582bc16d,
.elementor-element-2ab2c738 {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  gap: 2px !important;
}

.elementor-element-6ada9c69 .wd-list,
.elementor-element-7f82b6d7 .wd-list {
  margin: 0 !important;
}

.elementor-element-6ada9c69 .list-content,
.elementor-element-7f82b6d7 .list-content {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #111 !important;
}

.elementor-element-6ada9c69 .wd-icon img,
.elementor-element-7f82b6d7 .wd-icon img {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain !important;
}

.elementor-element-2d708037 p,
.elementor-element-165ce9bf p {
  font-size: 0.72rem !important;
  color: #999 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

/* Right: time + price badge */
.elementor-element-7181c765,
.elementor-element-58b1dee9 {
  flex: 0 0 auto !important;
  align-items: flex-end !important;
  gap: 4px !important;
}

/* Time label — readable, not ghost */
.elementor-element-5bda3d86 p,
.elementor-element-6472754a p {
  font-size: 0.72rem !important;
  color: #888 !important;
  font-weight: 600 !important;
  text-align: right !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

/* "Bezmaksas" — green pill */
.elementor-element-505493b5 .wd-text-block p {
  display: inline-block !important;
  background: #e8f5e9 !important;
  color: #1a6b2e !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  border-radius: 99px !important;
  padding: 3px 11px !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

/* "Sākot ar 2,41 €" — neutral pill */
.elementor-element-583e231c .wd-text-block p {
  display: inline-block !important;
  background: #efefef !important;
  color: #444 !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  border-radius: 99px !important;
  padding: 3px 11px !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

/* Divider — hidden, cards handle separation */
.elementor-element-3f565cae {
  display: none !important;
}

/* Footer note */
.elementor-element-772d250a .list-content {
  font-size: 0.75rem !important;
  color: #666 !important;
  font-style: italic !important;
  line-height: 1.55 !important;
}

/* WhatsApp banner */
.elementor-element-3051dde4 .promo-banner {
  border-radius: 12px !important;
  overflow: hidden !important;
}

@media (hover: hover) and (pointer: fine) {
  .elementor-element-3051dde4 .promo-banner {
    transition: transform .2s ease, box-shadow .2s ease !important;
  }

  .elementor-element-3051dde4 .promo-banner:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.1) !important;
  }
}
