/*
Theme Name: Hello Elementor Child Woo
Description: Stabilna paczka bazowa
Author: Jakub
Template: hello-elementor
Version: 1.4.0
Text Domain: hello-elementor-child-woo
*/

/* KARTA */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm {
  background: #f7f8f9;         /* jasne tło panelu */
  border-radius: 6px;
  padding: 28px;
}

/* SIATKA 2 KOLUMNY */
.woocommerce-EditAccountForm .form-row {
  margin: 0 0 18px 0;
}
.woocommerce-EditAccountForm .form-row-first,
.woocommerce-EditAccountForm .woocommerce-form-row--first { grid-column: span 1; }
.woocommerce-EditAccountForm .form-row-last,
.woocommerce-EditAccountForm .woocommerce-form-row--last  { grid-column: span 1; }
.woocommerce-EditAccountForm .form-row-wide,
.woocommerce-EditAccountForm .woocommerce-form-row--wide  { grid-column: 1 / -1; }

.woocommerce-EditAccountForm {
  display: grid;
  grid-template-columns: 1fr 1fr; /* dwie kolumny */
  gap: 18px 24px;
}

/* ETYKIETY */
.woocommerce-EditAccountForm label {
  display: inline-block;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;  
  font-size: 16px;
}

/* POLA TEKSTOWE */
.woocommerce-EditAccountForm input.input-text,
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"],
.woocommerce-EditAccountForm input[type="text"] {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  outline: none;
  box-shadow: none;
}
.woocommerce-EditAccountForm input::placeholder { color: #9ca3af; }
.woocommerce-EditAccountForm input:focus {
  border-color: #0d9488;                 /* turkus */
  box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}

/* POKAŻ HASŁO – wyrównanie przycisku w polu */
.woocommerce-EditAccountForm .password-input {
  position: relative;
  display: block;
}
.woocommerce-EditAccountForm .password-input .show-password-input {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  opacity: .5;
}
.woocommerce-EditAccountForm .password-input .show-password-input:hover { opacity: .8; }

/* FIELDSET (zmiana hasła) */
.woocommerce-EditAccountForm fieldset {
  grid-column: 1 / -1;
  margin: 6px 0 0; padding: 0; border: 0;
}
.woocommerce-EditAccountForm fieldset legend {
  font-weight: 600; color: #111827; margin: 8px 0 10px;
}

/* CHECKBOX / RADIO (ogólne wygładzenie – jeśli występują) */
.woocommerce-EditAccountForm input[type="checkbox"],
.woocommerce-EditAccountForm input[type="radio"] {
  accent-color: #0d9488; /* turkus, nowoczesne przeglądarki */
}

/* PRZYCISK ZAPISZ – prawa dolna krawędź */
.woocommerce-EditAccountForm .button,
.woocommerce-EditAccountForm button[type="submit"] {
  justify-self: end;               /* prawa strona */
  background: #0d9488;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
}

.woocommerce-EditAccountForm br {
  display: none;
}

.woocommerce-EditAccountForm .button:hover { filter: brightness(0.95); }

/* ODLEGŁOŚĆ OD KRAWĘDZI KARTY POD PRZYCISKIEM */
.woocommerce-EditAccountForm p:last-of-type { margin: 6px 0 0 0; }

/* Kolor tekstu w polach input */
.woocommerce-EditAccountForm input.input-text,
.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"] {
  color: #848484 !important;
}

.woocommerce-EditAccountForm input::placeholder {
  color: #848484 !important;
  opacity: 1; /* żeby przeglądarki nie przyciemniały */
}

/* RESPONSYWNIE – 1 kolumna na małych ekranach */
@media (max-width: 767px) {
  .woocommerce-EditAccountForm { grid-template-columns: 1fr; }
}



/* === PACZUNIA v6: ramka wokół KAŻDEGO wiersza zbudowana z ramek komórek,
   bez wewnętrznej linii po 1. kolumnie i z wyrównaniem pierwszej kolumny === */

/* Tabela: bez globalnej ramki; odstęp między wierszami */
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-MyAccount-orders {
  border: none !important;
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
  background: transparent !important;
}

/* Nagłówek czysty */
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-MyAccount-orders thead tr,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-MyAccount-orders thead th {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Ujednolicenie pierwszej kolumny (w Woo bywa TH w tbody) */
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-MyAccount-orders tbody th {
  font-weight: 400 !important;      /* nie pogrubiaj wierszy danych */
}

/* Ramka wiersza rysowana z ramek WSZYSTKICH komórek (td i th) */
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-MyAccount-orders tbody tr > * {
  background: #fff !important;
  vertical-align: middle !important;
  /* ramka wspólna dla całego wiersza: tylko góra/dół na wszystkich komórkach */
  border-top: 1px solid #e5e7eb !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

/* Lewa/prawa ramka tylko na zewnętrznych komórkach (eliminuje linię po 1. kolumnie) */
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-MyAccount-orders tbody tr > *:first-child {
  border-left: 1px solid #e5e7eb !important;
}
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-MyAccount-orders tbody tr > *:last-child {
  border-right: 1px solid #e5e7eb !important;
}

/* Reset ewentualnych pasów (odd/even) i marginesów w <p> */
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-MyAccount-orders tbody tr:nth-child(odd),
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-MyAccount-orders tbody tr:nth-child(even) {
  background: transparent !important;
}
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-MyAccount-orders tbody td p,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-MyAccount-orders tbody th p {
  margin: 0 !important;
}


/* SaMASZ Variant A: checkout layout loaded via assets/checkout-custom.css */

/* === Custom: Full-width & taller order notes field before T&C === */
#order_comments_field,
#order_comments_field .woocommerce-input-wrapper,
#order_comments {
  width: 100%;
  max-width: 100%;
}
#order_comments {
  min-height: 8em;
  resize: vertical;
}



/* === Remove label and border/line above order notes === */
#order_comments_field label {
  display: none !important;
}
#order_comments_field {
  border-top: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}



/* === Hide checkout-notes-below section only on checkout page === */
body.woocommerce-checkout .checkout-notes-below {
  display: none !important;
}



/* === SaMASZ: Shipping method boxes (CSS-only) === */
.woocommerce-checkout .woocommerce-shipping-methods li {
  list-style: none;
}
.woocommerce-checkout .woocommerce-shipping-methods li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 537px;
  height: 48px;
  background-color: #F9FAFA;
  border: 1.5px solid #E9E9E9;
  border-radius: 2px;
  padding: 0 12px;
  box-sizing: border-box;
  margin-bottom: 8px;
}
.woocommerce-checkout .woocommerce-shipping-methods li input[type="radio"] {
  margin-right: 8px;
}

/* Optional: visual state when selected */
.woocommerce-checkout .woocommerce-shipping-methods li input[type="radio"]:checked + label {
  border-color: #cfcfcf;
}

/* Optional (comment in if you prefer responsive width on small screens)
@media (max-width: 640px) {
  .woocommerce-checkout .woocommerce-shipping-methods li,
  .woocommerce-checkout .woocommerce-shipping-methods li label {
    width: 100%;
  }
}
*/



/* === SaMASZ: Shipping method boxes — hover, active, responsive === */
/* Hover state */
.woocommerce-checkout .woocommerce-shipping-methods li:hover {
  border-color: #CFCFCF;
}

/* Active/selected state */
.woocommerce-checkout .woocommerce-shipping-methods li input[type="radio"]:checked + label {
  border-color: #BDBDBD;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.02) inset;
}

/* Use :has for broader container highlight in modern browsers (progressive enhancement) */
.woocommerce-checkout .woocommerce-shipping-methods li:has(input[type="radio"]:checked) {
  border-color: #BDBDBD;
}

/* Responsive: full width on small screens */
@media (max-width: 640px) {
  .woocommerce-checkout .woocommerce-shipping-methods li,
  .woocommerce-checkout .woocommerce-shipping-methods li label {
    width: 100%;
  }
}



/* === Align shipping cost to the right inside shipping box === */
.woocommerce-checkout .woocommerce-shipping-methods li label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.woocommerce-checkout .woocommerce-shipping-methods li label .amount {
  margin-left: auto;
}



/* === SaMASZ: align store credit input + button (ACFW) === */
.acfw-redeem-store-credit-form {
  display: flex;
  align-items: center;
}
.acfw-redeem-store-credit-form-field {
  flex: 1;
  margin-right: 8px;
  display: flex;
  align-items: center;
}
.acfw-redeem-store-credit-form-field input {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
}
.acfw-checkout-form-button-field {
  display: flex;
  align-items: center;
}
.acfw-checkout-form-button-field button {
  height: 48px;
  line-height: 1;
}



/* === SaMASZ: fix alignment of ACFW input and button (v2) === */
.acfw-redeem-store-credit-form {
  display: flex;
  align-items: center;
}
.acfw-redeem-store-credit-form-field {
  flex: 1;
  margin-right: 8px;
  display: flex;
  align-items: center;
}
.acfw-redeem-store-credit-form-field input {
  width: 100%;
  height: 48px !important;
  box-sizing: border-box;
}
.acfw-checkout-form-button-field {
  display: flex;
  align-items: center;
}
.acfw-checkout-form-button-field button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px !important;
  line-height: 1 !important;
  padding: 0 16px;
  box-sizing: border-box;
}



/* === SaMASZ: paczka-6 adjustments === */
/* Hide empty label container */
.acfw-form-control-label {
  display: none !important;
}

/* Push button to the right side */
.acfw-redeem-store-credit-form {
  justify-content: space-between;
}
.acfw-checkout-form-button-field {
  margin-left: auto;
}



/* === SaMASZ: paczka-7 adjustments === */
/* Add spacing above the store credit fields */
.acfw-redeem-store-credit-form-field,
.acfw-checkout-form-button-field {
  margin-top: 12px;
}

/* Align Apply button fully to the right */
.acfw-redeem-store-credit-form {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.acfw-checkout-form-button-field {
  margin-left: auto;
}



/* === SaMASZ: paczka-8 adjustments === */
/* Increase spacing above input+button fields */
.acfw-redeem-store-credit-form-field,
.acfw-checkout-form-button-field {
  margin-top: 30px !important;
}

/* Flex layout: input expands, button sticks to right */
.acfw-redeem-store-credit-form {
  display: flex;
  align-items: center;
}
.acfw-redeem-store-credit-form-field {
  flex: 1;
  margin-right: 0; /* remove gap, button controlled separately */
}
.acfw-checkout-form-button-field {
  margin-left: 20px; /* gap between input and button */
}
.acfw-checkout-form-button-field button {
  height: 48px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}



/* === SaMASZ: paczka-9 adjustments === */
/* ACFW: input fully left, button fully right with space in between */
.acfw-redeem-store-credit-form {
  display: flex;
  align-items: center;
}
.acfw-redeem-store-credit-form-field {
  flex: 1 1 auto;
  margin-right: 20px; /* visual gap to button */
  display: flex;
  align-items: center;
}
.acfw-redeem-store-credit-form-field input {
  width: 100%;
  height: 48px !important;
  box-sizing: border-box;
}
.acfw-checkout-form-button-field {
  margin-left: auto; /* push button to the far right */
  display: flex;
  align-items: center;
}
.acfw-checkout-form-button-field button {
  height: 48px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1 !important;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Payment methods styled like shipping */
.woocommerce-checkout #payment .wc_payment_methods li {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 537px;
  min-height: 48px; /* allow payment_box inside without forcing overflow */
  background-color: #F9FAFA;
  border: 1.5px solid #E9E9E9;
  border-radius: 2px;
  padding: 0 12px;
  box-sizing: border-box;
  margin-bottom: 8px;
  position: relative;
}
/* Keep radio + label in a row at the top */
.woocommerce-checkout #payment .wc_payment_methods li > input[type="radio"] {
  margin-right: 8px;
}
.woocommerce-checkout #payment .wc_payment_methods li > label {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0; /* box padding is on li */
}
/* Ensure inner payment details fit nicely */
.woocommerce-checkout #payment .wc_payment_methods li .payment_box {
  width: 100%;
  padding: 12px 0 12px 28px; /* indent under radio */
  box-sizing: border-box;
}

/* Hover/active states */
.woocommerce-checkout #payment .wc_payment_methods li:hover {
  border-color: #CFCFCF;
}
.woocommerce-checkout #payment .wc_payment_methods li:has(> input[type="radio"]:checked) {
  border-color: #BDBDBD;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.02) inset;
}

/* Responsive: full width on small screens */
@media (max-width: 640px) {
  .woocommerce-checkout #payment .wc_payment_methods li {
    width: 100%;
  }
}



/* === SaMASZ: paczka-10 adjustments === */
/* Make input wider relative to button */
.acfw-redeem-store-credit-form-field {
  flex: 2 1 auto; /* input takes more space */
}
.acfw-checkout-form-button-field {
  flex: 0 0 auto; /* button stays minimal width */
}

/* Extra spacing between payment methods */
.woocommerce-checkout #payment .wc_payment_methods li {
  margin-bottom: 16px; /* was 8px, now bigger gap */
}



/* === SaMASZ: paczka-11 stronger rules === */
/* Make container definitely flex and full width */
.woocommerce-checkout .acfw-redeem-store-credit-form {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

/* Input side: take remaining space */
.woocommerce-checkout .acfw-redeem-store-credit-form .acfw-redeem-store-credit-form-field {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  margin-right: 20px !important;
  display: flex !important;
  align-items: center !important;
}

/* The actual input expands */
.woocommerce-checkout .acfw-redeem-store-credit-form .acfw-redeem-store-credit-form-field input {
  width: 100% !important;
  height: 48px !important;
  box-sizing: border-box !important;
}

/* Button pinned to the right */
.woocommerce-checkout .acfw-redeem-store-credit-form .acfw-checkout-form-button-field {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
}
.woocommerce-checkout .acfw-redeem-store-credit-form .acfw-checkout-form-button-field button {
  height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
}

/* Spacing above the two fields */
.woocommerce-checkout .acfw-redeem-store-credit-form .acfw-redeem-store-credit-form-field,
.woocommerce-checkout .acfw-redeem-store-credit-form .acfw-checkout-form-button-field {
  margin-top: 30px !important;
}

/* SHIPPING: force visible spacing between items */
.woocommerce-checkout .woocommerce-shipping-methods li {
  margin-bottom: 16px !important; /* stronger */
}
.woocommerce-checkout .woocommerce-shipping-methods li + li {
  margin-top: 16px !important; /* also add top margin between consecutive items */
}

/* If parent removes margins, add a gap as fallback (progressive) */
.woocommerce-checkout .woocommerce-shipping-methods {
  row-gap: 16px !important;
}



/* === SaMASZ: paczka-12 — broad & strong selectors === */

/* ACFW: force flex container, full width, and spacing */
.woocommerce-checkout form[class*="acfw-"] .acfw-redeem-store-credit-form,
.woocommerce-checkout .acfw-redeem-store-credit-form {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  gap: 20px !important; /* ensures visible space between input and button even if margins are reset */
}

/* Input wrapper: match any likely class patterns */
.woocommerce-checkout .acfw-redeem-store-credit-form .acfw-redeem-store-credit-form-field,
.woocommerce-checkout .acfw-redeem-store-credit-form [class*="redeem-store-credit"][class*="form-field"] {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}

/* The actual input expands fully */
.woocommerce-checkout .acfw-redeem-store-credit-form input[type="text"],
.woocommerce-checkout .acfw-redeem-store-credit-form input[type="search"],
.woocommerce-checkout .acfw-redeem-store-credit-form .acfw-input,
.woocommerce-checkout .acfw-redeem-store-credit-form .input-text {
  width: 100% !important;
  height: 48px !important;
  box-sizing: border-box !important;
}

/* Button wrapper pinned to far right */
.woocommerce-checkout .acfw-redeem-store-credit-form .acfw-checkout-form-button-field,
.woocommerce-checkout .acfw-redeem-store-credit-form [class*="button-field"] {
  margin-left: auto !important;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
}

/* Button sizing/alignment */
.woocommerce-checkout .acfw-redeem-store-credit-form .acfw-checkout-form-button-field button,
.woocommerce-checkout .acfw-redeem-store-credit-form [class*="button-field"] button,
.woocommerce-checkout .acfw-redeem-store-credit-form button[type="submit"] {
  height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
}

/* Top spacing above input+button row */
.woocommerce-checkout .acfw-redeem-store-credit-form .acfw-redeem-store-credit-form-field,
.woocommerce-checkout .acfw-redeem-store-credit-form .acfw-checkout-form-button-field,
.woocommerce-checkout .acfw-redeem-store-credit-form [class*="redeem-store-credit"][class*="form-field"],
.woocommerce-checkout .acfw-redeem-store-credit-form [class*="button-field"] {
  margin-top: 30px !important;
}

/* SHIPPING: enforce vertical spacing using flex column + gap */
.woocommerce-checkout ul#shipping_method,
.woocommerce-checkout .woocommerce-shipping-methods {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}
.woocommerce-checkout .woocommerce-shipping-methods li,
.woocommerce-checkout ul#shipping_method > li {
  margin: 0 !important; /* margins handled by gap */
}

/* PAYMENT: enforce vertical spacing similarly */
.woocommerce-checkout #payment .wc_payment_methods {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}
.woocommerce-checkout #payment .wc_payment_methods > li {
  margin: 0 !important;
}



/* === SaMASZ: paczka-13 fix margin-right === */
.woocommerce-checkout .acfw-redeem-store-credit-form .acfw-redeem-store-credit-form-field {
  margin-right: 0 !important;
}



/* === SaMASZ: paczka-14 stronger override for margin-right === */
body.woocommerce-checkout .acfw-redeem-store-credit-form .acfw-redeem-store-credit-form-field {
  margin-right: 0 !important;
}



/* === SaMASZ: Thank You (order received) minimalist page === */
.samasz-thankyou {
  min-height: 70vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
}
.samasz-thankyou__icon {
  width: 112px;
  height: auto;
  margin-bottom: 24px;
}
.samasz-thankyou__title {
  font-size: 19px;
  font-weight: 300;
  margin: 0 0 12px 0;
}
.samasz-thankyou__subtitle {
  font-size: 16px;
  font-weight: 300;
  margin: 0 0 24px 0;
}
.samasz-thankyou__btn {
  display: inline-block;
  background: #048A83;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 4px;
}



/* === SaMASZ: paczka-16 — Thankyou button hover like Apply coupon === */
.samasz-thankyou__btn:hover {
  background-color: #036E68; /* darker shade of #048A83 */
  color: #ffffff;
}



/* === SaMASZ: Guest shipping info banner === */
.samasz-guest-shipping-hint {
  background: #FFF4E5;
  border: 1px solid #FFD59E;
  color: #7A4E00;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  border-radius: 4px;
  text-align: center;
}



/* === SaMASZ: Payment hint inside #payment === */
#payment .samasz-payment-hint {
  background: #FFF4E5;
  border: 1px solid #FFD59E;
  color: #7A4E00;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  border-radius: 4px;
}



/* === SaMASZ: paczka-19 — payment hint controlled via JS === */
/* Hide any old 'before payment' hint rendered directly under #payment */
#payment > .samasz-payment-hint { display: none !important; }

/* Style for the JS-inserted hint */
#payment .samasz-payment-hint-js {
  background: #FFF4E5;
  border: 1px solid #FFD59E;
  color: #7A4E00;
  padding: 12px 16px;
  margin: 0 0 16px 0;
  font-size: 14px;
  border-radius: 4px;
}



/* === SaMASZ: Shipping hint box (JS-driven) === */
.samasz-shipping-hint-js {
  background: #FFF4E5;
  border: 1px solid #FFD59E;
  color: #7A4E00;
  padding: 12px 16px;
  margin: 0 0 16px 0;
  font-size: 14px;
  border-radius: 4px;
}



/* === SaMASZ: paczka-21 — Shipping hint styling === */
.samasz-shipping-hint-js {
  background: #FFF4E5;
  border: 1px solid #FFD59E;
  color: #7A4E00;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14px;
  border-radius: 4px;
}



/* === SaMASZ: paczka-22 — hide old payment hint === */
.samasz-payment-hint,
.samasz-payment-hint-js {
  display: none !important;
  visibility: hidden !important;
}





/* SaMASZ – FORCE pure white background on checkout order-review */
body.woocommerce-checkout .checkout-col.order-review,
body.woocommerce-checkout .checkout-col.order-review *,
body.woocommerce-checkout .wfacp_checkout_steps .checkout-col.order-review,
body.woocommerce-checkout .wfacp_checkout_steps .checkout-col.order-review * {
    background: #ffffff !important;
    background-color: #ffffff !important;
}


/* SaMASZ – brutal white background override for anything "order-review" on checkout */
body.woocommerce-checkout [class*="order-review"],
body.woocommerce-checkout [class*="order-review"] *,
body.woocommerce-checkout [class*="order_review"],
body.woocommerce-checkout [class*="order_review"] * {
    background: #ffffff !important;
    background-color: #ffffff !important;
}


/* Override WooCommerce cart totals background */
body.woocommerce-cart .cart-collaterals .cart_totals {
    background: #F9FAFA !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove padding from Elementor cart section */
.elementor-widget-woocommerce-cart .e-cart-section {
    padding: 0 !important;
}


/* Cart totals coupon styling */
.cart-totals-coupon__controls {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;

}

.cart-totals-coupon--checkout .cart-totals-coupon__controls{
	margin-left:14px !important;	
}

.cart_totals .cart-totals-coupon__controls{
	margin-left:0px;
}

.cart-totals-coupon__input {
    box-sizing: border-box;
    width: 75% !important;
    max-width: 75% !important;
    flex: 0 0 75% !important;
    background: #FFFFFF !important;
    border: 1px solid #E9E9E9 !important;
}

.cart-totals-coupon__input::placeholder {
    color: #848484;
}

.cart-totals-coupon__button {
    box-sizing: border-box;
    width: 25% !important;
    max-width: 25% !important;
    flex: 0 0 25% !important;
    border: 1px solid #E9E9E9 !important;
    color: #272727 !important;
    font-size: 16px !important;
    font-weight: 300 !important;
}


/* unify border between input and button */
.cart-totals-coupon__controls {
    gap:0 !important;
}

.cart-totals-coupon__input {
    border-right:none !important;
    border-radius:6px 0 0 6px !important;
}

.cart-totals-coupon__button {
    border-left:none !important;
    border-radius:0 6px 6px 0 !important;
}


/* Button background & hover */
.cart-totals-coupon__button {
    background:#F9FAFA !important;
}

.cart-totals-coupon__button:hover {
    background:#FFFFFF !important;
}

/* Input text color on focus */
.cart-totals-coupon__input:focus {
    color:#272727 !important;
}


/* Fix: make invoice checkbox label visible */
#billing_want_invoice_field label.screen-reader-text {
    position: relative !important;
    width: auto !important;
    height: auto !important;
    visibility: visible !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;
}


/* MINI KOSZYK — dwie linie nazwy produktu */
.elementor-menu-cart__main .cart-item-name-split .line-1-class,
.elementor-menu-cart__main .cart-item-name-split .line-2-class {
    display: block;
    line-height: 1.3;
}

.elementor-menu-cart__main .cart-item-name-split .line-2-class {
    color: #000;
    margin-top: 9px;
}



/* Checkout: spraw, by podsumowanie zamówienia wyglądało jak blok podsumowania z koszyka */
.checkout-col.order-review.e-cart-totals {
    padding: 20px;
    border-radius: 6px;
}

/* Upewniamy się, że tabela w podsumowaniu ma pełną szerokość i standardowe odstępy */
.checkout-col.order-review .woocommerce-checkout-review-order table.shop_table {
    width: 100%;
    border-collapse: collapse;
}


/* Checkout background */
.checkout-col.order-review,
.checkout-col.order-review * {
    background:#F9FAFA !important;
}


/* Pokazujemy tekst przy opcjach radia Rodzaj dokumentu sprzedaży */
.woocommerce-billing-fields #billing_invoice_type_field label.radio.screen-reader-text,
.woocommerce-billing-fields #billing_invoice_type_field > label.screen-reader-text {
    position: static !important;
    width: auto !important;
    height: auto !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;
    white-space: normal !important;
}

/* Układ radia w jednej kolumnie, trochę odstępu */
#billing_invoice_type_field .woocommerce-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#billing_invoice_type_field .woocommerce-input-wrapper input[type="radio"] {
    margin-right: 6px;
}

#billing_invoice_type_field .woocommerce-input-wrapper label.radio {
    display: inline-flex;
    align-items: center;
}

/* Ukrywamy stary checkbox "Chcę fakturę" jeśli jeszcze istnieje */
#billing_want_invoice_field {
    display: none !important;
}



/* Układ radia obok siebie (w rzędzie) */
#billing_invoice_type_field .woocommerce-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

#billing_invoice_type_field .woocommerce-input-wrapper label.radio {
    display: inline-flex;
    align-items: center;
}

#billing_invoice_type_field .woocommerce-input-wrapper input[type="radio"] {
    margin-right: 6px;
}



/* --- RADIO INLINE --- */
#billing_invoice_type_field .woocommerce-input-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

#billing_invoice_type_field .woocommerce-input-wrapper label.radio {
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 10px !important;
}

#billing_invoice_type_field .woocommerce-input-wrapper input[type="radio"] {
    margin-right: 6px !important;
}



/* padding fix */
.woocommerce-checkout-review-order-table tfoot tr.order-total td {padding-right:12px!important;}


/* === CART TOTALS & SHIPPING FINAL TWEAKS === */

/* 1. Cart totals padding box */
body.woocommerce-cart .e-cart__column-end .cart-collaterals .cart_totals.calculated_shipping,
body.woocommerce-cart .cart-collaterals .cart_totals.calculated_shipping {
    padding: 28px 32px !important;
}

/* 2. Shipping methods layout: radio + label + price in one row */
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods {
    margin: 0;
    padding: 0;
}
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods li {
    display: flex !important;
    align-items: center;
    gap: 8px;
    list-style: none;
    width: 100%;
}
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods input[type="radio"] {
    margin: 0;
    flex: 0 0 auto;
}
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods label {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods label .woocommerce-Price-amount {
    margin-left: 16px;
    text-align: right;
    flex: 0 0 auto;
}

/* 3. Hide shipping destination line on cart view */
body.woocommerce-cart .cart_totals .woocommerce-shipping-destination {
    display: none !important;
}



/* 4. Shipping method label text color */
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods label {
    color: #000 !important;
}



/* RESET SHIPPING METHOD STYLING – bez ramek i teł na li w checkout */
.woocommerce-checkout #shipping_method li,
.woocommerce-checkout .woocommerce-shipping-methods li {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ALIGN PRICE COLUMN RIGHT IN CHECKOUT SUMMARY */
.woocommerce-checkout-review-order-table th.product-total,
.woocommerce-checkout-review-order-table td.product-total {
    text-align: right !important;
}



/* REMOVE pink background in checkout payment */
.woocommerce-checkout-payment,
.woocommerce-checkout-payment * {
    background: #fff !important;
    box-shadow: none !important;
}

/* REMOVE borders and boxes around payment methods */
.woocommerce-checkout-payment ul.payment_methods li,
.woocommerce-checkout-payment ul.payment_methods li * {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}



/* Hide coupon label */
.cart-totals-coupon__label {
    display:none !important;
}

/* Hide WooCommerce privacy policy text */
.woocommerce-privacy-policy-text,
.woocommerce-privacy-policy-text * {
    display:none !important;
}



/* Checkout coupon tweaks */
/* Hide coupon title heading */
.cart-totals-coupon__title {
    display: none !important;
}

/* Make coupon button text black */
.cart-totals-coupon__button {
    color: #000 !important;
}

/* White background for coupon input */
.cart-totals-coupon__input {
    background: #ffffff !important;
}

/* Hide any default Woo/Elementor coupon forms inside order review to avoid duplicates */
.woocommerce-checkout-review-order .woocommerce-form-coupon,
.woocommerce-checkout-review-order .checkout_coupon {
    display: none !important;
}



/* Stronger overrides for checkout coupon appearance */
.checkout-col.order-review .cart-totals-coupon__button {
    color: #000000 !important;
}

.checkout-col.order-review .cart-totals-coupon__input {
    background-color: #ffffff !important;
}

/* Hide any other coupon forms on checkout (we keep only our custom block) */
.woocommerce-checkout .woocommerce-form-coupon,
.woocommerce-checkout form.checkout_coupon,
.woocommerce-checkout .wfacp_coupon_section,
.woocommerce-checkout .wfacp_coupon_code_field,
.woocommerce-checkout .wfacp_coupon_field_wrap {
    display: none !important;
}

/* Hide duplicated default order notes block, keep custom one from builder */
.woocommerce-checkout .woocommerce-additional-fields {
    display: none !important;
}

\n
/* Hide visual asterisks and optional/required texts in checkout labels */
.woocommerce-billing-fields .required,
.woocommerce-billing-fields .optional {
    display: none !important;
}
\n\n
/* Layout for split billing address fields */
/* Ulica pełna szerokość */
#billing_street_field {
    width: 100% !important;
    float: none;
    clear: both;
    box-sizing: border-box;
}

/* Nr domu + Nr mieszkania 2x szersze (pełna szerokość) */
#billing_house_number_field,
#billing_apartment_number_field {
    width: 100% !important;
    float: none;
    clear: both !important;
    box-sizing: border-box;
    margin-right: 0 !important;
}
/* Hide address_2 field row via CSS if still rendered */
#billing_address_2_field,
.address-line-hidden {
    display: none !important;
}
\n

/* === Unified row: Ulica + Nr domu + Nr mieszkania w jednym wierszu === */
.woocommerce-billing-fields__field-wrapper #billing_street_field,
.woocommerce-billing-fields__field-wrapper #billing_house_number_field,
.woocommerce-billing-fields__field-wrapper #billing_apartment_number_field {
    float: left;
    clear: none !important;
    box-sizing: border-box;
}

/* Proporcje: ulica szersza, numery węższe */
.woocommerce-billing-fields__field-wrapper #billing_street_field {
    width: 50% !important;
    margin-right: 2%;
}

.woocommerce-billing-fields__field-wrapper #billing_house_number_field {
    width: 22% !important;
    margin-right: 2%;
}

.woocommerce-billing-fields__field-wrapper #billing_apartment_number_field {
    width: 24% !important;
}



/* === Updated proportions for 3-field address row === */
#billing_street_field {
    width: 66% !important;   /* longer street */
    margin-right: 2%;
}

#billing_house_number_field {
    width: 14% !important;
    margin-right: 2%;
}

#billing_apartment_number_field {
    width: 14% !important;
}



/* === Updated proportions v2 for 3-field address row: 74% / 10% / 10% === */
.woocommerce-billing-fields__field-wrapper #billing_street_field {
    width: 56% !important;
    margin-right: 2%;
}
.woocommerce-billing-fields__field-wrapper #billing_house_number_field {
    width: 20% !important;
    margin-right: 2%;
}
.woocommerce-billing-fields__field-wrapper #billing_apartment_number_field {
    width: 20% !important;
}


/* Force white background for checkout coupon input */
.input-text.cart-totals-coupon__input { background:#ffffff !important; }

/* === FIX: widoczny stan zaznaczenia radio (Dostawa + Płatność) na checkout === */
.woocommerce-checkout ul.woocommerce-shipping-methods input[type="radio"],
.woocommerce-checkout #payment ul.payment_methods input[type="radio"]{
  -webkit-appearance: radio !important;
  appearance: radio !important;
  opacity: 1 !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin-right: .6em !important;
}


/* v7.7o – checkout coupon spacing & divider fix */
.checkout-3col .cart-totals-coupon.cart-totals-coupon--checkout {
    padding: 0 14px !important;
}

/* remove vertical divider between coupon input and button */


/* v7.7p – coupon button text color */
.checkout-3col .cart-totals-coupon__button {
    color: #000 !important;
}


/* v7.7q – coupon button typography + remove ONLY inner divider */
.checkout-3col .cart-totals-coupon__button {
    color: #000 !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 16px !important;
    font-weight: 300 !important;
}

/* remove divider ONLY between input and button */
.checkout-3col .cart-totals-coupon__input {
    border-right: none !important;
}

.checkout-3col .cart-totals-coupon__button {
    border-left: none !important;
}


/* v7.7r – change place order button color */
#place_order {
    background: #048A83 !important;
}

/* =====================================================================
   LPFW – Redeem Points UI should look like "Kod rabatowy" controls
   ===================================================================== */

/* Layout of the input + button */
#lpfw-redeem-points-wrap .points-redeem-form{
  display:flex;
  align-items:stretch;
  gap:0;
}

/* Match coupon input */
#lpfw-redeem-points-wrap .points-field{
  height:50px;
  width:100%;
  border:1px solid #dcdcdc;
  border-radius:6px;
  padding:0 15px;
  font-size:14px;
  box-sizing:border-box;
  outline:none;
  background:#fff;
}

#lpfw-redeem-points-wrap .points-field:focus{
  border-color:#000;
}

/* Match coupon button */
#lpfw-redeem-points-wrap .trigger-redeem{
  height:50px;
  padding:0 20px;
  border-radius:6px;
  border:none;
  background:#000;
  color:#fff;
  font-size:14px;
  cursor:pointer;
  margin-left:14px;
  white-space:nowrap;
}

#lpfw-redeem-points-wrap .trigger-redeem:hover{
  background:#000;
}

#lpfw-redeem-points-wrap .trigger-redeem[disabled],
#lpfw-redeem-points-wrap .trigger-redeem:disabled{
  opacity:0.55;
  cursor:not-allowed;
}

/* Make sure the LPFW block doesn't break the coupon row layout */
.cart-totals-coupon--checkout #lpfw-redeem-points-wrap{
  width:100%;
}

/* === LPFW Redeem Points – style jak "Kod rabatowy / Aktywuj" === */

#lpfw-redeem-points-wrap .points-redeem-form {
    display: flex;
    gap: 0;
}

/* input = jak pole kuponu */
#lpfw-redeem-points-wrap .points-field {
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dcdcdc;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    background: #fff;
    color: #222;
    box-sizing: border-box;
}

/* button = jak "Aktywuj" */
#lpfw-redeem-points-wrap .trigger-redeem {
    height: 48px;
    padding: 0 22px;
    border: 1px solid #000;
    border-left: 1px solid #000;
    border-radius: 0 6px 6px 0;
    background: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* hover */
#lpfw-redeem-points-wrap .trigger-redeem:hover:not(:disabled) {
    background: #222;
    border-color: #222;
}

/* disabled – jak Woo */
#lpfw-redeem-points-wrap .trigger-redeem:disabled {
    background: #e5e5e5;
    border-color: #d0d0d0;
    color: #888;
    cursor: not-allowed;
}


/* =========================================================
   LPFW Redeem Points – 1:1 jak Kod rabatowy / Aktywuj
   ========================================================= */

#lpfw-redeem-points-wrap .points-redeem-form {
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* INPUT – identyczny jak pole kuponu */
#lpfw-redeem-points-wrap .points-field {
    height: 48px;
    padding: 0 16px;
    margin: 0;
    border: 1px solid #e5e5e5;
    border-right: 0; /* <-- brak przerwy */
    border-radius: 6px 0 0 6px;

    background-color: #ffffff;
    color: #1c1c1c;

    font-size: 15px;
    font-family: inherit;
    line-height: 48px;

    box-shadow: none;
}

/* placeholder – jak "Kod rabatowy" */
#lpfw-redeem-points-wrap .points-field::placeholder {
    color: #9b9b9b;
    opacity: 1;
    font-size: 15px;
}

/* BUTTON – identyczny jak "Aktywuj" */
#lpfw-redeem-points-wrap .trigger-redeem {
    height: 48px;
    margin: 0;

    padding: 0 26px;

    border: 1px solid #000;
    border-left: 1px solid #000; /* <-- łączy z inputem */
    border-radius: 0 6px 6px 0;

    background-color: #000;
    color: #fff;

    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    line-height: 48px;

    cursor: pointer;
    box-shadow: none;
    white-space: nowrap;
}

/* hover */
#lpfw-redeem-points-wrap .trigger-redeem:hover:not(:disabled) {
    background-color: #222;
    border-color: #222;
}

/* disabled – jak WooCommerce */
#lpfw-redeem-points-wrap .trigger-redeem:disabled {
    background-color: #f2f2f2;
    border-color: #e5e5e5;
    color: #b5b5b5;
    cursor: not-allowed;
}


/* =========================================================
   LPFW Redeem – poprawki focus / font / tło
   ========================================================= */

/* 1. INPUT – focus: pogrubiony cały border */
#lpfw-redeem-points-wrap .points-field:focus {
    outline: none;
    border: 2px solid #000;
    border-right: 2px solid #000; /* <-- kluczowe */
    padding-right: 15px; /* kompensacja za grubszy border */
}

/* 2. BUTTON – normalna grubość czcionki */
#lpfw-redeem-points-wrap .trigger-redeem {
    font-weight: 400; /* jak Aktywuj */
}

/* 3. TŁO – zawsze białe */
#lpfw-redeem-points-wrap .points-field,
#lpfw-redeem-points-wrap .trigger-redeem {
    background-color: #ffffff;
}

/* hover – nadal białe tło inputa */
#lpfw-redeem-points-wrap .points-field:hover {
    background-color: #ffffff;
}

/* disabled – tylko przycisk szarzeje */
#lpfw-redeem-points-wrap .trigger-redeem:disabled {
    background-color: #f2f2f2;
    border-color: #e5e5e5;
    color: #b5b5b5;
}

/* input nigdy nie szarzeje */
#lpfw-redeem-points-wrap .points-field:disabled {
    background-color: #ffffff;
    color: #1c1c1c;
}

/* =========================================================
   LPFW Redeem – twarde wymuszenie białego tła
   (po AJAX / re-render checkout)
   ========================================================= */

/* INPUT */
#lpfw-redeem-points-wrap input.points-field,
#lpfw-redeem-points-wrap input.points-field:focus,
#lpfw-redeem-points-wrap input.points-field:hover,
#lpfw-redeem-points-wrap input.points-field[style] {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-color: #d5d5d5;
    color: #1c1c1c;
}

/* BUTTON */
#lpfw-redeem-points-wrap button.trigger-redeem,
#lpfw-redeem-points-wrap button.trigger-redeem[style] {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #000000;
    font-weight: 400;
}

/* disabled – TYLKO kolor tekstu */
#lpfw-redeem-points-wrap button.trigger-redeem:disabled {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #b5b5b5;
    border-color: #e5e5e5;
}
