/*
 * Ledron Studio — re-skin dla domyślnych szablonów WooCommerce (Moje konto,
 * Koszyk, Finalizacja zamówienia). WooCommerce renderuje te strony przez
 * motyw (Hello Elementor) z bardzo standardowym, "typowo wordpressowym"
 * wyglądem. Zamiast nadpisywać pliki szablonów WooCommerce, celujemy w jego
 * własne, stabilne klasy CSS — identyczne niezależnie od motywu — i dodajemy
 * spójny nagłówek (patrz ledron_starter_woocommerce_page_header() w PHP)
 * nad każdą z tych podstron.
 */

body.woocommerce-account,
body.woocommerce-cart,
body.woocommerce-checkout {
  background: var(--web-paper, #f7f5f1);
}

/* ---- shared page header (kicker + title + intro) ---- */

.ledron-wc-header {
  padding: 56px 0 8px;
}

.ledron-wc-kicker {
  margin: 0 0 12px;
  color: var(--web-red, #ff3818);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ledron-wc-title {
  margin: 0 0 10px;
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--web-ink, #11100f);
}

.ledron-wc-intro {
  margin: 0 0 8px;
  max-width: 56ch;
  color: var(--web-muted, #66615a);
  font-size: 15px;
  line-height: 1.6;
}

/* Hides the theme's own generic page title (e.g. "Moje konto") so it
   doesn't duplicate the kicker/title block above. */
body.woocommerce-account .entry-header,
body.woocommerce-cart .entry-header,
body.woocommerce-checkout .entry-header,
body.woocommerce-account .page-header,
body.woocommerce-cart .page-header,
body.woocommerce-checkout .page-header {
  display: none !important;
}

/* ---- shared width, cards, notices, buttons, form fields ---- */

body.woocommerce-account .woocommerce,
body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce {
  width: min(calc(100% - 48px), 1280px);
  margin-inline: auto;
  padding-bottom: 96px;
  font-family: Inter, Arial, sans-serif;
  color: #3a362f;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.woocommerce-noreviews {
  display: block;
  list-style: none;
  margin: 0 0 24px;
  padding: 16px 20px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--web-line, #dedbd5);
  border-left: 4px solid var(--web-red, #ff3818);
  font-size: 14px;
  line-height: 1.6;
  color: var(--web-ink, #11100f);
}

.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
  content: none !important;
}

.woocommerce-message .button,
.woocommerce-error .button,
.woocommerce-info .button {
  margin-left: 12px;
}

body.woocommerce-account .button,
body.woocommerce-cart .button,
body.woocommerce-checkout .button,
body.woocommerce-checkout #place_order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 8px;
  background: var(--web-red, #ff3818);
  color: #fff !important;
  padding: 13px 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  transition: opacity .15s ease;
}

body.woocommerce-account .button:hover,
body.woocommerce-cart .button:hover,
body.woocommerce-checkout .button:hover,
body.woocommerce-checkout #place_order:hover {
  opacity: .88;
}

body.woocommerce-account a.button.woocommerce-Button--previous,
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
  background: transparent;
  color: var(--web-ink, #11100f) !important;
  border: 1px solid var(--web-line, #dedbd5);
}

body.woocommerce-account form .form-row,
body.woocommerce-checkout form .form-row {
  margin-bottom: 18px;
}

body.woocommerce-account form label,
body.woocommerce-checkout form label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--web-ink, #11100f);
}

body.woocommerce-account form .input-text,
body.woocommerce-account form input[type="text"],
body.woocommerce-account form input[type="email"],
body.woocommerce-account form input[type="password"],
body.woocommerce-account form input[type="tel"],
body.woocommerce-account form input[type="number"],
body.woocommerce-account form select,
body.woocommerce-account form textarea,
body.woocommerce-checkout form .input-text,
body.woocommerce-checkout form input[type="text"],
body.woocommerce-checkout form input[type="email"],
body.woocommerce-checkout form input[type="password"],
body.woocommerce-checkout form input[type="tel"],
body.woocommerce-checkout form input[type="number"],
body.woocommerce-checkout form select,
body.woocommerce-checkout form textarea,
body.woocommerce-cart .coupon .input-text {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--web-line, #dedbd5);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: var(--web-ink, #11100f);
}

body.woocommerce-account form .input-text:focus,
body.woocommerce-checkout form .input-text:focus,
body.woocommerce-account form select:focus,
body.woocommerce-checkout form select:focus {
  outline: none;
  border-color: var(--web-red, #ff3818);
  box-shadow: 0 0 0 3px rgba(255,56,24,.12);
}

body.woocommerce-account table.shop_table,
body.woocommerce-checkout table.shop_table {
  width: 100%;
  border-collapse: collapse;
}

body.woocommerce-account table.shop_table th,
body.woocommerce-checkout table.shop_table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--web-muted, #66615a);
  border-bottom: 1px solid var(--web-line, #dedbd5);
}

body.woocommerce-account table.shop_table td,
body.woocommerce-checkout table.shop_table td {
  padding: 14px;
  border-bottom: 1px solid var(--web-line, #dedbd5);
  font-size: 14px;
}

mark.order-status {
  display: inline-flex;
  background: rgba(255,56,24,.1);
  color: var(--web-red, #ff3818) !important;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 100px;
}

/* select2 (country / state dropdowns) */
.select2-container .select2-selection--single {
  height: 46px !important;
  border: 1px solid var(--web-line, #dedbd5) !important;
  border-radius: 8px !important;
  display: flex;
  align-items: center;
}

.select2-container .select2-selection__rendered {
  padding: 0 14px !important;
  line-height: 44px !important;
  color: var(--web-ink, #11100f) !important;
}

.select2-container .select2-selection__arrow {
  height: 44px !important;
}

/* ---- My Account ---- */

body.woocommerce-account .woocommerce {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 240px;
  flex-shrink: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--web-line, #dedbd5);
  border-radius: 12px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--web-ink, #11100f);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: var(--web-paper, #f7f5f1);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--web-red, #ff3818);
  color: #fff;
}

body.woocommerce-account .woocommerce-MyAccount-content {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--web-line, #dedbd5);
  border-radius: 12px;
  padding: 36px;
}

body.woocommerce-account .woocommerce-MyAccount-content p {
  line-height: 1.7;
}

body.woocommerce-account .woocommerce-MyAccount-content a {
  color: var(--web-red, #ff3818);
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--web-ink, #11100f);
  margin: 0 0 16px;
}

body.woocommerce-account .woocommerce-Address {
  background: var(--web-paper, #f7f5f1);
  border: 1px solid var(--web-line, #dedbd5);
  border-radius: 10px;
  padding: 20px;
}

body.woocommerce-account .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

body.woocommerce-account .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

body.woocommerce-account .woocommerce-Address-title h3 {
  margin: 0;
  font-size: 15px;
}

/* ---- Cart ---- */

body.woocommerce-cart table.cart {
  background: #fff;
  border: 1px solid var(--web-line, #dedbd5);
  border-radius: 12px;
  overflow: hidden;
}

body.woocommerce-cart table.cart td,
body.woocommerce-cart table.cart th {
  padding: 16px;
  vertical-align: middle;
}

body.woocommerce-cart table.cart tr:last-child td {
  border-bottom: none;
}

body.woocommerce-cart .product-thumbnail img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

body.woocommerce-cart .product-name a {
  color: var(--web-ink, #11100f);
  font-weight: 700;
  text-decoration: none;
}

body.woocommerce-cart .product-remove a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 100%;
  background: var(--web-paper, #f7f5f1);
  color: var(--web-ink, #11100f) !important;
  font-size: 18px;
  line-height: 1;
  text-decoration: none !important;
}

body.woocommerce-cart .quantity .qty {
  width: 64px;
  padding: 10px;
  border: 1px solid var(--web-line, #dedbd5);
  border-radius: 6px;
  text-align: center;
  font: inherit;
}

body.woocommerce-cart .coupon {
  display: flex;
  gap: 10px;
  align-items: center;
}

body.woocommerce-cart .coupon .input-text {
  max-width: 220px;
}

body.woocommerce-cart .actions {
  padding: 20px 16px !important;
}

body.woocommerce-cart .cart-collaterals {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}

body.woocommerce-cart .cart_totals {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--web-line, #dedbd5);
  border-radius: 12px;
  padding: 28px;
}

body.woocommerce-cart .cart_totals h2 {
  margin: 0 0 18px;
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--web-ink, #11100f);
}

body.woocommerce-cart .cart_totals table {
  width: 100%;
  border-collapse: collapse;
}

body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--web-line, #dedbd5);
  font-size: 14px;
  text-align: left;
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
  border-bottom: none;
  padding-top: 16px;
  font-weight: 800;
  font-size: 17px;
  color: var(--web-ink, #11100f);
}

body.woocommerce-cart .wc-proceed-to-checkout {
  margin-top: 20px;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  display: flex;
  width: 100%;
}

/* ---- Checkout ---- */

body.woocommerce-checkout form.woocommerce-checkout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

body.woocommerce-checkout #customer_details {
  flex: 1 1 460px;
}

body.woocommerce-checkout #order_review,
body.woocommerce-checkout .woocommerce-checkout-review-order {
  flex: 1 1 380px;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--web-line, #dedbd5);
  border-radius: 12px;
  padding: 28px;
}

body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3,
body.woocommerce-checkout #order_review_heading {
  margin: 0 0 18px;
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 16px;
  color: var(--web-ink, #11100f);
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--web-line, #dedbd5);
  font-size: 14px;
  text-align: left;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total th,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total td {
  border-bottom: none;
  padding-top: 16px;
  font-weight: 800;
  font-size: 17px;
  color: var(--web-ink, #11100f);
}

body.woocommerce-checkout ul.wc_payment_methods {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method {
  border: 1px solid var(--web-line, #dedbd5);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
}

body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method label {
  display: inline;
  margin: 0 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  color: var(--web-ink, #11100f);
}

body.woocommerce-checkout .payment_box {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--web-paper, #f7f5f1);
  border-radius: 6px;
  font-size: 13px;
  color: var(--web-muted, #66615a);
}

body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin: 4px 0 18px;
}

body.woocommerce-checkout .woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--web-muted, #66615a);
  cursor: pointer;
}

body.woocommerce-checkout .woocommerce-form__input-checkbox {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--web-red, #ff3818);
  flex-shrink: 0;
}

body.woocommerce-checkout .woocommerce-terms-and-conditions-link {
  color: var(--web-red, #ff3818);
}

body.woocommerce-checkout #place_order {
  width: 100%;
  font-size: 14px;
  padding: 16px;
}

/* ---- responsive ---- */

@media (max-width: 900px) {
  body.woocommerce-account .woocommerce {
    flex-direction: column;
  }
  body.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%;
  }
  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    flex-direction: row;
    flex-wrap: wrap;
  }
  body.woocommerce-account .woocommerce-Addresses {
    grid-template-columns: 1fr;
  }
  body.woocommerce-checkout form.woocommerce-checkout {
    flex-direction: column;
  }
  body.woocommerce-checkout #order_review,
  body.woocommerce-checkout .woocommerce-checkout-review-order {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .ledron-wc-title {
    font-size: 26px;
  }
  body.woocommerce-account .woocommerce-MyAccount-content {
    padding: 22px;
  }
  body.woocommerce-cart .coupon {
    flex-direction: column;
    align-items: stretch;
  }
  body.woocommerce-cart .coupon .input-text {
    max-width: none;
  }
}
