/* ==========================================================================
   BULLZ.PL — Checkout Page Styles
   ========================================================================== */

/* ── CHECKOUT PAGE BODY ── */
body.woocommerce-checkout { background: var(--gray-50); }

/* ── Force Syne (display font) on EVERYTHING in checkout/cart ── */
body.woocommerce-checkout,
body.woocommerce-checkout *,
body.woocommerce-checkout *::before,
body.woocommerce-checkout *::after,
body.woocommerce-cart,
body.woocommerce-cart *,
body.woocommerce-cart *::before,
body.woocommerce-cart *::after {
  font-family: var(--font-display) !important;
}
/* EXCEPTION: product names in order review keep body font for readability */
body.woocommerce-checkout .bullz-order-item__name,
body.woocommerce-checkout .product-name,
body.woocommerce-cart .product-name {
  font-family: var(--font-body, inherit) !important;
}

/* Force full-width page wrappers so .checkout-layout handles centering
   (scoped to .wc-page-wrap so footer .container keeps its own margins) */
body.woocommerce-checkout .site-content,
body.woocommerce-checkout .shop-content,
body.woocommerce-checkout .wc-page-wrap,
body.woocommerce-checkout .wc-page-wrap > .container {
  max-width: 100%;
  width: 100%;
  padding: 0;
}
body.woocommerce-cart .wc-page-wrap,
body.woocommerce-cart .wc-page-wrap > .container {
  max-width: 100%;
  width: 100%;
  padding: 0;
}

/* Hide page title and breadcrumbs on checkout */
body.woocommerce-checkout .page-title,
body.woocommerce-checkout .woocommerce-breadcrumb,
body.woocommerce-checkout .entry-title,
body.woocommerce-checkout .page-header,
body.woocommerce-checkout h1.page-title,
body.woocommerce-checkout .breadcrumbs {
  display: none !important;
}


/* ── CHECKOUT HEADER ── */
.checkout-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-h);
}
.checkout-header-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.checkout-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-500);
}
.checkout-header-right a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  transition: color var(--t);
}
.checkout-header-right a:hover { color: var(--red); }
.secure-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #15803D;
}
.secure-badge svg { width: 14px; height: 14px; }


/* ── PROGRESS STEPS (removed from template, hidden for safety) ── */
.checkout-progress { display: none !important; }


/* ── CHECKOUT LAYOUT ── */
.checkout-layout {
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  box-sizing: border-box;
}

/* Center the form itself */
.woocommerce-checkout .woocommerce {
  max-width: 1480px;
  margin: 0 auto;
}


/* ── LEFT: FORM COLUMN ── */
.checkout-form-col {
  min-width: 0;
}

.checkout-section {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 32px;
  margin-bottom: 16px;
  border: 1px solid var(--gray-200);
}
.checkout-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-150);
}
.checkout-section__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.checkout-section__title .step-num {
  width: 28px; height: 28px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.checkout-section__edit {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  cursor: pointer;
  transition: opacity var(--t);
}
.checkout-section__edit:hover { opacity: 0.7; }


/* ── LOGIN PROMPT ── */
.login-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-150);
  border-radius: var(--r-lg);
  margin-bottom: 20px;
}
.login-prompt__text { font-size: 13px; color: var(--gray-600); }
.login-prompt__text a { color: var(--red); font-weight: 600; }


/* ── RIGHT: ORDER SUMMARY ── */
.checkout-summary-col {
  position: relative;
  min-width: 0;
}
.order-summary-card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--gray-200);
  overflow: visible;
}
.order-summary__title {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--gray-150);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}


/* ── ORDER REVIEW — div-based layout (custom review-order.php) ── */
.bullz-order-review {
  padding: 0 28px;
}
.bullz-order-items {
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--gray-150);
}
.bullz-order-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
.bullz-order-item + .bullz-order-item {
  border-top: 1px solid var(--gray-100);
}
.bullz-order-item__info {
  flex: 1;
  min-width: 0;
}
.bullz-order-item__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--black);
}
.bullz-order-item__qty {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}
.bullz-order-item__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}
.bullz-order-item__thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--gray-100);
}
.bullz-order-item__thumb img,
.bullz-order-item__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bullz-order-item__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.bullz-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #fff;
}
.bullz-qty__btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-700);
  transition: background var(--t);
}
.bullz-qty__btn:hover { background: var(--gray-100); }
.bullz-qty__val {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--black);
  user-select: none;
}
.bullz-order-item__remove {
  background: transparent;
  border: 0;
  color: var(--gray-500);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 0;
  transition: color var(--t);
}
.bullz-order-item__remove:hover { color: var(--red); }
.bullz-order-item.is-busy { opacity: 0.5; pointer-events: none; }
@media (max-width: 480px) {
  .bullz-order-item__thumb { width: 52px; height: 52px; }
}

/* Totals section */
.bullz-order-totals {
  padding: 16px 0;
}
.bullz-order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  font-size: 14px;
}
.bullz-order-total-row__label {
  color: var(--gray-600);
  font-family: var(--font-display);
  font-weight: 500;
}
.bullz-order-total-row__value {
  font-family: var(--font-display);
  font-weight: 700;
  text-align: right;
}
/* Subtotal with strikethrough when coupon applied */
.bullz-price-old {
  text-decoration: line-through;
  color: var(--gray-400) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

/* Coupon discount row */
.bullz-order-total-row--coupon .bullz-order-total-row__label {
  font-family: var(--font-display) !important;
  font-weight: 500 !important;
  color: var(--gray-600) !important;
}
.bullz-order-total-row--coupon .bullz-order-total-row__value {
  color: #15803D;
  font-family: var(--font-display) !important;
  font-weight: 700;
}
.bullz-order-total-row--coupon .bullz-order-total-row__value .woocommerce-remove-coupon {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  color: var(--red);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  transition: opacity 0.15s;
}
.bullz-order-total-row--coupon .bullz-order-total-row__value .woocommerce-remove-coupon:hover {
  opacity: 0.7;
}

.bullz-order-total-row--grand {
  border-top: 2px solid var(--black);
  margin-top: 8px;
  padding-top: 16px;
}
.bullz-order-total-row--grand .bullz-order-total-row__label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--black);
}
.bullz-order-total-row--grand .bullz-order-total-row__value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
}

/* Fallback: if WC still renders a table, force block layout */
.woocommerce-checkout-review-order-table {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 28px !important;
  border: none !important;
  box-sizing: border-box;
}
.woocommerce-checkout-review-order-table thead,
.woocommerce-checkout-review-order-table tbody,
.woocommerce-checkout-review-order-table tfoot,
.woocommerce-checkout-review-order-table tr {
  display: block !important;
  width: 100% !important;
}
.woocommerce-checkout-review-order-table thead {
  display: none !important;
}
.woocommerce-checkout-review-order-table tr {
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-150, #e8e8e8);
}
.woocommerce-checkout-review-order-table tr:last-child {
  border-bottom: none;
}
.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th {
  display: block !important;
  padding: 0 !important;
  border: none !important;
  text-align: left;
}
.woocommerce-checkout-review-order-table .product-name {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  padding-right: 16px;
}
.woocommerce-checkout-review-order-table .product-total {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  text-align: right;
}

/* Subtotal / Total rows in tfoot */
.woocommerce-checkout-review-order-table tfoot tr {
  padding: 10px 0;
}
.woocommerce-checkout-review-order-table tfoot th {
  font-weight: 500 !important;
  font-size: 14px;
  color: var(--gray-600);
}
.woocommerce-checkout-review-order-table tfoot td {
  font-weight: 700 !important;
  font-size: 14px;
  text-align: right !important;
  margin-left: auto;
}

/* Order total row - bigger */
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
  font-size: 18px !important;
  font-weight: 800 !important;
  padding-top: 12px !important;
}


/* ── SHIPPING SECTION (custom div-based template override) ── */
.bullz-shipping-section {
  display: block;
  width: 100%;
  padding: 16px 0 4px;
  border-top: 1px solid var(--gray-150);
  margin-top: 4px;
}
.bullz-shipping-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: var(--black);
  margin: 0 0 12px 0;
  padding: 0;
}
.bullz-shipping-options {
  display: block;
  width: 100%;
}
.bullz-shipping-msg {
  margin: 0;
  padding: 12px 14px;
  border: 1.5px dashed var(--gray-300);
  border-radius: 10px;
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* Legacy fallback (in case the override file isn't loaded yet) */
.woocommerce-shipping-totals,
.woocommerce-checkout-review-order-table .woocommerce-shipping-totals {
  display: block !important;
  width: 100% !important;
  padding: 16px 0;
}
.woocommerce-shipping-totals th,
.woocommerce-checkout-review-order-table .woocommerce-shipping-totals th {
  display: block !important;
  font-family: var(--font-display) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin-bottom: 12px;
  padding: 0 !important;
  border: none !important;
  color: var(--gray-700, #4b5563);
}
.woocommerce-shipping-totals td,
.woocommerce-checkout-review-order-table .woocommerce-shipping-totals td {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  border: none !important;
}

/* Shipping methods list - full width cards */
.woocommerce-shipping-methods {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
}
.woocommerce-shipping-methods li {
  width: 100%;
}
.woocommerce-shipping-methods li label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border: 1.5px solid var(--gray-200, #e5e5e5);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: var(--font-display) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  width: 100%;
  box-sizing: border-box;
}
.woocommerce-shipping-methods li label:hover {
  border-color: var(--gray-400);
}
/* Shipping price inside label */
.woocommerce-shipping-methods li label .woocommerce-Price-amount,
.woocommerce-shipping-methods li label .amount {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
}

/* Courier logos — <img> inserted by JS */
.bullz-courier-logo {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  margin-right: 4px;
}
/* Hide radio circles visually but keep accessible for WC JS events */
.woocommerce-shipping-methods li input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}
.woocommerce-shipping-methods li input[type="radio"]:checked + label,
.woocommerce-shipping-methods li label:has(input:checked) {
  border-color: var(--black, #1a1a1a);
  background: var(--gray-50, #f9fafb);
}
.woocommerce-shipping-methods .shipping-method-name {
  flex: 1;
}
.woocommerce-shipping-methods li { position: relative; }
.woocommerce-shipping-methods .woocommerce-Price-amount {
  font-weight: 700;
  margin-left: auto;
}

/* ── BLPaczka pickup-point button: full-width, BELOW the label,
   only on the SELECTED row (PHP wrapper renders only when chosen). ── */
/* Hide BLPaczka's own duplicate container — we render our own .bullz-pick-wrap */
#blpaczka_pudo_container,
.custom_shipping_option_input_container,
[id^="blpaczka-map"] {
  display: none !important;
}
/* Our container — full width, sits below the label */
.bullz-pick-wrap {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 14px !important;
  border: 1.5px solid var(--black) !important;
  border-top: none !important;
  border-bottom-left-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
  background: var(--gray-50) !important;
  box-sizing: border-box !important;
}
.blpaczka-point-modal-btn {
  display: block !important;
  width: 100% !important;
  background: #1a1a1a !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 18px !important;
  font-family: var(--font-display) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
  text-align: center !important;
}
.blpaczka-point-modal-btn:hover { background: #e63946 !important; }

/* Selected row containing our wrap: stack label + button vertically */
.woocommerce-shipping-methods li:has(.bullz-pick-wrap) {
  display: block;
}
.woocommerce-shipping-methods li:has(.bullz-pick-wrap) > label {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom: 1.5px solid var(--gray-200) !important;
}
/* Hide BLPaczka selected-point text inputs (hidden value carriers) */
.blpaczka-selected-courier-code,
.blpaczka-chosen-point-info input[type="hidden"] {
  display: none !important;
}
/* Postcode warning */
.bullz-postcode-warning {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1.5px dashed var(--gray-300);
  border-radius: 10px;
  background: #fef3c7;
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}


/* ── PAYMENT METHODS: stacked vertically, full width ── */
.woocommerce-checkout-payment {
  background: transparent !important;
  border: none !important;
  padding: 0 28px !important;
  margin-top: 8px;
  width: 100% !important;
  box-sizing: border-box !important;
}
.wc_payment_methods {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
/* Remove any grid - force single column */
.wc_payment_methods,
.checkout-section .wc_payment_methods {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: unset !important;
}
.wc_payment_methods li.wc_payment_method {
  margin: 0 !important;
  padding: 0 !important;
}
.wc_payment_methods li.wc_payment_method > label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
  text-align: left;
  font-family: var(--font-display) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  min-height: auto;
  justify-content: flex-start;
  flex-direction: row;
  width: 100%;
  box-sizing: border-box;
}
.wc_payment_methods li.wc_payment_method > label:hover {
  border-color: var(--gray-300);
}
.wc_payment_methods li.wc_payment_method > input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}
.wc_payment_methods li.wc_payment_method > input[type="radio"]:checked + label {
  border-color: var(--black);
  background: var(--gray-50);
}
.wc_payment_methods .payment_box {
  background: var(--gray-50) !important;
  border: 1px solid var(--gray-150) !important;
  border-radius: var(--r-md) !important;
  padding: 14px 16px !important;
  margin: 10px 0 0 !important;
  color: var(--gray-500);
  font-size: 12px;
  line-height: 1.6;
}
.wc_payment_methods .payment_box::before {
  display: none !important;
}

/* PayU / BLIK specific — logo sizing consistent with courier logos */
.wc_payment_methods li.wc_payment_method > label img {
  max-height: 24px;
  width: auto;
  flex-shrink: 0;
}


/* ── BLIK INPUT ── */
.blik-input-group {
  margin-top: 16px;
  display: none;
}
.blik-input-group.visible { display: block; }
.blik-input {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.blik-digit {
  width: 44px; height: 52px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  text-align: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  outline: none;
  transition: border-color var(--t);
}
.blik-digit:focus { border-color: var(--black); }
.blik-sep { display: flex; align-items: center; font-size: 18px; color: var(--gray-300); padding: 0 4px; }
.blik-hint { font-size: 12px; color: var(--gray-500); text-align: center; margin-top: 10px; }


/* ── PROMO CODE ── */
.promo-row {
  display: flex;
  gap: 8px;
}
.promo-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  font-size: 13px;
  outline: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color var(--t);
}
.promo-input:focus { border-color: var(--black); }
.promo-input::placeholder { text-transform: none; letter-spacing: 0; }
.promo-apply {
  padding: 12px 20px;
  background: var(--gray-100);
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  transition: background var(--t);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.promo-apply:hover { background: var(--gray-200); }
.promo-success {
  display: none;
  margin-top: 10px;
  padding: 10px 14px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--r-md);
  font-size: 13px;
  color: #15803D;
  font-weight: 500;
}


/* ── PLACE ORDER BUTTON ── */
#place_order {
  width: 100%;
  padding: 18px;
  background: #e63946;
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t), transform var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}
#place_order:hover { background: #c1121f; }
#place_order:active { transform: scale(0.98); }

/* Lock icon before button text via pseudo-element */
#place_order::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.place-order-btn {
  width: 100%;
  padding: 18px;
  background: #e63946;
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t), transform var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.place-order-btn:hover { background: #c1121f; }
.place-order-btn:active { transform: scale(0.98); }
.place-order-btn svg { width: 18px; height: 18px; }

.order-cta-note {
  text-align: center;
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 12px;
  line-height: 1.6;
}
.order-cta-note a { color: var(--gray-500); text-decoration: underline; }

/* Place order wrapper inside order review */
.woocommerce-checkout-review-order .form-row.place-order {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}


/* ── TRUST SIGNALS ── */
.summary-trust {
  padding: 16px 28px;
  border-top: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
}
.trust-item svg { width: 14px; height: 14px; color: #15803D; }


/* ── TERMS & CONDITIONS ── */
.woocommerce-terms-and-conditions-wrapper {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 16px 0px !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box;
  border-top: none !important;
  box-shadow: none !important;
}
.woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text {
  margin-bottom: 14px;
}
.woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text p {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-500);
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
}
.woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text a,
.woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-link {
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-transform: none;
}
.woocommerce-checkout-review-order .form-row.place-order {
  border-top: none !important;
  box-shadow: none !important;
}
/* Override the global form-row label uppercase style for the terms checkbox */
.woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox,
.form-row.place-order label.woocommerce-form__label-for-checkbox,
.woocommerce-checkout .form-row label.woocommerce-form__label-for-checkbox {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer;
  font-family: var(--font-display) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--gray-700) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Inner span and abbr should behave as normal inline content (preserve whitespace) */
.woocommerce-terms-and-conditions-wrapper label .woocommerce-terms-and-conditions-checkbox-text {
  display: inline;
  flex: 1;
  line-height: 1.5;
}
.woocommerce-terms-and-conditions-wrapper label abbr.required {
  display: inline;
  color: var(--gray-500);
  text-decoration: none;
  border: none;
  margin-left: 2px;
  font-weight: 400;
}
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex: 0 0 22px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"]:hover {
  border-color: var(--black);
}
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"]:checked {
  background: var(--black);
  border-color: var(--black);
}
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.woocommerce-terms-and-conditions-wrapper label a,
.woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions-checkbox-text a {
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 2px;
}
.woocommerce-terms-and-conditions-wrapper label a:hover,
.woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text a:hover {
  text-decoration: none;
}


/* ── WooCommerce Form Field Overrides ── */
.woocommerce-checkout .form-row {
  margin-bottom: 14px;
}
.woocommerce-checkout .form-row label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 6px;
  display: block;
}
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--black);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  background: var(--white);
  -webkit-appearance: none;
  appearance: none;
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.woocommerce-checkout .form-row input.input-text::placeholder,
.woocommerce-checkout .form-row textarea::placeholder {
  color: var(--gray-400);
}
.woocommerce-checkout .form-row.woocommerce-invalid input.input-text,
.woocommerce-checkout .form-row.woocommerce-invalid select {
  border-color: var(--red);
}
.woocommerce-checkout .form-row .required {
  color: var(--red);
}

/* Billing / Shipping fields layout — grid, 50/50 for paired fields */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px 16px !important;
  width: 100% !important;
}
.woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce-shipping-fields__field-wrapper .form-row {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}
.woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-shipping-fields__field-wrapper .form-row-wide {
  grid-column: 1 / -1 !important;
}
.woocommerce-billing-fields__field-wrapper .form-row-first,
.woocommerce-shipping-fields__field-wrapper .form-row-first {
  grid-column: 1 !important;
}
.woocommerce-billing-fields__field-wrapper .form-row-last,
.woocommerce-shipping-fields__field-wrapper .form-row-last {
  grid-column: 2 !important;
}

/* WooCommerce coupon form on checkout */
.woocommerce-form-coupon-toggle .woocommerce-info {
  max-width: 1480px;
  margin: 0 auto 16px;
  padding: 14px 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-150);
  border-radius: var(--r-lg);
  font-size: 13px;
  color: var(--gray-600);
  box-sizing: border-box;
}
.woocommerce-form-coupon-toggle .woocommerce-info::before {
  display: none;
}
.woocommerce-form-coupon-toggle .woocommerce-info a {
  color: var(--red);
  font-weight: 600;
}
.checkout_coupon {
  max-width: 1480px;
  margin: 0 auto 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 24px 28px;
  display: flex;
  gap: 8px;
  box-sizing: border-box;
}
.checkout_coupon .input-text {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  font-size: 13px;
  outline: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color var(--t);
}
.checkout_coupon .input-text:focus {
  border-color: var(--black);
}
.checkout_coupon .button {
  padding: 12px 20px;
  background: var(--gray-100);
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  transition: background var(--t);
  white-space: nowrap;
}
.checkout_coupon .button:hover {
  background: var(--gray-200);
}

/* WooCommerce notices - hide green/info bars on checkout */
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info {
  display: none !important;
}
.woocommerce-checkout .woocommerce-error {
  border-radius: var(--r-lg);
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 13px;
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
}


/* ── COUPON SECTION ── */
.coupon-row { display: flex; gap: 10px; }
.coupon-input { flex: 1; padding: 14px 18px; border: 2px solid var(--gray-200); border-radius: var(--r-md); font-size: 14px; }
.coupon-input:focus { border-color: var(--black); outline: none; }
.coupon-btn { padding: 14px 28px; background: var(--black); color: #fff; border: none; border-radius: var(--r-md); font-weight: 600; font-size: 14px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.05em; }
.coupon-btn:hover { background: var(--red); }
.coupon-message { margin-top: 12px; padding: 10px 14px; border-radius: var(--r-md); font-size: 13px; font-weight: 500; }
.coupon-message--success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #15803D; }
.coupon-message--error { background: #FEF2F2; border: 1px solid #FECACA; color: #DC2626; }


/* ── BLPACZKA POINT MODAL ── */
/* Chosen point info badge (after picking) */
.blpaczka-chosen-point-info {
  font-size: 12px !important;
  border: 1px solid var(--gray-200) !important;
  border-radius: 8px !important;
  background: var(--white) !important;
  padding: 8px 12px !important;
  color: var(--gray-700) !important;
  margin: 10px 0 0 0 !important;
  display: block !important;
}

/* Point modal overlay — higher z-index, better styling */
#blpaczka-point-checkout-modal {
  z-index: 999999 !important;
}
.blpaczka-point-modal-content {
  border-radius: 16px !important;
  border: 1px solid var(--gray-200) !important;
  box-shadow: var(--shadow-xl) !important;
}
.blpaczka-point-modal-close {
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: var(--gray-100) !important;
  color: var(--gray-600) !important;
  font-size: 20px !important;
  transition: background 0.15s !important;
}
.blpaczka-point-modal-close:hover {
  background: var(--gray-200) !important;
}


/* ── INVOICE TOGGLE ── */
.invoice-toggle {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  background: var(--gray-50);
  transition: border-color 0.18s, background 0.18s;
}
.invoice-toggle.is-open {
  border-color: var(--black);
  background: #fff;
}
.invoice-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  user-select: none;
  margin: 0;
  padding: 0;
  line-height: 1.3;
}
.invoice-checkbox input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  margin: 0;
  padding: 0;
}
.invoice-checkbox__box {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  background: #fff;
  color: #fff;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  box-sizing: border-box;
}
.invoice-checkbox__box svg {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.12s, transform 0.12s;
}
.invoice-checkbox input[type="checkbox"]:checked + .invoice-checkbox__box {
  background: var(--black);
  border-color: var(--black);
}
.invoice-checkbox input[type="checkbox"]:checked + .invoice-checkbox__box svg {
  opacity: 1;
  transform: scale(1);
}
.invoice-checkbox input[type="checkbox"]:focus-visible + .invoice-checkbox__box {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}
.invoice-checkbox:hover .invoice-checkbox__box {
  border-color: var(--black);
}
.invoice-checkbox__text {
  flex: 1;
}
.invoice-fields {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}
.invoice-toggle.is-open .invoice-fields {
  display: block;
}
.invoice-fields .form-row {
  margin-bottom: 12px;
}
.invoice-fields .form-row:last-child {
  margin-bottom: 0;
}
.invoice-fields label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
}
.invoice-fields input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  background: #fff;
  color: var(--black);
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.invoice-fields input[type="text"]:focus {
  outline: none;
  border-color: var(--black);
}


/* Shipping methods: name left, price right (handled by flex in shipping methods section above) */

/* Place order button and terms full width of right column */
.woocommerce-checkout-review-order .form-row.place-order {
  width: 100% !important;
  box-sizing: border-box !important;
  float: none !important;
}
.woocommerce-terms-and-conditions-wrapper {
  width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Hidden country field (forced to PL) */
.bullz-hidden-field,
#billing_country_field {
  display: none !important;
}

/* Shipping section rendered inside bullz-order-totals (legacy fallback) */
.bullz-order-totals .woocommerce-shipping-totals {
  padding: 12px 0;
}
.bullz-order-totals .woocommerce-shipping-totals > th,
.bullz-order-totals .woocommerce-shipping-totals > td {
  display: block !important;
  padding: 0 !important;
  border: none !important;
}
.bullz-order-totals .woocommerce-shipping-totals > th {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--gray-700, #4b5563);
}
/* Same look for the new section inside the totals area */
.bullz-order-totals .bullz-shipping-section {
  padding: 12px 0;
  border-top: none;
  margin-top: 0;
}

/* Remove colons from shipping method labels */
.woocommerce-shipping-methods li label {
  font-size: 14px;
}

/* Shipping table in checkout-section (left column - now removed, but keep for safety) */
.checkout-section .shipping,
.checkout-section table.shop_table {
  width: 100%;
  border: none !important;
  border-collapse: collapse;
}
.checkout-section .shipping td,
.checkout-section .shipping th {
  padding: 0;
  border: none !important;
  vertical-align: top;
}


/* ── ORDER SUCCESS SCREEN ── */
.order-success {
  display: none;
  min-height: 60vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  flex-direction: column;
  gap: 20px;
}
.order-success.visible { display: flex; }
.success-icon {
  width: 80px; height: 80px;
  background: #F0FDF4;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  margin-bottom: 8px;
}
.success-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.success-sub { font-size: 16px; color: var(--gray-500); max-width: 480px; line-height: 1.7; }
.success-order-num {
  padding: 12px 24px;
  background: var(--gray-100);
  border-radius: var(--r-lg);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}


/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .checkout-layout {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px 24px 60px;
  }
}
@media (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    padding: 16px 16px 60px;
    gap: 16px;
  }
  .checkout-summary-col { position: static; }
  .checkout-header-inner { padding: 0 16px; }

  /* Stack form fields in single column on mobile (override desktop !important) */
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr !important;
  }
  .woocommerce-billing-fields__field-wrapper .form-row-first,
  .woocommerce-billing-fields__field-wrapper .form-row-last,
  .woocommerce-shipping-fields__field-wrapper .form-row-first,
  .woocommerce-shipping-fields__field-wrapper .form-row-last {
    grid-column: 1 !important;
  }

  /* Section padding tighter on mobile */
  .checkout-section {
    padding: 22px 20px;
    margin-bottom: 12px;
    border-radius: 16px;
  }

  /* Section title smaller on mobile */
  .checkout-section__header {
    margin-bottom: 18px;
  }
  .checkout-section__title {
    font-size: 16px;
    gap: 10px;
  }
  .checkout-section__title .step-num {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  /* Section subtitle */
  .checkout-section__edit {
    font-size: 12px;
  }

  /* Order summary card */
  .order-summary-card {
    border-radius: 16px;
  }
  .order-summary__title {
    font-size: 15px;
    padding: 18px 20px 14px;
  }

  /* Coupon */
  .coupon-section {
    padding: 0;
  }
  .coupon-row {
    gap: 8px;
  }
  .coupon-input {
    font-size: 14px;
    padding: 12px 14px;
  }
  .coupon-btn {
    padding: 12px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* Form labels and inputs slightly smaller */
  .woocommerce-checkout .form-row {
    margin-bottom: 12px;
  }
  .woocommerce-checkout .form-row label {
    font-size: 11px;
    margin-bottom: 5px;
  }
  .woocommerce-checkout .form-row input[type="text"],
  .woocommerce-checkout .form-row input[type="email"],
  .woocommerce-checkout .form-row input[type="tel"],
  .woocommerce-checkout .form-row input[type="number"],
  .woocommerce-checkout .form-row select {
    font-size: 16px; /* 16px to prevent iOS zoom on focus */
    padding: 12px 14px;
  }

  /* Invoice toggle */
  .invoice-toggle {
    padding: 14px 16px;
  }

  /* Payment box */
  .woocommerce-checkout-payment {
    padding: 0 20px !important;
  }

  /* Place order */
  .woocommerce-checkout-review-order .form-row.place-order {
    padding: 18px 20px 22px !important;
  }
  #place_order {
    width: 100%;
    padding: 16px;
    font-size: 15px;
  }

  /* Trust signals */
  .summary-trust {
    padding: 14px 20px;
    gap: 8px;
  }
  .trust-item {
    font-size: 11px;
  }

  /* Shipping methods labels */
  .woocommerce-shipping-methods li label {
    font-size: 13px;
  }

  /* Cart product item */
  .woocommerce-checkout-review-order-table .product-name {
    font-size: 13px;
  }
  .woocommerce-checkout-review-order-table .product-total {
    font-size: 13px;
  }

  /* Terms checkbox */
  .woocommerce-terms-and-conditions-wrapper {
    padding: 14px 20px !important;
  }
  .woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text p {
    font-size: 11px;
  }
  .woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox,
  .woocommerce-checkout .form-row label.woocommerce-form__label-for-checkbox {
    font-size: 12px !important;
  }
}
@media (max-width: 480px) {
  .checkout-layout {
    padding: 12px 12px 40px;
    gap: 12px;
  }
  .checkout-section {
    padding: 18px 16px;
    border-radius: 14px;
  }
  .checkout-section__title {
    font-size: 15px;
  }
  .order-summary-card {
    border-radius: 14px;
  }
  .order-summary__title {
    padding: 16px 16px 12px;
    font-size: 14px;
  }
  .woocommerce-checkout-review-order-table tr {
    padding: 10px 0;
  }
  .woocommerce-checkout-review-order-table .order-total th,
  .woocommerce-checkout-review-order-table .order-total td {
    font-size: 16px;
  }
  .woocommerce-checkout-payment {
    padding: 0 16px !important;
  }
  .woocommerce-checkout-review-order .form-row.place-order {
    padding: 16px 16px 20px !important;
  }
  #place_order {
    padding: 15px;
    font-size: 14px;
  }
  .summary-trust {
    padding: 12px 16px;
    gap: 6px;
  }
  .trust-item {
    font-size: 10px;
  }
  .trust-item svg {
    width: 12px;
    height: 12px;
  }
  .invoice-toggle {
    padding: 12px 14px;
  }
  .invoice-checkbox {
    font-size: 13px;
  }
  .coupon-row {
    flex-wrap: wrap;
  }
  .coupon-input {
    flex: 1 1 100%;
  }
  .coupon-btn {
    flex: 1 1 100%;
  }
  .woocommerce-terms-and-conditions-wrapper {
    padding: 12px 16px !important;
  }
  .success-title { font-size: 28px; }
  .success-sub { font-size: 14px; }
  .order-success { padding: 40px 20px; }
}


/* ── THANK YOU PAGE ── */
.thankyou-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}
.thankyou-header {
  text-align: center;
  margin-bottom: 40px;
}
.thankyou-checkmark {
  width: 80px;
  height: 80px;
  background: #F0FDF4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.thankyou-checkmark svg {
  width: 40px;
  height: 40px;
  color: #15803D;
}
.thankyou-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 0 0 8px;
}
.thankyou-subtitle {
  font-size: 15px;
  color: var(--gray-500);
  margin: 0;
}
.thankyou-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 32px;
  margin-bottom: 24px;
}
.thankyou-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-150);
}
.thankyou-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.thankyou-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.thankyou-meta-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
}
.thankyou-meta-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
}
.thankyou-bank-details {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.thankyou-bank-details h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #92400E;
  margin: 0 0 12px;
}
.thankyou-bank-details p {
  font-size: 13px;
  color: #78350F;
  margin: 4px 0;
  line-height: 1.6;
}
.thankyou-bank-details strong {
  font-weight: 700;
}
.thankyou-table {
  width: 100%;
  border-collapse: collapse;
}
.thankyou-table th,
.thankyou-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-150);
  font-size: 14px;
  text-align: left;
}
.thankyou-table th {
  font-weight: 600;
  color: var(--gray-600);
}
.thankyou-table td {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
}
.thankyou-table tfoot td,
.thankyou-table tfoot th {
  border-top: 2px solid var(--black);
  border-bottom: none;
  padding-top: 14px;
}
.thankyou-table tfoot th {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--black);
}
.thankyou-table tfoot td {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
}
.thankyou-addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.thankyou-address h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
}
.thankyou-address address {
  font-style: normal;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}
.thankyou-actions {
  text-align: center;
  margin-top: 32px;
}
.thankyou-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t);
}
.thankyou-btn:hover {
  background: var(--red);
  color: var(--white);
}

@media (max-width: 600px) {
  .thankyou-meta { grid-template-columns: 1fr; }
  .thankyou-addresses { grid-template-columns: 1fr; }
  .thankyou-card { padding: 24px 20px; }
  .thankyou-title { font-size: 26px; }
}


/* ── HIDE DUPLICATE WC DEFAULT SECTIONS ON THANK YOU PAGE ── */
/* The custom thankyou-wrap already displays all order info.
   Hide the default WC order-details, bank details, and customer details
   that appear OUTSIDE .thankyou-wrapper to prevent duplicates. */
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-bacs-bank-details,
.woocommerce-order-received .woocommerce-customer-details {
  display: none !important;
}
/* Keep them visible inside the custom wrapper (safety) */
.thankyou-wrapper .woocommerce-order-details,
.thankyou-wrapper .woocommerce-bacs-bank-details,
.thankyou-wrapper .woocommerce-customer-details {
  display: block !important;
}

/* ── NIP field: hide auto "(opcjonalne)" suffix; field is required when invoice toggled ── */
#billing_nip_field .optional { display: none !important; }
#billing_nip_field label::after { content: ""; }

/* ── Payment method: instant visual feedback (perceived-lag reduction) ── */
.wc_payment_methods li.wc_payment_method > label {
  transition: background-color .12s ease, border-color .12s ease, transform .12s ease;
}
.wc_payment_methods li.wc_payment_method.is-selecting > label {
  background-color: #fff7ed;
  border-color: var(--red, #e11d2c);
}
.wc_payment_methods li.wc_payment_method.is-selecting > label::after {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  margin-left: 10px;
  border: 2px solid #e5e5e5;
  border-top-color: var(--red, #e11d2c);
  border-radius: 50%;
  animation: bullzSpin .7s linear infinite;
  vertical-align: middle;
}
@keyframes bullzSpin { to { transform: rotate(360deg); } }

/* Hide WC blockUI overlay on checkout (we provide our own feedback) */
.woocommerce-checkout .blockUI.blockOverlay { opacity: 0 !important; pointer-events: none !important; display: none !important; }
.woocommerce-checkout .blockUI { pointer-events: none !important; }

/* Cart icon bump on add */
.cart-btn.cart-bump, .mbb-item--cart.cart-bump { animation: bullzCartBump .55s ease; }
@keyframes bullzCartBump {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.25); }
  60%  { transform: scale(.92); }
  100% { transform: scale(1); }
}
.single_add_to_cart_button.loading { opacity: .75; pointer-events: none; }
