/* AZ Woo Skin 1.1.0 — cart/checkout/account consistency with the SPA. Generated by az-checkout-skin.php; do not hand-edit on the server. */
body.woocommerce-cart, body.woocommerce-checkout, body.woocommerce-account {
  --az-gold:#D4A017; --az-gold-d:#B8890B; --az-pine:#2F3E46; --az-ink:#26312B;
  --az-mut:#71807A; --az-line:#E7E3D8; --az-soft:#FAF8F2;
}

/* ---- one container, like the SPA ---- */
body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce,
body.woocommerce-account .woocommerce {
  max-width:1280px; margin-left:auto !important; margin-right:auto !important;
  padding-left:24px; padding-right:24px; box-sizing:border-box; float:none;
}

/* ---- typography ---- */
body.woocommerce-cart .woocommerce h1, body.woocommerce-cart .woocommerce h2, body.woocommerce-cart .woocommerce h3,
body.woocommerce-checkout .woocommerce h1, body.woocommerce-checkout .woocommerce h2, body.woocommerce-checkout .woocommerce h3,
body.woocommerce-account .woocommerce h1, body.woocommerce-account .woocommerce h2, body.woocommerce-account .woocommerce h3 {
  font-family:'Lora', Georgia, 'Times New Roman', serif !important;
  color:var(--az-pine); font-weight:600; letter-spacing:.01em;
}

/* ---- buttons: one accent, the SPA's gold ---- */
body.woocommerce-cart .woocommerce .button, body.woocommerce-checkout .woocommerce .button,
body.woocommerce-account .woocommerce .button,
body.woocommerce-cart .woocommerce input[type="submit"], body.woocommerce-checkout .woocommerce input[type="submit"],
body.woocommerce-account .woocommerce input[type="submit"],
body.woocommerce-checkout #place_order, .woocommerce .wc-proceed-to-checkout .checkout-button {
  background:var(--az-gold) !important; color:#fff !important; border:0 !important;
  border-radius:8px !important; box-shadow:none !important;
  font-family:'Roboto', system-ui, -apple-system, sans-serif !important;
  font-weight:600; letter-spacing:.01em; text-transform:none;
  padding:.8em 1.6em; transition:background .15s ease, transform .1s ease;
}
body.woocommerce-cart .woocommerce .button:hover, body.woocommerce-checkout .woocommerce .button:hover,
body.woocommerce-account .woocommerce .button:hover, body.woocommerce-checkout #place_order:hover,
.woocommerce .wc-proceed-to-checkout .checkout-button:hover {
  background:var(--az-gold-d) !important; transform:translateY(-1px);
}
body.woocommerce-cart .woocommerce .button:disabled, body.woocommerce-checkout .woocommerce .button:disabled {
  opacity:.55; transform:none;
}

/* ---- card surfaces ---- */
body.woocommerce-cart table.shop_table.cart {
  background:#fff; border:1px solid var(--az-line); border-radius:12px;
  border-collapse:separate; border-spacing:0; overflow:hidden;
}
body.woocommerce-cart table.shop_table.cart thead th {
  background:var(--az-soft); color:var(--az-mut);
  font:600 12px/1.4 'Roboto', system-ui, sans-serif; text-transform:uppercase; letter-spacing:.08em;
  border-bottom:1px solid var(--az-line); padding:14px 16px;
}
body.woocommerce-cart table.shop_table.cart td {
  border-top:0; border-bottom:1px solid var(--az-soft); padding:16px; vertical-align:middle; background:#fff;
}
body.woocommerce-cart table.shop_table.cart tbody tr:last-child td { border-bottom:0; }
body.woocommerce-cart .cart_totals,
body.woocommerce-checkout .woocommerce-checkout-review-order {
  background:#fff; border:1px solid var(--az-line); border-radius:12px; padding:8px 24px 24px;
}
body.woocommerce-cart .cart_totals table, body.woocommerce-cart .cart_totals table td,
body.woocommerce-cart .cart_totals table th { border-color:var(--az-soft); }
body.woocommerce-checkout #payment { background:var(--az-soft) !important; border-radius:12px; }

/* ---- desktop cart: table + totals side by side, no void ---- */
@media (min-width:1024px) {
  body.woocommerce-cart .woocommerce { display:grid; grid-template-columns:minmax(0,1fr) 400px; gap:32px; align-items:start; }
  body.woocommerce-cart .woocommerce > * { grid-column:1 / -1; }
  body.woocommerce-cart form.woocommerce-cart-form { grid-column:1; margin:0; }
  body.woocommerce-cart .cart-collaterals { grid-column:2; width:auto; }
  body.woocommerce-cart .cart-collaterals .cart_totals { width:100% !important; float:none !important; }
}

/* ---- quantity stepper (XTRA's custom .quantity-down/-up markup) ---- */
body.woocommerce-cart .quantity, body.woocommerce-checkout .quantity {
  display:inline-flex; align-items:center; border:1px solid var(--az-line); border-radius:8px;
  overflow:hidden; background:#fff;
}
body.woocommerce-cart .quantity .quantity-down, body.woocommerce-cart .quantity .quantity-up,
body.woocommerce-checkout .quantity .quantity-down, body.woocommerce-checkout .quantity .quantity-up {
  width:36px; height:40px; line-height:40px; text-align:center; cursor:pointer;
  background:var(--az-soft); color:var(--az-pine); font-weight:600; user-select:none;
  border:0; transition:background .15s ease, color .15s ease;
}
body.woocommerce-cart .quantity .quantity-down:hover, body.woocommerce-cart .quantity .quantity-up:hover,
body.woocommerce-checkout .quantity .quantity-down:hover, body.woocommerce-checkout .quantity .quantity-up:hover {
  background:var(--az-gold); color:#fff;
}
body.woocommerce-cart .quantity .qty, body.woocommerce-checkout .quantity .qty {
  border:0 !important; width:48px; height:40px; text-align:center; box-shadow:none !important;
  font:500 15px 'Roboto', system-ui, sans-serif; outline:none; -moz-appearance:textfield; appearance:textfield;
}
body.woocommerce-cart .quantity .qty::-webkit-outer-spin-button,
body.woocommerce-cart .quantity .qty::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }

/* ---- remove ×: quieter until intent ---- */
body.woocommerce-cart .product-remove .remove {
  display:inline-flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:50%; border:1px solid var(--az-line);
  color:var(--az-mut) !important; background:transparent; font-size:18px; font-weight:400; line-height:1;
  transition:all .15s ease;
}
body.woocommerce-cart .product-remove .remove:hover {
  background:#B3423A; border-color:#B3423A; color:#fff !important;
}

/* ---- coupon ---- */
body.woocommerce-cart .coupon { display:flex; gap:10px; align-items:stretch; }
body.woocommerce-cart .coupon .input-text { width:210px; }

/* ---- inputs ---- */
body.woocommerce-cart .woocommerce input.input-text, body.woocommerce-checkout .woocommerce input.input-text,
body.woocommerce-account .woocommerce input.input-text,
body.woocommerce-checkout .woocommerce select, body.woocommerce-checkout .woocommerce textarea,
body.woocommerce-account .woocommerce input[type="password"], body.woocommerce-account .woocommerce input[type="email"] {
  background:#fff; border:1px solid #D9D4C7 !important; border-radius:8px !important;
  padding:10px 14px !important; box-shadow:none !important; color:var(--az-ink);
  font:400 15px/1.4 'Roboto', system-ui, sans-serif;
  transition:border-color .15s ease, box-shadow .15s ease;
}
body.woocommerce-cart .woocommerce input.input-text:focus, body.woocommerce-checkout .woocommerce input.input-text:focus,
body.woocommerce-account .woocommerce input.input-text:focus,
body.woocommerce-checkout .woocommerce select:focus, body.woocommerce-checkout .woocommerce textarea:focus {
  border-color:var(--az-gold) !important; box-shadow:0 0 0 3px rgba(212,160,23,.18) !important; outline:0;
}
body.woocommerce-checkout .select2-container--default .select2-selection--single {
  border:1px solid #D9D4C7; border-radius:8px; height:42px; padding-top:5px;
}

/* ---- mobile: each cart row becomes a card ---- */
@media (max-width:767px) {
  body.woocommerce-cart table.shop_table_responsive { border:0; background:transparent; overflow:visible; }
  body.woocommerce-cart table.shop_table_responsive tbody tr {
    display:block; background:#fff; border:1px solid var(--az-line); border-radius:12px;
    margin:0 0 16px; padding:4px 14px; overflow:hidden;
  }
  body.woocommerce-cart table.shop_table_responsive tbody tr td {
    display:flex !important; justify-content:space-between; align-items:center; gap:12px;
    border:0 !important; border-bottom:1px solid var(--az-soft) !important;
    padding:10px 0 !important; text-align:right !important; background:transparent;
  }
  body.woocommerce-cart table.shop_table_responsive tbody tr td:last-child { border-bottom:0 !important; }
  body.woocommerce-cart table.shop_table_responsive td::before {
    color:var(--az-mut); font:600 11px/1.4 'Roboto', system-ui, sans-serif;
    text-transform:uppercase; letter-spacing:.08em; margin-right:auto;
  }
  body.woocommerce-cart table.shop_table_responsive td.product-thumbnail { justify-content:center; }
  body.woocommerce-cart .coupon { flex-direction:column; }
  body.woocommerce-cart .coupon .input-text { width:100%; box-sizing:border-box; }
  body.woocommerce-cart .wc-proceed-to-checkout .checkout-button { display:block; width:100%; text-align:center; }
}

/* ---- polish pass (staging review 2026-08-16) ---- */

/* Full-bleed like the SPA: XTRA's boxed mode puts the frame ON BODY (measured on staging:
   margin 60px 200px 0, max-width 1200px, id #intro) — that is the white band above the header
   and the gutters beside it. Release it on the three Woo pages; the bolt header/footer then
   span edge-to-edge exactly like the SPA's, and our 1280 px .woocommerce container keeps the
   content width. */
body#intro.woocommerce-cart, body#intro.woocommerce-checkout, body#intro.woocommerce-account,
body.woocommerce-cart, body.woocommerce-checkout, body.woocommerce-account {
  margin:0 !important; max-width:none !important; width:auto !important;
  /* padding too: logged-in sessions (admin bar / my-account customers) get body padding
     0 20px from the theme — headless/logged-out never sees it. Found in Marko's browser. */
  padding:0 !important;
}

/* form.checkout carries theme card styling (white + radius + shadow) but its columns FLOAT,
   so the form wraps to ~80 px and renders as a stray rounded band overlapping the content.
   Strip the card from the form — the columns carry their own surfaces. */
body.woocommerce-checkout form.checkout {
  background:transparent !important; box-shadow:none !important; border-radius:0 !important;
}

/* "Dostaviti na različitu adresu?" — the ID out-specifies the scoped heading rules, and XTRA
   sizes it like a hero. Bring it into the system. */
body.woocommerce-checkout #ship-to-different-address {
  font-family:'Lora', Georgia, serif !important; font-size:22px !important;
  color:var(--az-pine); font-weight:600;
}

/* Review + totals tables: boxed gray cells → quiet dividers */
body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td,
body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
  background:transparent !important; border:0 !important;
  border-bottom:1px solid var(--az-soft) !important; padding:12px 8px !important;
}
body.woocommerce-cart .cart_totals table th, body.woocommerce-cart .cart_totals table td { padding:12px 0 !important; }
body.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
  color:var(--az-mut); font:600 12px/1.4 'Roboto', system-ui, sans-serif;
  text-transform:uppercase; letter-spacing:.08em;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.order-total th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.order-total td,
body.woocommerce-cart .cart_totals tr.order-total th,
body.woocommerce-cart .cart_totals tr.order-total td {
  border-bottom:0 !important; font-size:18px;
}
body.woocommerce-cart .woocommerce-shipping-destination,
body.woocommerce-checkout .woocommerce-shipping-destination { font-size:13px; color:var(--az-mut); }

/* Naručite spans its card — the button obeys width:100% but XTRA's form-row grid squeezes its
   CONTAINER to ~150 px, so free the container too (measured on staging). */
body.woocommerce-checkout #payment .form-row.place-order { width:100% !important; float:none !important; }
body.woocommerce-checkout #place_order { display:block; width:100%; text-align:center; margin-top:8px; }

/* the empty rounded band the theme leaves above the form */
.woocommerce-notices-wrapper:empty { display:none; }

/* ---- mobile/tablet width (Marko, 2026-08-17): the theme keeps its desktop percentage
   floats at every width — billing fields measured 223 px wide on a 390 px phone and
   304 px on a 768 px tablet. Below desktop, the checkout stacks full-width. ---- */
@media (max-width:1023px) {
  body.woocommerce-cart .woocommerce, body.woocommerce-checkout .woocommerce,
  body.woocommerce-account .woocommerce { padding-left:16px; padding-right:16px; }
  /* the real width thieves at 390 px (measured): form.checkout pads 40px/side, WPBakery's
     vc_column-inner 15px/side — 110 px of the phone gone before a field renders */
  body.woocommerce-checkout form.checkout { padding-left:0 !important; padding-right:0 !important; }
  body.woocommerce-cart .vc_column-inner, body.woocommerce-checkout .vc_column-inner,
  body.woocommerce-account .vc_column-inner { padding-left:0 !important; padding-right:0 !important; }
  body.woocommerce-checkout form.checkout,
  body.woocommerce-checkout #customer_details,
  body.woocommerce-checkout #customer_details .col-1,
  body.woocommerce-checkout #customer_details .col-2,
  body.woocommerce-checkout .woocommerce-billing-fields,
  body.woocommerce-checkout .woocommerce-shipping-fields,
  body.woocommerce-checkout #order_review,
  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout .woocommerce-checkout-review-order,
  body.woocommerce-checkout .xtra-woo-checkout-details,
  body.woocommerce-checkout .xtra-woo-checkout-fields {
    width:100% !important; max-width:none !important; float:none !important;
  }
}
@media (max-width:767px) {
  body.woocommerce-checkout form.checkout .form-row {
    width:100% !important; float:none !important;
  }
  body.woocommerce-checkout .woocommerce input.input-text,
  body.woocommerce-checkout .woocommerce select,
  body.woocommerce-checkout .woocommerce textarea { width:100% !important; box-sizing:border-box; }
}

/* mobile type scale + cart card details */
@media (max-width:767px) {
  body.woocommerce-cart .woocommerce h2, body.woocommerce-checkout .woocommerce h2,
  body.woocommerce-account .woocommerce h2 { font-size:24px; }
  body.woocommerce-cart .woocommerce h3, body.woocommerce-checkout .woocommerce h3,
  body.woocommerce-account .woocommerce h3 { font-size:19px; }
  body.woocommerce-checkout #ship-to-different-address { font-size:18px !important; }
  body.woocommerce-cart table.shop_table_responsive td.product-name {
    justify-content:flex-start; text-align:left !important; font-weight:600;
  }
  body.woocommerce-cart table.shop_table_responsive td.product-name::before { display:none; }
  body.woocommerce-cart td.actions { display:block !important; padding:12px 0 !important; }
  body.woocommerce-cart td.actions::before { display:none; }
  body.woocommerce-cart td.actions .coupon { margin-bottom:10px; }
  body.woocommerce-cart td.actions .button {
    display:block; width:100%; box-sizing:border-box; text-align:center; margin:0 0 8px;
  }
  body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
  body.woocommerce-checkout .woocommerce-checkout-review-order-table td { padding:10px 6px !important; font-size:14px; }
}