/*
 * AMUI v1.9.0
 * Stabilniejszy, bardziej intencyjny koszyk + checkout marketplace.
 */

:root {
  --amui-v190-orange: var(--amui-accent, #ff5a00);
  --amui-v190-orange-dark: var(--amui-accent-dark, #e04f00);
  --amui-v190-orange-soft: var(--amui-accent-soft, #fff3eb);
  --amui-v190-text: var(--amui-text, #1f2937);
  --amui-v190-muted: var(--amui-muted, #64748b);
  --amui-v190-line: var(--amui-line, #e5e7eb);
  --amui-v190-surface: var(--amui-surface, #ffffff);
  --amui-v190-green: #078a35;
  --amui-v190-shadow: 0 18px 54px rgba(15, 23, 42, .10);
  --amui-v190-soft-shadow: 0 10px 30px rgba(15, 23, 42, .065);
}

/* =========================================================
   BFCache / rehydratacja – podczas odtwarzania nie pokazuj półstanu
   ========================================================= */
html.amui-bfcache-restoring body {
  opacity: .01;
}

html.amui-bfcache-restoring::before {
  content: "Odświeżanie widoku sklepu…";
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--amui-v190-text);
  font: 900 15px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================================================
   KOSZYK – bardziej jasny układ zakupowy
   ========================================================= */
body.woocommerce-cart .entry-content > .woocommerce,
body.woocommerce-cart .ast-woocommerce-container > .woocommerce,
body.woocommerce-cart #primary .woocommerce {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 410px) !important;
  gap: 22px !important;
  align-items: start !important;
}

body.woocommerce-cart .woocommerce-notices-wrapper,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .return-to-shop,
body.woocommerce-cart .cart-empty,
body.woocommerce-cart .amui-cart-hero {
  grid-column: 1 / -1 !important;
}

body.woocommerce-cart .amui-cart-hero {
  border-radius: 26px !important;
  border: 1px solid rgba(255, 90, 0, .16) !important;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 90, 0, .12), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #fff8f2 58%, #ffffff 100%) !important;
  box-shadow: var(--amui-v190-soft-shadow) !important;
}

body.woocommerce-cart .amui-cart-hero__title,
body.woocommerce-checkout .amui-checkout-hero__title {
  margin: 0 !important;
  color: var(--amui-v190-text) !important;
  font-size: clamp(25px, 3vw, 38px) !important;
  line-height: 1.05 !important;
  letter-spacing: -.04em !important;
}

body.woocommerce-cart .amui-cart-hero__dot,
body.woocommerce-checkout .amui-checkout-hero__step span {
  background: var(--amui-v190-orange) !important;
  color: #ffffff !important;
  border-color: var(--amui-v190-orange) !important;
}

body.woocommerce-cart form.woocommerce-cart-form {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: clamp(14px, 2vw, 20px) !important;
  border: 1px solid var(--amui-v190-line) !important;
  border-radius: 26px !important;
  background: #ffffff !important;
  box-shadow: var(--amui-v190-soft-shadow) !important;
  overflow: visible !important;
}

.amui-cart-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 18px;
  background: #f8fafc;
}

.amui-cart-list-head__eyebrow {
  display: block;
  margin-bottom: 2px;
  color: var(--amui-v190-orange-dark);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.amui-cart-list-head strong {
  display: block;
  color: var(--amui-v190-text);
  font-size: 18px;
  line-height: 1.15;
}

.amui-cart-list-head__hint {
  color: var(--amui-v190-muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

body.woocommerce-cart table.shop_table.cart,
body.woocommerce-cart table.shop_table.cart tbody {
  display: block !important;
  width: 100% !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

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

body.woocommerce-cart table.shop_table.cart tbody tr.cart_item {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr) minmax(86px, 110px) minmax(128px, 150px) minmax(100px, 130px) 38px !important;
  gap: 14px !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 0 12px !important;
  padding: 14px !important;
  border: 1px solid rgba(226, 232, 240, .98) !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05) !important;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

body.woocommerce-cart table.shop_table.cart tbody tr.cart_item:hover {
  border-color: rgba(255, 90, 0, .28) !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08) !important;
}

body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td {
  display: block !important;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: left !important;
  vertical-align: middle !important;
}

body.woocommerce-cart table.shop_table.cart .product-thumbnail { grid-column: 1 !important; grid-row: 1 / span 2 !important; }
body.woocommerce-cart table.shop_table.cart .product-name { grid-column: 2 !important; grid-row: 1 / span 2 !important; }
body.woocommerce-cart table.shop_table.cart .product-price { grid-column: 3 !important; }
body.woocommerce-cart table.shop_table.cart .product-quantity { grid-column: 4 !important; }
body.woocommerce-cart table.shop_table.cart .product-subtotal { grid-column: 5 !important; }
body.woocommerce-cart table.shop_table.cart .product-remove { grid-column: 6 !important; justify-self: end !important; }

body.woocommerce-cart table.cart img,
body.woocommerce-cart table.shop_table.cart .product-thumbnail img {
  width: 104px !important;
  height: 104px !important;
  max-width: 104px !important;
  object-fit: contain !important;
  padding: 10px !important;
  border: 1px solid rgba(226, 232, 240, .95) !important;
  border-radius: 18px !important;
  background: #f8fafc !important;
}

body.woocommerce-cart table.shop_table.cart .product-name a {
  display: block !important;
  max-width: 100% !important;
  color: var(--amui-v190-text) !important;
  font-size: 16px !important;
  line-height: 1.32 !important;
  font-weight: 950 !important;
  letter-spacing: -.02em !important;
  text-decoration: none !important;
}

body.woocommerce-cart table.shop_table.cart .product-name::after {
  content: "Dostawa i płatność wybierzesz w kolejnym kroku";
  display: inline-flex;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
}

body.woocommerce-cart table.shop_table.cart .product-price::before,
body.woocommerce-cart table.shop_table.cart .product-quantity::before,
body.woocommerce-cart table.shop_table.cart .product-subtotal::before {
  display: block !important;
  margin-bottom: 5px !important;
  color: var(--amui-v190-muted) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

body.woocommerce-cart table.shop_table.cart .product-price::before { content: "Cena" !important; }
body.woocommerce-cart table.shop_table.cart .product-quantity::before { content: "Ilość" !important; }
body.woocommerce-cart table.shop_table.cart .product-subtotal::before { content: "Razem" !important; }

body.woocommerce-cart table.shop_table.cart .product-price,
body.woocommerce-cart table.shop_table.cart .product-subtotal {
  color: var(--amui-v190-text) !important;
  font-size: 15px !important;
  font-weight: 950 !important;
}

body.woocommerce-cart table.shop_table.cart .product-subtotal {
  color: var(--amui-v190-orange-dark) !important;
  font-size: 17px !important;
}

body.woocommerce-cart table.shop_table.cart .quantity {
  display: inline-flex !important;
  border: 1px solid rgba(226, 232, 240, .95) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

body.woocommerce-cart table.shop_table.cart .quantity .qty {
  width: 52px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  background: #ffffff !important;
  text-align: center !important;
  font-weight: 900 !important;
}

body.woocommerce-cart table.shop_table.cart .amui-qty-btn {
  width: 38px !important;
  min-height: 42px !important;
  height: 42px !important;
}

body.woocommerce-cart table.shop_table.cart .product-remove a.remove {
  width: 36px !important;
  height: 36px !important;
  border: 1px solid rgba(226, 232, 240, .95) !important;
  background: #ffffff !important;
}

body.woocommerce-cart table.shop_table.cart td.actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  margin-top: 14px !important;
  padding: 14px !important;
  border: 1px dashed rgba(255, 90, 0, .24) !important;
  border-radius: 20px !important;
  background: #fff8f2 !important;
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon {
  display: grid !important;
  grid-template-columns: auto minmax(130px, 1fr) auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon::before {
  align-self: center !important;
  content: "Masz kod rabatowy?" !important;
  color: var(--amui-v190-orange-dark) !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text {
  min-height: 46px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
}

body.woocommerce-cart table.shop_table.cart td.actions .button,
body.woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"] {
  min-height: 46px !important;
  border-radius: 999px !important;
  font-weight: 950 !important;
}

body.woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"] {
  justify-self: end !important;
  margin: 0 !important;
  float: none !important;
  background: #111827 !important;
  color: #ffffff !important;
}

.amui-cart-next-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.amui-cart-next-steps__item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 18px;
  background: #f8fafc;
}

.amui-cart-next-steps__item > span {
  grid-row: 1 / span 2;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--amui-v190-orange);
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
}

.amui-cart-next-steps__item strong {
  color: var(--amui-v190-text);
  font-size: 13px;
  line-height: 1.2;
}

.amui-cart-next-steps__item small {
  color: var(--amui-v190-muted);
  font-size: 12px;
  line-height: 1.35;
}

body.woocommerce-cart .amui-cart-side-intro {
  grid-column: 2 !important;
  margin: 0 0 -10px !important;
  padding: 16px 18px !important;
  border: 1px solid rgba(255, 90, 0, .18) !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, #fff8f2 0%, #ffffff 100%) !important;
  box-shadow: var(--amui-v190-soft-shadow) !important;
}

.amui-cart-side-intro span {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--amui-v190-orange-dark);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.amui-cart-side-intro strong,
.amui-cart-side-intro small {
  display: block;
}

.amui-cart-side-intro strong {
  color: var(--amui-v190-text);
  font-size: 19px;
  letter-spacing: -.02em;
}

.amui-cart-side-intro small {
  margin-top: 3px;
  color: var(--amui-v190-muted);
  font-size: 13px;
  line-height: 1.45;
}

body.woocommerce-cart .cart-collaterals {
  grid-column: 2 !important;
  position: sticky !important;
  top: 96px !important;
  width: auto !important;
  margin: 0 !important;
}

body.woocommerce-cart .cart_totals {
  border: 1px solid rgba(255, 90, 0, .18) !important;
  border-radius: 26px !important;
  background: #ffffff !important;
  box-shadow: var(--amui-v190-shadow) !important;
}

body.woocommerce-cart .cart_totals h2 {
  font-size: 23px !important;
  letter-spacing: -.03em !important;
}

body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
  font-size: 14px !important;
}

body.woocommerce-cart .cart_totals .order-total strong,
body.woocommerce-cart .cart_totals .order-total .amount {
  color: var(--amui-v190-text) !important;
  font-size: 28px !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  min-height: 62px !important;
  border-radius: 18px !important;
  background: var(--amui-v190-orange) !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  letter-spacing: -.01em !important;
  box-shadow: 0 18px 36px rgba(255, 90, 0, .30) !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--amui-v190-orange-dark) !important;
  transform: translateY(-1px);
}

/* =========================================================
   CHECKOUT – czytelna finalizacja zamówienia
   ========================================================= */
body.woocommerce-checkout:not(.woocommerce-order-received) .entry-content > .woocommerce,
body.woocommerce-checkout:not(.woocommerce-order-received) .ast-woocommerce-container > .woocommerce,
body.woocommerce-checkout:not(.woocommerce-order-received) #primary .woocommerce {
  display: block !important;
}

.amui-checkout-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 22px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 90, 0, .16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 90, 0, .12), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #fff8f2 58%, #ffffff 100%);
  box-shadow: var(--amui-v190-soft-shadow);
}

.amui-checkout-hero__eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--amui-v190-orange-soft);
  color: var(--amui-v190-orange-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.amui-checkout-hero__text {
  max-width: 680px;
  margin: 9px 0 0;
  color: var(--amui-v190-muted);
  font-size: 14px;
  line-height: 1.55;
}

.amui-checkout-hero__steps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amui-v190-muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.amui-checkout-hero__step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.amui-checkout-hero__step span {
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
}

.amui-checkout-hero__step:not(.is-done):not(.is-current) span {
  background: #ffffff !important;
  color: var(--amui-v190-muted) !important;
  border: 1px solid var(--amui-v190-line) !important;
}

body.woocommerce-checkout form.checkout.woocommerce-checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 430px) !important;
  gap: 24px !important;
  align-items: start !important;
}

body.woocommerce-checkout #customer_details {
  grid-column: 1 !important;
  display: grid !important;
  gap: 18px !important;
  min-width: 0 !important;
}

.amui-checkout-section-intro {
  grid-column: 1 !important;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 18px;
  background: #f8fafc;
}

.amui-checkout-section-intro__icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--amui-v190-orange-soft);
  color: var(--amui-v190-orange-dark);
  font-size: 19px;
}

.amui-checkout-section-intro strong,
.amui-checkout-section-intro small {
  display: block;
}

.amui-checkout-section-intro strong {
  color: var(--amui-v190-text);
  font-size: 16px;
  font-weight: 950;
}

.amui-checkout-section-intro small {
  margin-top: 2px;
  color: var(--amui-v190-muted);
  font-size: 13px;
  line-height: 1.35;
}

body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2,
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(18px, 2.4vw, 24px) !important;
  border: 1px solid var(--amui-v190-line) !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  box-shadow: var(--amui-v190-soft-shadow) !important;
}

body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3,
body.woocommerce-checkout .woocommerce-additional-fields h3,
body.woocommerce-checkout #order_review_heading {
  margin: 0 0 16px !important;
  color: var(--amui-v190-text) !important;
  font-size: 22px !important;
  line-height: 1.14 !important;
  font-weight: 950 !important;
  letter-spacing: -.025em !important;
}

body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout #order_review {
  grid-column: 2 !important;
}

body.woocommerce-checkout #order_review_heading {
  position: sticky !important;
  top: 92px !important;
  z-index: 2 !important;
  margin: 0 0 -10px !important;
  padding: 16px 18px 0 !important;
  border: 1px solid rgba(255, 90, 0, .18) !important;
  border-bottom: 0 !important;
  border-radius: 24px 24px 0 0 !important;
  background: #ffffff !important;
  box-shadow: 0 -2px 0 #ffffff inset !important;
}

body.woocommerce-checkout #order_review {
  position: sticky !important;
  top: 146px !important;
  padding: 18px !important;
  border: 1px solid rgba(255, 90, 0, .18) !important;
  border-radius: 0 0 24px 24px !important;
  background: #ffffff !important;
  box-shadow: var(--amui-v190-shadow) !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table {
  border: 0 !important;
  border-collapse: collapse !important;
  margin: 0 0 16px !important;
  background: transparent !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td {
  padding: 12px 0 !important;
  border-width: 0 0 1px 0 !important;
  border-color: rgba(226, 232, 240, .95) !important;
  background: transparent !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name {
  color: var(--amui-v190-text) !important;
  font-weight: 850 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
  text-align: right !important;
  font-weight: 950 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total .amount {
  color: var(--amui-v190-text) !important;
  font-size: 26px !important;
  font-weight: 950 !important;
}

body.woocommerce-checkout #payment {
  margin-top: 12px !important;
  padding: 14px !important;
  border: 1px solid rgba(226, 232, 240, .95) !important;
  border-radius: 20px !important;
  background: #f8fafc !important;
}

body.woocommerce-checkout #payment ul.payment_methods {
  padding: 0 0 12px !important;
  border-bottom: 1px solid rgba(226, 232, 240, .95) !important;
}

body.woocommerce-checkout #payment div.payment_box {
  border-radius: 16px !important;
  background: #ffffff !important;
  color: #475569 !important;
}

body.woocommerce-checkout #payment #place_order {
  min-height: 62px !important;
  border-radius: 18px !important;
  background: var(--amui-v190-orange) !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  box-shadow: 0 18px 36px rgba(255, 90, 0, .30) !important;
}

body.woocommerce-checkout #payment #place_order:hover {
  background: var(--amui-v190-orange-dark) !important;
}

.amui-checkout-confidence {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.amui-checkout-confidence__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border-radius: 16px;
  background: #f8fafc;
  color: var(--amui-v190-muted);
  font-size: 12px;
  line-height: 1.35;
}

.amui-checkout-confidence__item > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--amui-v190-orange-soft);
}

.amui-checkout-confidence__item strong {
  display: block;
  color: var(--amui-v190-text);
  font-size: 13px;
  font-weight: 950;
}

body.woocommerce-checkout form.checkout .form-row label {
  color: var(--amui-v190-text) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

body.woocommerce-checkout form.checkout .form-row input.input-text,
body.woocommerce-checkout form.checkout .form-row textarea,
body.woocommerce-checkout form.checkout .form-row select,
body.woocommerce-checkout .select2-container .select2-selection--single {
  min-height: 48px !important;
  border-radius: 14px !important;
  border-color: rgba(203, 213, 225, .95) !important;
  background: #ffffff !important;
}

body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 48px !important;
}

body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow {
  height: 48px !important;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info {
  border-radius: 18px !important;
  border-color: rgba(255, 90, 0, .18) !important;
  background: #fff8f2 !important;
  color: var(--amui-v190-text) !important;
}

.amui-checkout-mobile-bottom {
  display: none;
}

/* /my-account/ – dodatkowa stabilizacja adresów po zgłoszeniu błędów */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address {
  min-height: 0 !important;
  overflow: hidden !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title,
body.woocommerce-account .woocommerce-MyAccount-content header.woocommerce-Address-title.title {
  min-height: 46px !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address address {
  min-height: 92px !important;
}

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */
@media (max-width: 1160px) {
  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item {
    grid-template-columns: 96px minmax(0, 1fr) minmax(110px, 140px) minmax(110px, 130px) 38px !important;
  }

  body.woocommerce-cart table.shop_table.cart .product-thumbnail { grid-row: 1 / span 3 !important; }
  body.woocommerce-cart table.shop_table.cart .product-name { grid-column: 2 / span 2 !important; }
  body.woocommerce-cart table.shop_table.cart .product-price { grid-column: 2 !important; grid-row: 2 !important; }
  body.woocommerce-cart table.shop_table.cart .product-quantity { grid-column: 3 !important; grid-row: 2 !important; }
  body.woocommerce-cart table.shop_table.cart .product-subtotal { grid-column: 4 !important; grid-row: 2 !important; }
  body.woocommerce-cart table.shop_table.cart .product-remove { grid-column: 5 !important; grid-row: 1 !important; }

  body.woocommerce-cart table.cart img,
  body.woocommerce-cart table.shop_table.cart .product-thumbnail img {
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
  }
}

@media (max-width: 981px) {
  body.woocommerce-cart .entry-content > .woocommerce,
  body.woocommerce-cart .ast-woocommerce-container > .woocommerce,
  body.woocommerce-cart #primary .woocommerce,
  body.woocommerce-checkout form.checkout.woocommerce-checkout {
    display: block !important;
  }

  body.woocommerce-cart .amui-cart-side-intro,
  body.woocommerce-cart .cart-collaterals,
  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout #order_review {
    position: relative !important;
    top: auto !important;
    grid-column: auto !important;
    margin-top: 16px !important;
  }

  body.woocommerce-checkout #order_review_heading {
    margin-bottom: -16px !important;
  }

  .amui-checkout-hero {
    grid-template-columns: 1fr;
  }

  .amui-checkout-hero__steps {
    flex-wrap: wrap;
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .amui-cart-list-head,
  .amui-checkout-section-intro {
    align-items: flex-start;
  }

  .amui-cart-list-head {
    display: grid;
  }

  .amui-cart-list-head__hint {
    text-align: left;
  }

  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item {
    grid-template-columns: 86px minmax(0, 1fr) 36px !important;
    gap: 8px 12px !important;
    padding: 12px !important;
  }

  body.woocommerce-cart table.shop_table.cart .product-thumbnail {
    grid-column: 1 !important;
    grid-row: 1 / span 4 !important;
  }

  body.woocommerce-cart table.shop_table.cart .product-name {
    grid-column: 2 !important;
    grid-row: 1 !important;
    padding-right: 4px !important;
  }

  body.woocommerce-cart table.shop_table.cart .product-remove {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  body.woocommerce-cart table.shop_table.cart .product-price,
  body.woocommerce-cart table.shop_table.cart .product-quantity,
  body.woocommerce-cart table.shop_table.cart .product-subtotal {
    grid-column: 2 / span 2 !important;
  }

  body.woocommerce-cart table.shop_table.cart .product-price { grid-row: 2 !important; }
  body.woocommerce-cart table.shop_table.cart .product-quantity { grid-row: 3 !important; }
  body.woocommerce-cart table.shop_table.cart .product-subtotal { grid-row: 4 !important; }

  body.woocommerce-cart table.cart img,
  body.woocommerce-cart table.shop_table.cart .product-thumbnail img {
    width: 86px !important;
    height: 86px !important;
    max-width: 86px !important;
  }

  body.woocommerce-cart table.shop_table.cart .product-name a {
    font-size: 14px !important;
  }

  body.woocommerce-cart table.shop_table.cart .product-name::after {
    display: none !important;
  }

  body.woocommerce-cart table.shop_table.cart td.actions {
    grid-template-columns: 1fr !important;
  }

  body.woocommerce-cart table.shop_table.cart td.actions .coupon {
    grid-template-columns: 1fr !important;
  }

  body.woocommerce-cart table.shop_table.cart td.actions button,
  body.woocommerce-cart table.shop_table.cart td.actions .button,
  body.woocommerce-cart table.shop_table.cart td.actions input {
    width: 100% !important;
  }

  .amui-cart-next-steps {
    grid-template-columns: 1fr !important;
  }

  body.woocommerce-checkout #customer_details .col-1,
  body.woocommerce-checkout #customer_details .col-2,
  body.woocommerce-checkout .woocommerce-billing-fields,
  body.woocommerce-checkout .woocommerce-shipping-fields,
  body.woocommerce-checkout .woocommerce-additional-fields,
  body.woocommerce-checkout #order_review {
    border-radius: 20px !important;
  }

  body.woocommerce-checkout #order_review_heading {
    border-radius: 20px 20px 0 0 !important;
  }
}

@media (max-width: 544px) {
  body.woocommerce-cart form.woocommerce-cart-form,
  body.woocommerce-cart .cart_totals,
  body.woocommerce-cart .amui-cart-hero,
  .amui-checkout-hero {
    border-radius: 20px !important;
  }

  body.woocommerce-cart .cart_totals .order-total strong,
  body.woocommerce-cart .cart_totals .order-total .amount,
  body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total .amount {
    font-size: 24px !important;
  }

  body.woocommerce-checkout #payment #place_order,
  body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    min-height: 58px !important;
    font-size: 16px !important;
  }
}

/* Doprecyzowanie wiersza akcji koszyka przy niestandardowym układzie tabeli. */
body.woocommerce-cart table.shop_table.cart tbody tr:not(.cart_item) {
  display: block !important;
  width: 100% !important;
}

body.woocommerce-cart table.shop_table.cart tbody tr:not(.cart_item) td.actions {
  width: 100% !important;
}
