.ao-field-label { display:block; margin:0 0 5px; font-weight:600; }
.ao-customer-type { border:0; margin:12px 0; padding:0; min-width:0; }
.ao-customer-type legend { border:0; font-size:inherit; margin:0 0 8px; }
.ao-customer-type label { display:inline-flex; align-items:center; gap:6px; margin-right:16px; }
.ao-customer-type input { width:auto; }
.ao-field-required { font-weight:600; }
.ao-checkout-form [aria-invalid="true"], .ao-customer-form [aria-invalid="true"] { border-color:#a12622; outline:1px solid #a12622; }
.ao-checkout-form input, .ao-checkout-form select, .ao-checkout-form textarea,
.ao-customer-form input, .ao-customer-form select, .ao-customer-form textarea { max-width:100%; box-sizing:border-box; }
.ao-checkout-form, .ao-customer-form { min-width:0; overflow-wrap:anywhere; }
.ao-checkout-form :focus-visible, .ao-customer-form :focus-visible, .ao-cart-items a:focus-visible { outline:3px solid #2765a0; outline-offset:3px; }
.ao-cart-empty { padding:24px 16px; text-align:center; }
.ao-cart-items img { max-width:100%; height:auto; }
@media (max-width:767px) {
  body:has(.ao-cart-page) { min-width:0 !important; width:auto !important; }
  .ao-cart-page { min-width:0; overflow-wrap:anywhere; }
  .ao-cart-page .container { width:100% !important; max-width:100%; box-sizing:border-box; }
  .ao-cart-page .row { margin-left:0; margin-right:0; }
  .ao-cart-page .cart-actions { display:flex; flex-wrap:wrap; gap:8px; white-space:normal; }
  .ao-cart-page .cart-actions > * { margin:0; }
  .ao-cart-page .btn { display:inline-flex; align-items:center; justify-content:center; min-height:44px; max-width:100%; padding:10px 14px; border:1px solid #d4dde6; border-radius:6px; white-space:normal; text-align:center; line-height:1.4; text-decoration:none; }
  .ao-cart-page input, .ao-cart-page button { max-width:100%; box-sizing:border-box; }
  .ao-cart-page input[type="submit"], .ao-cart-page button { min-height:44px; white-space:normal; }
  .ao-cart-page .table-responsive { overflow-x:visible; }
  .ao-cart-page a[href*="/koszyk/delete/"], .ao-cart-page a[href*="/koszyk/inc/"], .ao-cart-page a[href*="/koszyk/remove/"] { display:inline-flex; align-items:center; justify-content:center; min-width:44px !important; min-height:44px !important; }
  .ao-cart-page a[href^="/koszyk/clear"], .ao-cart-page a[href^="/koszyk/realizuj"], .ao-cart-page a[href="/"] { display:inline-flex; align-items:center; justify-content:center; min-height:44px !important; max-width:100%; box-sizing:border-box; padding:10px 14px; white-space:normal; text-align:center; }
  .ao-checkout-form .row, .ao-customer-form .row { margin-left:0; margin-right:0; }
  .ao-checkout-form button, .ao-customer-form button { max-width:100%; white-space:normal; }
  table.ao-cart-items { display:block; width:100% !important; min-width:0 !important; table-layout:auto; }
  .ao-cart-items thead { display:none; }
  .ao-cart-items .ao-cart-heading { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
  .ao-cart-items tbody { display:block; width:100%; }
  .ao-cart-items tr { display:block; margin:0 0 16px; padding:12px; border:1px solid #dce2e6; border-radius:8px; background:#fff; }
  .ao-cart-items td { display:flex; justify-content:space-between; align-items:center; gap:12px; width:auto !important; min-width:0; padding:8px 0 !important; margin:0 !important; float:none !important; border:0; text-align:right; white-space:normal; overflow-wrap:anywhere; }
  body table.ao-cart-items td[data-label]::before { content:attr(data-label) !important; flex:0 0 auto; font-weight:600; text-align:left; }
  .ao-cart-items td img { width:auto; max-width:100px; max-height:100px; object-fit:contain; }
  .ao-cart-items td[data-label="Zdjęcie"] > a { flex:0 0 88px; width:88px !important; max-width:88px; }
  .ao-cart-items td[data-label="Zdjęcie"] img { width:88px; max-width:100%; }
  .ao-cart-items td h3, .ao-cart-items td h4, .ao-cart-items td h5, .ao-cart-items td h6 { margin:0; font-size:16px; }
  .ao-cart-items .quantity_container { display:flex; align-items:center; justify-content:flex-end; width:auto; gap:5px; }
  .ao-cart-items td[data-label="Ilość"] input { width:52px !important; flex:0 0 52px; min-width:0; max-width:52px; height:44px; margin:0; box-sizing:border-box; text-align:center; }
  .ao-cart-items td a { min-width:0; max-width:100%; white-space:normal !important; overflow-wrap:anywhere; }
  .ao-cart-items td.actions-crt > div { display:flex; flex-wrap:wrap; width:100%; gap:8px; }
  .ao-cart-items td.actions-crt > div > div { float:none; width:100%; padding:0; }
  .ao-cart-items td.actions-crt a, .ao-cart-items td.actions-crt button { display:flex; justify-content:center; width:100%; }
  .ao-cart-items a[href*="/koszyk/delete/"], .ao-cart-items a[href*="/koszyk/inc/"], .ao-cart-items a[href*="/koszyk/remove/"] { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; }
  .ao-cart-items a[href*="/koszyk/delete/"]::before { content:"−"; font:700 20px/1 Arial,sans-serif; }
  .ao-cart-items a[href*="/koszyk/inc/"]::before { content:"+"; font:700 20px/1 Arial,sans-serif; }
  .ao-cart-items a[href*="/koszyk/remove/"]::before { content:"×"; font:700 20px/1 Arial,sans-serif; }
  .ao-cart-items a[href*="/koszyk/delete/"] i, .ao-cart-items a[href*="/koszyk/inc/"] i, .ao-cart-items a[href*="/koszyk/remove/"] i,
  .ao-cart-items a[href*="/koszyk/delete/"] .icon, .ao-cart-items a[href*="/koszyk/inc/"] .icon { display:none; }
  .ao-checkout-form table.register_tab, .ao-customer-form table { display:block; width:100% !important; min-width:0 !important; }
  .ao-checkout-form table.register_tab tbody, .ao-customer-form table tbody { display:block; }
  .ao-checkout-form table.register_tab tr, .ao-customer-form table tr { display:block; }
  .ao-checkout-form table.register_tab td, .ao-customer-form table td { display:block; width:100% !important; box-sizing:border-box; text-align:left; }
  .ao-checkout-form input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
  .ao-customer-form input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
  .ao-checkout-form select, .ao-customer-form select, .ao-checkout-form textarea, .ao-customer-form textarea { min-height:44px; }
  .ao-checkout-form ul { padding-left:18px; }
  .ao-checkout-form textarea, .ao-customer-form textarea { width:100%; margin-left:0; margin-right:0; }
}
