/* Spójne przyciski sklepu i kolejnych kroków zamówienia. */
:root { --shop-button-text: #172b1b; --shop-button-color: #8c9d82; }

.edu-btn,
.shop-action,
#kart .proceed-to-checkout,
#kart .proceed-to-del,
#checkout.checkout_init a.no_login,
#checkout.checkout_data input[type="submit"],
#checkout.checkout_summary .actions a {
  box-sizing: border-box;
  min-height: 48px !important;
  height: auto !important;
  padding: 12px 24px !important;
  border: 1px solid var(--shop-button-color) !important;
  border-radius: 5px !important;
  background: var(--shop-button-color) !important;
  color: var(--shop-button-text) !important;
  font-family: var(--font-primary, Arial, sans-serif);
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 22px !important;
  text-align: center;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer;
}
#checkout.checkout_data input[type="submit"] { width: auto !important; }

.edu-btn:hover, .edu-btn:active,
.shop-action:hover, .shop-action:active,
#kart .proceed-to-checkout:hover, #kart .proceed-to-checkout:active,
#kart .proceed-to-del:hover, #kart .proceed-to-del:active,
#checkout.checkout_init a.no_login:hover, #checkout.checkout_init a.no_login:active,
#checkout.checkout_data input[type="submit"]:hover, #checkout.checkout_data input[type="submit"]:active,
#checkout.checkout_summary .actions a:hover, #checkout.checkout_summary .actions a:active {
  background: var(--shop-button-color) !important;
  color: var(--shop-button-text) !important;
  border-color: var(--shop-button-color) !important;
  box-shadow: none !important;
  transform: none !important;
}
.edu-btn:focus-visible, .shop-action:focus-visible,
#kart a:focus-visible, #kart input[type="submit"]:focus-visible,
#checkout .actions a:focus-visible, #checkout input[type="submit"]:focus-visible,
#checkout.checkout_init a.no_login:focus-visible,
.header-account-icon:focus-visible, .header-cart-icon:focus-visible {
  outline: 3px solid #222;
  outline-offset: 3px;
}
.edu-btn:disabled { opacity: .6; cursor: not-allowed; }

#kart .cart-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 16px;
}
#kart .cart-secondary-actions .continue-shopping,
#kart .cart-secondary-actions .continue-shopping:hover,
#kart .cart-secondary-actions .continue-shopping:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid #526a48;
  border-radius: 5px;
  background: #fff;
  color: #526a48;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  text-decoration: none;
  box-shadow: none;
  transform: none;
}
#kart .new-discount-wrapper .edu-btn { margin: 8px 0 0 8px; }
#checkout.checkout_summary .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
#checkout.checkout_summary .actions .prev,
#checkout.checkout_summary .actions .next { float: none; }
#checkout.checkout_summary .actions a { display: inline-flex; align-items: center; justify-content: center; }

.header-right .quote-user { gap: 16px; }
.header-right .header-account-icon,
.header-right .header-cart-icon { display: inline-flex; align-items: center; gap: 5px; line-height: 1; }
.header-right .header-account-icon i,
.header-right .header-cart-icon i { font-size: 27px; line-height: 1; }
.header-right .header-account-text { white-space: nowrap; }
.header-right .hamberger-button { margin-left: 0 !important; }
@media (max-width: 767px) {
  .header-right .quote-user { flex-wrap: wrap; justify-content: flex-end !important; gap: 8px; }
  .header-right .header-account-icon,
  .header-right .header-cart-icon { min-width: 44px; min-height: 44px; justify-content: center; }
  .header-right .header-account-icon { order: 0; }
  .header-right .header-cart-icon { order: 1; }
  .header-right .hamberger-button { order: 2; }
  .header-right .header-account-text {
    order: 3;
    width: 100%;
    font-size: 12px;
    line-height: 1.3;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  #checkout.checkout_summary .actions a { width: 100%; }
  #checkout.checkout_summary .actions .prev,
  #checkout.checkout_summary .actions .next { width: 100%; }
}

/* Czytelne karty i formularze zakupowe na wąskich ekranach. */
.checkout-choices { display: flex; flex-wrap: wrap; gap: 16px; }
.checkout-choice {
  flex: 1 1 240px;
  min-width: 0;
  padding: 20px;
  border: 1px solid #ececec;
  border-radius: 5px;
}
.checkout-choice h3 { font-size: 20px; line-height: 1.35; margin: 0 0 15px; }
.checkout-choice p:last-child { margin-bottom: 0; }
.checkout-choice a { max-width: 100%; white-space: normal; }

@media (max-width: 767px) {
  #postep { width: 100%; table-layout: fixed; margin-top: 40px; }
  #postep td { width: 25%; padding: 4px; font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; vertical-align: top; }
  #postep td img { max-width: 28px; height: auto; }
  #postep td br + br { display: none; }

  #kart .checkout-table, #kart .checkout-table tbody,
  #kart .checkout-table tr { display: block; width: 100%; }
  #kart .checkout-table { border: 0; }
  #kart .checkout-table thead { display: none; }
  #kart .checkout-table tbody tr { border: 1px solid #dedede; border-radius: 5px; margin-bottom: 12px; overflow: hidden; }
  #kart .checkout-table tbody td.product-desc,
  #kart .checkout-table tbody td.unit-price,
  #kart .checkout-table tbody td.qty,
  #kart .checkout-table tbody td.custom-table-total,
  #kart .checkout-table tbody td.remove { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border: 0; border-bottom: 1px solid #eee; text-align: right; }
  #kart .checkout-table tbody td.product-desc { display: block; text-align: left; background: #f8f8f8; overflow-wrap: anywhere; }
  #kart .checkout-table tbody td.remove { border-bottom: 0; justify-content: flex-end; }
  #kart .checkout-table tbody td[data-label]::before { content: attr(data-label); font-weight: 700; text-align: left; }
  #kart .checkout-table tbody td.qty input { max-width: 64px; }
  #kart .checkout-table tbody td.remove input { margin: 0; }

  #kart .shipment-and-payment-table, #kart .shipment-and-payment-table tbody,
  #kart .shipment-and-payment-table tr { display: block; width: 100%; }
  #kart .shipment-and-payment-table td.shipment,
  #kart .shipment-and-payment-table td.payment { width: 100%; padding: 8px 15px; }
  #kart .shipment-and-payment-table td.shipment-country { display: block; }
  #kart .shipment-and-payment-table td.shipment-type[style*="display"]:not([style*="display: none"]):not([style*="display:none"]),
  #kart .shipment-and-payment-table td.payment[style*="display"]:not([style*="display: none"]):not([style*="display:none"]) { display: block !important; }
  #kart .shipment-and-payment-table input[type="radio"],
  #checkout input[type="checkbox"] { width: 20px; height: 20px; }
  #kart .shipment-and-payment-table label { max-width: 100%; overflow-wrap: anywhere; }
  #kart .shipment-and-payment-table select { max-width: 100%; }

  #kart .summary-table, #kart .summary-table > tbody, #kart .summary-table > tbody > tr,
  #kart .summary-table-2, #kart .summary-table-2 > tbody, #kart .summary-table-2 > tbody > tr { display: block; width: 100%; }
  #kart .summary-table > tbody > tr > td.empty-column,
  #kart .summary-table-2 > tbody > tr > td.empty-column { display: none; }
  #kart .summary-table > tbody > tr > td.discount,
  #kart .summary-table > tbody > tr > td.total,
  #kart .summary-table-2 > tbody > tr > td.filled { display: block; width: 100%; }
  #kart .summary-table > tbody > tr > td.discount { padding: 15px; }
  #kart .summary-table td.discount span { margin-right: 0; }
  #kart .new-discount-wrapper input[type="text"] { width: 100%; max-width: 100%; }
  #kart .new-discount-wrapper .edu-btn { margin: 8px 0 0; }
  #kart .cart-secondary-actions a { flex: 1 1 180px; }
  #kart .proceed-to-checkout { width: 100%; }

  #checkout.checkout_data table.wrapper,
  #checkout.checkout_data table.wrapper > tbody,
  #checkout.checkout_data table.wrapper > tbody > tr,
  #checkout.checkout_data table.wrapper td.shipment { display: block; width: 100%; }
  #checkout.checkout_data table.wrapper td.shipment table,
  #checkout.checkout_data table.wrapper td.shipment table tbody,
  #checkout.checkout_data table.wrapper td.shipment table tr,
  #checkout.checkout_data table.wrapper td.shipment table td { display: block; width: 100%; }
  #checkout.checkout_data table.wrapper input[type="text"] { width: 100%; max-width: 100%; margin-left: 0; }
  #checkout.checkout_data .next { padding-right: 0; }
  #checkout.checkout_data input[type="submit"] { width: 100% !important; margin-left: 0; }
  #checkout.checkout_data .input-wrapper { overflow-wrap: anywhere; }

  #checkout.checkout_summary table.products,
  #checkout.checkout_summary table.products tbody,
  #checkout.checkout_summary table.products tr { display: block; width: 100%; }
  #checkout.checkout_summary table.products { border: 0; }
  #checkout.checkout_summary table.products thead { display: none; }
  #checkout.checkout_summary table.products tbody tr { border: 1px solid #dedede; border-radius: 5px; margin-bottom: 12px; overflow: hidden; }
  #checkout.checkout_summary table.products tbody td { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 12px; border: 0; text-align: right; }
  #checkout.checkout_summary table.products tbody td:first-child { display: block; text-align: left; overflow-wrap: anywhere; }
  #checkout.checkout_summary table.products tbody td[data-label]::before { content: attr(data-label); font-weight: 700; text-align: left; }
  #checkout.checkout_summary .summary_data > div + div { border-left: 0; }
  #checkout.checkout_summary .actions::after { display: none; }
}
@media (max-width: 359px) {
  .edu-header > .container > .row > .col-6:first-child { width: 45%; }
  .edu-header > .container > .row > .col-6:last-child { width: 55%; }
  .header-right .quote-user { gap: 4px; }
}
