/* Real text inside each swatch keeps the plugin's radio and variation events.
   If the enhancement does not run, the original image remains visible. */
.spesarro-ux-header-shipping { color: #f6f1eb; text-decoration: underline; text-underline-offset: 3px; }
.spesarro-ux-shipping-offer { font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.spesarro-ux-shipping-offer a { text-decoration: underline; text-underline-offset: 3px; }

/* Czytelny licznik koszyka w obu wersjach nagłówka. */
#masthead .header-cart-button .header-cart-total,
#masthead .header-cart-button:hover .header-cart-total,
#masthead .header-cart-button:focus-visible .header-cart-total {
  align-items: center;
  background: #604a2b;
  border-radius: 999px;
  color: #fffdf9;
  display: inline-flex;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  line-height: 1;
  min-width: 28px;
  padding: 0 5px;
  width: auto;
}
.spesarro-native-product-page li.variable-item[data-attribute_name="attribute_pa_waga"] {
  align-items: center;
  display: inline-flex !important;
  justify-content: center;
  min-height: 48px !important;
  min-width: 76px !important;
  padding: 8px 12px !important;
}
.spesarro-native-product-page li.variable-item.spesarro-ux-weight-ready .variable-item-contents {
  align-items:center;
  display:flex !important;
  height:100%;
  justify-content:center;
  width:100%;
}
.spesarro-native-product-page li.variable-item.spesarro-ux-weight-ready .variable-item-image {display:none !important;}
.spesarro-native-product-page li.variable-item .spesarro-ux-weight-label {
  color: var(--sp-ink);
  display:block;
  font: 600 15px/1.3 var(--sp-font-sans);
  text-transform: none;
}
.spesarro-native-product-page li.variable-item.disabled .spesarro-ux-weight-label {text-decoration:line-through;}
.spesarro-native-product-page li.variable-item[data-attribute_name="attribute_pa_waga"]:focus-visible {outline:2px solid var(--sp-ink);outline-offset:2px;}

/* Readable metadata, including links into category and tag pages. */
.spesarro-native-product-page .product_meta,
.spesarro-native-product-page .product_meta a {
  color:#45505c;
  font-size:14px;
  line-height:1.55;
}
.spesarro-native-product-page .product_meta .sku_wrapper,
.spesarro-native-product-page .product_meta .posted_in,
.spesarro-native-product-page .product_meta .tagged_as {font-size:14px !important;}
.spesarro-native-product-page .product_meta a:focus-visible {outline:2px solid currentColor;outline-offset:2px;}
.spesarro-ux-buy-shortcut {display:none;}
.spesarro-ux-buy-target {display:block;scroll-margin-top:90px;}
.spesarro-kompas__shortcut {margin:8px 0 16px;}
.spesarro-kompas__shortcut a {color:var(--sp-green);font-size:14px;font-weight:700;text-decoration:underline;text-underline-offset:3px;}

/* Keep the existing scroll control visible against both page and footer. */
body #kt-scroll-up.scroll-up-wrap,
body #kt-scroll-up-reader.scroll-up-wrap {
  background:#204c3f;
  border:2px solid #fff;
  border-radius:50%;
  bottom:calc(80px + env(safe-area-inset-bottom, 0px) + var(--spesarro-scroll-cookie-offset, 0px));
  box-shadow:0 2px 10px rgba(0,0,0,.3);
  color:#fff;
  font-size:22px;
  left:auto;
  right:calc(16px + env(safe-area-inset-right, 0px));
}
body #kt-scroll-up.scroll-up-wrap,
body #kt-scroll-up-reader.scroll-up-wrap:focus {
  align-items:center;
  box-sizing:border-box;
  height:48px;
  justify-content:center;
  padding:0;
  width:48px;
}
body #kt-scroll-up.scroll-up-wrap:hover,
body #kt-scroll-up-reader.scroll-up-wrap:hover {background:#16392f;color:#fff;border-color:#fff;}
body #kt-scroll-up-reader.scroll-up-wrap:focus-visible {outline:3px solid #dcb783;outline-offset:3px;}
#kt-scroll-up:not(.scroll-visible) {visibility:hidden;pointer-events:none;}

.spesarro-ux-dispatch {
  background:var(--sp-surface);
  border-left:3px solid var(--sp-green);
  color:var(--sp-ink);
  font-size:14px;
  line-height:1.55;
  margin:16px 0;
  padding:12px 14px;
}
.spesarro-ux-dispatch a,.spesarro-ux-order-next a {text-decoration:underline;text-underline-offset:3px;}
.spesarro-ux-dispatch a {display:inline-block;}
.spesarro-ux-dispatch--checkout {margin:16px 0 20px;}
.spesarro-commerce:has(input.shipping_method[value^="local_pickup"]:checked) .woocommerce-shipping-destination {display:none;}
.spesarro-ux-order-next {
  background:var(--sp-surface);
  border:1px solid var(--sp-line);
  border-left:4px solid var(--sp-green);
  margin:18px 0 22px;
  overflow-wrap:anywhere;
  padding:18px 20px;
}
.spesarro-ux-order-next h2 {font-size:1.5rem;margin:0 0 10px;}
.spesarro-ux-order-next p:last-child {margin-bottom:0;}

.spesarro-ux-mobile-search {display:grid;gap:8px;margin:20px 20px 16px;min-width:0;}
.spesarro-ux-mobile-search label {color:#fff;font-size:14px;font-weight:600;}
.spesarro-ux-mobile-search__row {display:grid;gap:8px;grid-template-columns:minmax(0,1fr) 44px;min-width:0;}
.spesarro-ux-mobile-search input {box-sizing:border-box;font-size:16px;min-height:44px;min-width:0;padding:8px;width:100%;}
.spesarro-ux-mobile-search button {align-items:center;display:flex;justify-content:center;min-height:44px;min-width:44px;padding:0;width:44px;}

.spesarro-homepage__all-coffees {align-self:center;color:var(--sp-green);font-size:15px;font-weight:700;text-decoration:underline;text-underline-offset:4px;}
.spesarro-product-archive__alternative {display:inline-block;margin:12px 0 0 16px;text-decoration:underline;text-underline-offset:4px;}
.spesarro-ux-terms-help {display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr));margin:0 auto 20px;max-width:960px;}
.spesarro-ux-terms-help>div {background:var(--sp-surface);border:1px solid var(--sp-line);padding:18px;}
.spesarro-ux-terms-help h2 {font-size:1.4rem;margin:0 0 8px;}
.spesarro-ux-terms-help p {font-size:14px;line-height:1.55;}
.spesarro-ux-terms-help a {text-decoration:underline;text-underline-offset:3px;}
.spesarro-dedication-preview {flex:1 1 100%;font-size:14px;line-height:1.45;margin:4px 0 0;overflow-wrap:anywhere;}
.spesarro-dedication-preview strong {color:var(--sp-ink);}
.spesarro-dedication-image-note {flex:1 1 100%;font-size:14px;line-height:1.4;}
.spesarro-ux-dedication-edit {margin-top:10px;}
.spesarro-ux-dedication-edit__toggle {background:none;border:0;color:var(--sp-green);cursor:pointer;font-size:14px;padding:4px 0;text-decoration:underline;text-underline-offset:3px;}
.spesarro-ux-dedication-edit__fields:not([hidden]) {display:grid;gap:8px;margin:8px 0;max-width:360px;}
.spesarro-ux-dedication-edit__fields label {font-size:14px;}
.spesarro-ux-dedication-edit__fields input {font-size:16px;min-height:44px;width:100%;}
.spesarro-ux-dedication-edit__fields button {min-height:44px;}
.spesarro-ux-orphan {background:var(--sp-surface);border-left:4px solid var(--sp-green);margin:12px 0 20px;padding:16px;}
.spesarro-ux-orphan p {margin:6px 0 10px;}
.spesarro-ux-orphan a {display:inline-block;margin:0 16px 8px 0;text-decoration:underline;text-underline-offset:3px;}
.spesarro-commerce__checkout-blocked {font-size:14px;line-height:1.5;}
.spesarro-ux-shipping-prompt td {background:var(--sp-surface);color:var(--sp-ink);font-size:14px;line-height:1.5;padding:12px 14px !important;}
.spesarro-native-commerce-page .spesarro-commerce--checkout form.checkout .form-row label:not(.checkbox):not(.woocommerce-form__label-for-checkbox) {
  font-size:14px !important;
  line-height:1.4 !important;
  letter-spacing:0;
}
.spesarro-commerce--checkout .form-row input.input-text,
.spesarro-commerce--checkout .form-row textarea,
.spesarro-commerce--checkout .form-row select,
.spesarro-commerce--checkout .select2-container .select2-selection--single {font-size:16px !important;min-height:48px;}
.spesarro-commerce--checkout #shipping_method input {min-height:20px;min-width:20px;}
.spesarro-commerce--checkout #shipping_method label {font-size:14px;line-height:1.4;}

/* Account: Woo uses th for the order number; Kadence hides all tbody th. */
@media(max-width:767px) {
  .spesarro-ux-terms-help {grid-template-columns:1fr;}
  .spesarro-ux-buy-shortcut {display:inline-block;font-size:14px;font-weight:700;margin:8px 0 12px;text-decoration:underline;text-underline-offset:3px;}
  .spesarro-kompas__purchase {padding:16px 10px;}
  .spesarro-kompas__purchase .spesarro-manual {padding:14px 10px;}
  .spesarro-page--account .woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number {
    display:block !important;
    font-size:14px;
    overflow-wrap:anywhere;
    padding:10px 12px;
  }
  .spesarro-page--account .woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number::before {
    content:attr(data-title) ": ";
    font-weight:600;
  }
  .spesarro-page--account .woocommerce-info .button {
    display:inline-flex;
    float:none !important;
    margin:0 0 12px !important;
    max-width:100%;
  }
  .spesarro-page--account .woocommerce-info {display:flex;flex-direction:column;align-items:flex-start;gap:4px;}
  .spesarro-page--account address,
  .spesarro-page--account .woocommerce-customer-details,
  .spesarro-page--account .woocommerce-Address {min-width:0;overflow-wrap:anywhere;}
}

@media(max-width:767px) {
  .spesarro-native-commerce-page .spesarro-commerce--checkout form.checkout .form-row label:not(.checkbox):not(.woocommerce-form__label-for-checkbox) {
    font-size:14px !important;
    line-height:1.4 !important;
    letter-spacing:0;
  }
  .spesarro-commerce--checkout .form-row input.input-text,
  .spesarro-commerce--checkout .form-row textarea,
  .spesarro-commerce--checkout .form-row select,
  .spesarro-commerce--checkout .select2-container .select2-selection--single {
    font-size:16px !important;
    min-height:48px;
  }
  .spesarro-commerce--checkout table.shop_table {font-size:14px;}
  .spesarro-commerce--checkout table.shop_table tr.woocommerce-shipping-totals {display:block;}
  .spesarro-commerce--checkout table.shop_table tr.woocommerce-shipping-totals > th,
  .spesarro-commerce--checkout table.shop_table tr.woocommerce-shipping-totals > td {
    display:block;
    padding:10px 0;
    width:100%;
  }
  .spesarro-commerce--checkout #shipping_method {display:grid;gap:8px;margin:0;}
  .spesarro-commerce--checkout #shipping_method li {
    align-items:stretch;
    border:1px solid var(--sp-line);
    display:flex;
    margin:0;
    min-height:48px;
    padding:0 10px;
  }
  .spesarro-commerce--checkout #shipping_method li:has(input:checked) {border-color:var(--sp-green);}
  .spesarro-commerce--checkout #shipping_method input {flex:0 0 auto;margin:16px 10px 0 0;min-height:20px;min-width:20px;}
  .spesarro-commerce--checkout #shipping_method label {
    align-items:center;
    display:flex;
    flex:1 1 auto;
    flex-wrap:wrap;
    font-size:14px;
    gap:0 5px;
    line-height:1.4;
    padding:10px 0;
  }
  .spesarro-commerce--checkout #payment ul.payment_methods li,
  .spesarro-commerce--checkout #payment div.payment_box {font-size:14px;}
  .spesarro-commerce--checkout .woocommerce-privacy-policy-text,
  .spesarro-commerce--checkout .woocommerce-terms-and-conditions-wrapper {font-size:14px;line-height:1.5;}
}


/* Checkout UX 2026-11-25 */
/* Checkout: allow delivery names and point controls to use the available width. */
.spesarro-commerce--checkout #shipping_method label {
  min-width: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  letter-spacing: 0;
}
.spesarro-commerce--checkout .woocommerce-Price-amount {
  white-space: nowrap;
}
.spesarro-commerce--checkout #apaczka_pl_geowidget_classic {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 48px;
  padding: 12px 16px !important;
  font-size: 14px !important;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: normal;
}
.spesarro-commerce--checkout #selected-parcel-machine,
.spesarro-commerce--checkout #apaczka_selected_point_data {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  word-break: normal;
  overflow-wrap: break-word;
}
.spesarro-commerce--checkout #payment ul.payment_methods label {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  letter-spacing: 0;
  line-height: 1.5;
}
.spesarro-commerce--checkout #payment ul.payment_methods input.input-radio {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin: 0 8px 0 0;
  vertical-align: middle;
}
.spesarro-commerce--checkout #payment ul.payment_methods label img {
  float: none;
  max-width: 80px;
  max-height: 28px;
  width: auto;
  height: auto;
  vertical-align: middle;
}
.spesarro-commerce--checkout #place_order {
  height: auto;
  padding: 14px 16px;
  white-space: normal;
  line-height: 1.5;
  letter-spacing: 0;
}

/* Keep the same two-column totals and full-width delivery layout on desktop. */
/* A block row inside a table section is constrained by its first column.
Use explicit columns for totals and the full width for delivery controls. */
.spesarro-commerce--checkout table.woocommerce-checkout-review-order-table,
.spesarro-commerce--checkout table.woocommerce-checkout-review-order-table > thead,
.spesarro-commerce--checkout table.woocommerce-checkout-review-order-table > tbody,
.spesarro-commerce--checkout table.woocommerce-checkout-review-order-table > tfoot {
  display: block;
  width: 100%;
}
.spesarro-commerce--checkout table.woocommerce-checkout-review-order-table tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  column-gap: 12px;
  width: 100%;
  align-items: start;
}
.spesarro-commerce--checkout table.woocommerce-checkout-review-order-table tr > th,
.spesarro-commerce--checkout table.woocommerce-checkout-review-order-table tr > td {
  display: block;
  min-width: 0;
  width: auto;
  text-align: left;
}
.spesarro-commerce--checkout table.woocommerce-checkout-review-order-table tr > :last-child {
  text-align: right;
}
.spesarro-commerce--checkout table.woocommerce-checkout-review-order-table tr > [colspan] {
  grid-column: 1 / -1;
  text-align: left;
}
.spesarro-commerce--checkout table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals,
.spesarro-commerce--checkout table.woocommerce-checkout-review-order-table tr.apaczka-parcel-machine {
  grid-template-columns: minmax(0, 1fr);
}
.spesarro-commerce--checkout table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > td,
.spesarro-commerce--checkout table.woocommerce-checkout-review-order-table tr.apaczka-parcel-machine > td {
  text-align: left;
}
.spesarro-commerce--checkout .apaczka-parcel-machine-label:empty {
  display: none;
}
.spesarro-commerce--checkout #order_review #shipping_method {
  display: grid;
  gap: 8px;
  margin: 0;
}
.spesarro-commerce--checkout #order_review #shipping_method li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  border: 1px solid var(--sp-line);
  min-height: 48px;
  margin: 0;
  padding: 0 10px;
}
.spesarro-commerce--checkout #order_review #shipping_method input.shipping_method {
  margin: 13px 0 0;
  grid-column: 1;
  grid-row: 1;
}
.spesarro-commerce--checkout #order_review #shipping_method label {
  display: block;
  grid-column: 2;
  grid-row: 1;
  padding: 10px 0;
}
.spesarro-commerce--checkout #order_review #shipping_method li:has(input:checked) {
  border-color: var(--sp-green);
}
.spesarro-commerce--checkout #order_review #shipping_method li:has(input[type="hidden"]) {
  grid-template-columns: minmax(0, 1fr);
}
.spesarro-commerce--checkout #order_review #shipping_method li:has(input[type="hidden"]) label {
  grid-column: 1;
}

.spesarro-commerce--checkout #selected-parcel-machine-id,
.spesarro-commerce--checkout #selected-parcel-machine-desc {
  display: block;
  font-style: normal;
}

/* Checkout summary: each row has one continuous separator, also when a
   savings note makes the amount column taller than the product name. */
.spesarro-commerce--checkout #order_review table.shop_table tr {
  border-bottom: 1px solid var(--sp-line);
}
.spesarro-commerce--checkout #order_review table.shop_table tr > th,
.spesarro-commerce--checkout #order_review table.shop_table tr > td {
  border-bottom: 0;
}
.spesarro-commerce--checkout #order_review .cart_item .product-name {
  overflow-wrap: anywhere;
  padding-right: 0;
}
.spesarro-commerce--checkout #order_review .woocommerce-Price-amount {
  white-space: nowrap;
}
.spesarro-commerce--checkout #order_review .awdr-you-saved-text {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
}
.spesarro-commerce--checkout #order_review .order-total td > br {
  display: none;
}
