/* Keep the search available on every page, while scrolling. */
.woocommerce button.button[name="update_cart"]:disabled,
.woocommerce button.button[name="update_cart"]:disabled[disabled] {
  background: #e8e8e8;
  color: #606060;
  opacity: 1;
  cursor: not-allowed;
}
:root { --to-header-height: 162px; --to-widget-height: 124px; --to-admin-height: 0px; }
.to-header { position: sticky; top: var(--to-admin-height); z-index: 100; background: #fff; box-shadow: none; transition: box-shadow .2s ease; }
.to-header.is-stuck { box-shadow: 0 14px 30px -8px #20202033, 0 3px 8px #20202014; }
/* Keep collapsing navigation from moving the scroll position across the sticky threshold. */
body:has(.to-header.has-sticky-menu) { overflow-anchor: none; }
.to-header.has-sticky-menu .to-header-main { position: relative; z-index: 1; background: #fff; }
.to-header.has-sticky-menu .to-nav-border { height: var(--to-nav-height); overflow: hidden; transition: height .1s ease-out, border-width .1s ease-out; }
.to-header.has-sticky-menu .to-nav { transition: transform .1s ease-out, opacity .08s ease-out; }
.to-header.is-compact .to-nav-border { height: 0; border-top-width: 0; border-bottom-width: 0; }
.to-header.is-compact .to-nav { transform: translateY(-100%); opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .to-header.has-sticky-menu .to-nav-border, .to-header.has-sticky-menu .to-nav { transition: none; }
}
body.admin-bar { --to-admin-height: 32px; }
html { scroll-padding-top: calc(var(--to-header-height) + var(--to-admin-height) + 16px); scroll-padding-bottom: calc(var(--to-widget-height) + 20px); }
.to-floating-recycle { position: fixed; z-index: 90; right: 24px; bottom: max(20px, env(safe-area-inset-bottom)); width: 320px; max-width: calc(100vw - 48px); display: grid; grid-template-columns: 24px minmax(0, 1fr) 32px; grid-template-areas: "icon copy toggle" "link link link"; align-items: center; gap: 12px; padding: 16px; border: 1px solid #454545; border-radius: 16px; background: var(--brand); color: #fff; box-shadow: 0 8px 32px #20202029; }
.to-floating-icon { grid-area: icon; }
.to-floating-copy { grid-area: copy; }
.to-floating-link { grid-area: link; }
.to-floating-icon { color: var(--brand-soft); font-size: 29px; line-height: 1; }
.to-floating-copy { flex: 1; min-width: 0; }
.to-floating-copy strong { display: block; font-size: 14px; line-height: 1.4; }
.to-floating-copy p { color: #ededed; font-size: 12px; margin: 7px 0 0; }
.to-floating-link { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 44px; border-radius: 8px; background: var(--brand-soft); color: var(--ink); padding: 10px 14px; font-size: 12px; font-weight: 700; }
.to-floating-link:hover { background: #ffd5d8; color: var(--ink); }
.to-floating-close { grid-area: toggle; align-self: start; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #ffffff0c; color: #fff; }
.to-floating-close[hidden] { display: none; }
.to-floating-close svg { display: block; width: 16px; height: 16px; }
.to-floating-close:hover { background: #ffffff18; }
.to-floating-recycle[hidden] { display: none; }
@media (max-width: 782px) { body.admin-bar { --to-admin-height: 46px; } }
@media (max-width: 700px) {
  :root { --to-header-height: 176px; }
  .to-header-main { padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .to-header .to-nav { min-height: 40px; }
  .to-header .to-search input { font-size: 16px; }
  .to-floating-recycle { left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: auto; max-width: none; padding: 12px; gap: 8px; grid-template-columns: 24px minmax(0, 1fr) 32px; grid-template-areas: "icon copy toggle" "link link link"; }
  .to-floating-copy strong { font-size: 12px; padding: 0; }
  .to-floating-copy p { display: none; }
  .to-floating-icon { font-size: 24px; }
  .to-floating-link { width: 100%; padding: 10px 12px; font-size: 12px; min-height: 44px; }
}
@media (max-width: 600px) { #wpadminbar { position: fixed; } }

/* Shared spacing and overflow rules for the catalogue and native Woo templates. */
.to-hero-visual .to-art { transform: rotate(-9deg) scale(.94); }
.to-visual-note { top: 24px; left: 24px; }
.to-visual-caption { left: 24px; right: 24px; bottom: 24px; gap: 16px; }
.to-hero-sticker { width: 104px; height: 104px; padding: 16px; right: 28px; font-size: 26px; line-height: 1.1; gap: 5px; text-align: center; }
.to-hero-sticker small { display: block; max-width: 58px; font-size: 7px; letter-spacing: .6px; line-height: 1.4; }
@media (max-width: 1000px) {
  .to-hero-sticker { width: 92px; height: 92px; font-size: 23px; padding: 14px; right: 24px; }
  .to-hero-sticker small { font-size: 6px; max-width: 50px; }
}
.to-search { min-width: 0; }
.woocommerce .woocommerce-ordering select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 44px 10px 14px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23202020' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}
@media (forced-colors: active) {
  .woocommerce .woocommerce-ordering select { appearance: auto; -webkit-appearance: auto; background-image: none; }
}
.to-search > span, .to-search button { flex-shrink: 0; }
.to-search input { flex: 1 1 0%; width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.to-search input::placeholder { text-overflow: ellipsis; opacity: 1; }
.to-search input:focus { text-overflow: clip; }
.to-popular { flex-wrap: wrap; }
.to-hero-copy, .to-section-heading > div, .to-footer-grid > div { min-width: 0; }
.to-story > .to-eyebrow { display: block; margin-bottom: 12px; }
.to-story h2 { margin-bottom: 20px; }
.to-section-heading { gap: 24px; }
.to-section-heading > a { flex-shrink: 0; }
.woocommerce ul.products, .woocommerce-page ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.woocommerce ul.products::before, .woocommerce ul.products::after, .woocommerce-page ul.products::before, .woocommerce-page ul.products::after { display: none; }
.woocommerce ul.products[class*="columns-"] li.product, .woocommerce-page ul.products[class*="columns-"] li.product { width: 100%; float: none; margin: 0; display: flex; flex-direction: column; min-width: 0; }
.woocommerce ul.products li.product > .woocommerce-loop-product__link { flex: 1; }
.woocommerce ul.products li.product .price { column-gap: 10px; row-gap: 4px; }
.to-footer-bottom { column-gap: 24px; row-gap: 12px; }
.woocommerce div.product form.cart { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.woocommerce div.product form.cart div.quantity { margin: 0; }
.to-recycle { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 16px; }
.to-recycle > a { margin: 0; }
.to-product-facts strong, .product_meta, .woocommerce-product-details__short-description { overflow-wrap: anywhere; }
.woocommerce input.input-text { text-overflow: ellipsis; }
.woocommerce input.input-text:focus { text-overflow: clip; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 8px 24px; overflow: visible; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; }

@media (max-width: 900px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .single-product .to-gallery { width: 100%; float: none; margin-bottom: 24px; }
  .single-product .to-gallery .to-art { width: 100%; aspect-ratio: 1.35; max-height: 420px; }
  .woocommerce.single-product div.product div.summary { width: 100%; float: none; }
}
@media (max-width: 768px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
}
@media (max-width: 700px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 18px; line-height: 1.4; padding: 18px 18px 8px; min-height: 0; }
  .woocommerce ul.products li.product .to-card-desc { font-size: 14px; padding: 0 18px; min-height: 0; }
  .woocommerce ul.products li.product .price { font-size: 26px; padding: 0 18px; margin: 16px 0 10px; flex-direction: row; align-items: baseline; }
  .woocommerce ul.products li.product .price del { font-size: 15px; }
  .woocommerce ul.products li.product .to-stock { font-size: 14px; padding: 0 18px; margin-bottom: 16px; }
  .woocommerce ul.products li.product .button { font-size: 15px; margin: 0 18px; min-height: 48px; }
  .woocommerce ul.products li.product .to-art-label { font-size: 9px; top: 14px; left: 14px; padding: 5px 8px; }
  .to-header-main { row-gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .to-search, .to-search-hero { gap: 8px; padding: 6px 6px 6px 12px; }
  .to-search input, .to-search-hero input { font-size: 16px; padding: 10px 0; }
  .to-search button, .to-search-hero button { min-height: 44px; padding: 10px 14px; font-size: 12px; }
  .to-nav { flex-wrap: wrap; white-space: normal; overflow: visible; gap: 0 18px; padding-top: 4px; padding-bottom: 4px; }
  .to-nav > a { display: flex; align-items: center; min-height: 36px; }
  .to-hero h1 { font-size: clamp(37px, 11.5vw, 47px); }
  .to-section-heading { align-items: flex-end; gap: 16px; }
  .to-section-heading > a { max-width: 96px; line-height: 1.6; }
  .to-section-heading > a span { margin-left: 4px; font-size: 16px; }
  .to-filters { gap: 12px 16px; padding: 16px; }
  .woocommerce .to-filters .button { min-height: 40px; padding: 10px 16px; font-size: 12px; }
  .woocommerce .woocommerce-result-count { margin-bottom: 12px; }
  .woocommerce .woocommerce-ordering { margin-bottom: 24px; }
  .woocommerce .woocommerce-ordering select { width: 100%; min-height: 44px; }
  .to-recycle { grid-template-columns: 28px minmax(0, 1fr); padding: 18px; gap: 12px; }
  .to-recycle > a { grid-column: 2; margin: 0; }
  .woocommerce ul.products li.product .button { display: flex; align-items: center; justify-content: center; padding: 12px 10px; }
  .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce-Input { font-size: 16px; }
}
@media (max-width: 380px) {
  .to-section-heading { flex-wrap: wrap; align-items: flex-start; gap: 12px; }
  .to-section-heading > a { max-width: none; text-align: left; }
}

/* Consistent checkout hierarchy and field treatment. */
.woocommerce form.checkout #customer_details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-bottom: 32px; }
.woocommerce form.checkout #customer_details > .col-1,
.woocommerce form.checkout #customer_details > .col-2 { float: none; width: auto; min-width: 0; }
.woocommerce form.checkout h3 { font-size: 22px; line-height: 1.35; margin: 0 0 24px; }
.woocommerce form.checkout #ship-to-different-address label { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; min-height: 30px; }
.woocommerce form.checkout input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--brand); }
.woocommerce form.checkout .form-row { padding: 0; margin-bottom: 18px; }
.woocommerce form.checkout .form-row label { font-size: 14px; line-height: 1.5; margin-bottom: 7px; }
.woocommerce form.checkout .form-row input.input-text,
.woocommerce form.checkout .form-row textarea,
.woocommerce form.checkout .form-row select { border: 1px solid #d6d6d6; border-radius: 6px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.5; padding: 11px 12px; box-shadow: none; }
.woocommerce form.checkout .form-row textarea { min-height: 128px; resize: vertical; }
.woocommerce form.checkout .form-row :is(input, textarea)::placeholder { color: #686868; opacity: 1; }
.woocommerce form.checkout .form-row :is(input.input-text, textarea, select):focus { border-color: var(--brand); outline: 2px solid #cf101b33; outline-offset: 2px; }
.woocommerce form.checkout .form-row.woocommerce-invalid :is(input.input-text, textarea, select) { border-color: #b22929; }
.woocommerce form.checkout .form-row .woocommerce-input-wrapper > strong { font-size: 16px; font-weight: 500; }
@media (max-width: 768px) {
  .woocommerce form.checkout #customer_details { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .woocommerce form.checkout h3 { font-size: 21px; margin-bottom: 20px; }
  .woocommerce form.checkout .form-row-first,
  .woocommerce form.checkout .form-row-last { width: 100%; float: none; }
}
.woocommerce form.checkout #customer_details::before,
.woocommerce form.checkout #customer_details::after { display: none; }

/* Shared type scale: readable body copy, supporting text and clear headings. */
:root { --to-title-size: clamp(30px, 3vw, 40px); --to-section-size: clamp(24px, 2.4vw, 32px); }
body { font-size: 16px; line-height: 1.6; }
h1, h2, h3 { overflow-wrap: anywhere; }
.to-page > h1, .to-catalog > h1, .woocommerce-products-header h1,
.woocommerce div.product .product_title { font-size: var(--to-title-size); line-height: 1.2; }
.to-section-heading h2, .to-story h2 { font-size: var(--to-section-size); line-height: 1.25; }
.to-page-content > h2, .woocommerce .cart-collaterals h2,
.woocommerce div.product .woocommerce-tabs h2, .related.products > h2,
.woocommerce-account .woocommerce h2 { font-size: clamp(23px, 2vw, 28px); line-height: 1.3; }
.to-page-content > h3 { font-size: 21px; line-height: 1.35; }
.to-page-content > p, .woocommerce-product-details__short-description,
.woocommerce div.product .woocommerce-tabs .panel { font-size: 16px; line-height: 1.7; }
.to-hero-lead { font-size: 17px; line-height: 1.65; }
.to-eyebrow, .to-section-heading .to-eyebrow { font-size: 11px; line-height: 1.5; }
.to-nav, .to-header-actions { font-size: 14px; }
.to-search input, .to-search-hero input { font-size: 16px; }
.to-search button, .to-search-hero button { font-size: 14px; }
.to-popular { font-size: 13px; }
.to-benefits strong { font-size: 15px; line-height: 1.45; }
.to-benefits span, .to-story p, .to-story-link, .to-section-heading > a { font-size: 14px; line-height: 1.6; }
.to-footer p, .to-footer-grid > div > a:not(.to-logo) { font-size: 14px; }
.to-footer h3 { font-size: 16px; line-height: 1.4; }
.to-footer-bottom { font-size: 12px; line-height: 1.6; }
.to-filters label, .to-filters > a, .woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { font-size: 14px; }
.woocommerce .woocommerce-ordering select { font-size: 16px; max-width: 100%; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 18px; line-height: 1.4; min-height: 0; }
.woocommerce ul.products li.product .to-card-desc,
.woocommerce ul.products li.product .to-stock { font-size: 14px; line-height: 1.55; }
.woocommerce ul.products li.product .price { font-size: 26px; line-height: 1.35; }
.woocommerce ul.products li.product .price del { font-size: 15px; }
.woocommerce ul.products li.product .button, .woocommerce ul.products li.product a.added_to_cart { font-size: 15px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce .to-filters .button { font-size: 15px; line-height: 1.4; white-space: normal; text-align: center; }
.to-gallery > p, .product_meta { font-size: 13px; line-height: 1.6; }
.to-product-facts,
.woocommerce div.product .stock, .to-printer-list a,
.woocommerce div.product .woocommerce-tabs ul.tabs li { font-size: 14px; line-height: 1.6; }
.to-recycle strong { font-size: 16px; line-height: 1.4; }
.to-recycle p, .to-recycle > a, .to-floating-copy p,
.to-floating-link { font-size: 14px; line-height: 1.5; }
.to-floating-copy strong { font-size: 14px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error,
.woocommerce-privacy-policy-text, .woocommerce-checkout #payment div.payment_box p { font-size: 14px; line-height: 1.65; }
.woocommerce table.shop_table { font-size: 16px; line-height: 1.55; }
.woocommerce table.shop_table th { font-size: 14px; line-height: 1.5; }
.woocommerce form .form-row label { font-size: 14px; line-height: 1.5; margin-bottom: 7px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select, .woocommerce-Input { font-size: 16px; line-height: 1.5; }
.woocommerce form .form-row textarea { border: 1px solid #d6d6d6; border-radius: 6px; }
.woocommerce-account .woocommerce-MyAccount-navigation { font-size: 15px; }
@media (max-width: 700px) {
  .to-section-heading { flex-wrap: wrap; align-items: flex-start; }
  .to-section-heading > a { max-width: none; text-align: left; }
  .to-hero-lead { font-size: 16px; }
  .to-header-actions { font-size: 13px; }
  .to-nav { font-size: 13px; }
  .to-search button, .to-search-hero button { padding-left: 12px; padding-right: 12px; }
  .to-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .to-footer-grid > div { min-width: 0; }
  .woocommerce table.shop_table td { overflow-wrap: anywhere; }
}

.to-hero-visual:hover { color: var(--ink); }

/* Focus belongs to the complete search control; errors stay beside that control. */
.to-search { position: relative; }
.to-search:focus-within { border-color: var(--brand); box-shadow: none; }
.to-search input:focus-visible { outline: none; }
.to-search.has-error { border-color: #ad3535; box-shadow: none; }
.to-search .to-search-error { position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 10px 12px; border: 1px solid #edcaca; border-radius: 8px; background: #fff6f4; color: #8c2525; font-size: 13px; line-height: 1.45; box-shadow: 0 4px 12px #20202014; }
.to-search .to-search-error:empty { display: none; }

.to-search.has-custom-clear input::-webkit-search-cancel-button,
.to-search.has-custom-clear input::-webkit-search-decoration { -webkit-appearance: none; }
.to-search.has-custom-clear input { appearance: textfield; }
.to-search button.to-search-clear { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--brand); }
.to-search button.to-search-clear:hover { background: #f4f4f4; color: var(--ink); }
.to-search button.to-search-clear[hidden] { display: none; }
.to-search button.to-search-clear svg { display: block; width: 20px; height: 20px; transform: none; }
.to-search > span[aria-hidden="true"] { cursor: text; font-size: 32px; }
.to-search > .to-search-icon { display: grid; place-items: center; align-self: center; flex: 0 0 32px; width: 32px; height: 32px; line-height: 1; }
.to-search-icon svg { display: block; width: 26px; height: 26px; }
.to-search-hero button[type="submit"] { display: grid; place-items: center; width: 48px; min-height: 48px; padding: 12px; }
.to-search-hero button[type="submit"] svg { display: block; }

@media (min-width: 701px) {
  .to-floating-recycle { width: 370px; }
}

/* Client identity: original supplied artwork, red actions and neutral surfaces. */
.to-logo { flex-shrink: 0; line-height: 1; }
.to-brand-image { display: block; width: 210px; height: 70px; object-fit: contain; }
.to-header-main { gap: 32px; }
.to-footer { background: #fff; }
.to-footer .to-brand-image { width: 210px; height: 70px; }
/* Oddajtusz palette shared by both sticky positions and mobile. */
.to-floating-recycle { background: #2d5343; border-color: #2d5343; color: #ffffcc; }
.to-floating-icon, .to-floating-copy p, .to-floating-close { color: #ffffcc; }
.to-floating-link { background: #ffffcc; color: #0b625e; }
.to-floating-link:hover { background: #f2f2b8; color: #0b625e; }
.to-floating-recycle a:focus-visible, .to-floating-recycle button:focus-visible { outline-color: #ffffcc; }
.to-hero-sticker { background: #cf101b; color: #fff; outline-color: #cf101b; border-color: #fff8; }
@media (max-width: 700px) {
  .to-header .to-brand-image { width: 150px; height: 50px; }
  .to-header-main { column-gap: 16px; row-gap: 15px; }
}

/* Shared storefront dropdowns (including WooCommerce country/state controls). */
body .select2-container { max-width: 100%; font-size: 16px; text-align: left; }
body .select2-container .select2-selection--single,
body .select2-container .select2-selection--multiple {
  min-height: 46px; height: auto; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); transition: border-color .15s ease;
}
body .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 11px 42px 11px 14px; line-height: 24px; color: var(--ink);
}
body .select2-container .select2-selection--single .select2-selection__arrow {
  top: 0; right: 14px; width: 16px; height: 100%; display: grid; place-items: center;
}
/* Hide SelectWoo's border triangle and draw a consistent SVG chevron. */
body .select2-container .select2-selection--single .select2-selection__arrow b { display: none; }
body .select2-container .select2-selection--single .select2-selection__arrow::before {
  content: ''; display: block; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23202020' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
body .select2-container--open .select2-selection--single .select2-selection__arrow::before { transform: rotate(180deg); }
body .select2-container--focus .select2-selection,
body .select2-container--open .select2-selection { border-color: var(--brand); }
body .select2-selection:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
body .select2-dropdown { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 12px 30px #20202024; }
body .select2-dropdown--below { margin-top: 5px; }
body .select2-dropdown--above { margin-top: -5px; }
body .select2-search--dropdown { padding: 10px; }
body .select2-search--dropdown .select2-search__field { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid var(--line); border-radius: 6px; }
body .select2-search--dropdown .select2-search__field:focus { border-color: var(--brand); outline: none; }
body .select2-container .select2-results > .select2-results__options { max-height: min(280px, 45vh); overscroll-behavior: contain; }
body .select2-results__option { padding: 12px 14px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
body .select2-container--default .select2-results__option[aria-selected=true],
body .select2-container--default .select2-results__option[data-selected=true] { background: var(--brand-soft); color: var(--ink); font-weight: 600; }
body .select2-container--default .select2-results__option--highlighted[aria-selected],
body .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--brand); color: #fff; }
body .select2-container--default.select2-container--disabled .select2-selection { background: var(--cream); color: var(--muted); cursor: not-allowed; }
body .select2-container--default .select2-results__option[aria-disabled=true] { color: var(--muted); }
body .select2-container .select2-selection--multiple .select2-selection__choice { background: var(--brand-soft); border-color: var(--line); padding: 4px 8px; }
.woocommerce .woocommerce-ordering { width: min(100%, 300px); }
.woocommerce form .form-row.woocommerce-invalid .select2-selection { border-color: #b22929; }
body .select2-container--open .select2-dropdown { border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px #20202024; }
/* Search fields in short lists must not contribute to horizontal page overflow. */
body .select2-search--hide { display: none; }
body > .select2-container--open { width: auto; max-width: none; }
body .select2-container--default.select2-container--open .select2-selection--single { border-radius: 8px; }

.to-search:focus-within { z-index: 110; }
.to-suggestions { position: absolute; top: calc(100% + 7px); left: 0; right: 0; z-index: 120; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px #20202026; max-height: min(360px, 45dvh); overflow-y: auto; overscroll-behavior: contain; text-align: left; }
.to-suggestions[hidden] { display: none; }

.to-catalog-filters { display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: #fafafa; }
.to-brand-filter { margin: 0; padding: 0; min-width: 0; border: 0; }
.to-brand-filter legend { padding: 0; color: var(--ink); font-size: 16px; font-weight: 700; }
.to-filter-help { margin: 5px 0 14px; font-size: 13px; color: var(--muted); }
.to-brand-options { display: flex; flex-wrap: wrap; gap: 10px; }
.to-catalog-filters .to-brand-choice { position: relative; display: block; cursor: pointer; }
.to-brand-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.to-brand-choice > span { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 116px; min-height: 46px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; font-weight: 600; color: var(--ink); transition: background .15s, border-color .15s; }
.to-brand-choice i { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #aaa; border-radius: 50%; font-style: normal; }
.to-brand-choice:hover > span { border-color: var(--brand); }
.to-brand-choice input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.to-brand-choice input:checked + span i { background: var(--brand); border-color: var(--brand); color: white; }
.to-brand-choice input:checked + span i::after { content: '✓'; font-size: 12px; line-height: 1; }
.to-brand-choice input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 3px; }
.to-filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.to-filter-actions .to-checkbox { margin-right: auto; font-size: 14px; }
.to-filter-actions .to-filter-reset { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .to-catalog-filters { padding: 18px 16px; }
  .to-brand-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .to-brand-choice > span { min-width: 0; padding: 10px 12px; }
  .to-filter-actions .to-checkbox { flex-basis: 100%; }
}
.to-suggestion { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 7px; cursor: pointer; color: var(--ink); font-size: 15px; line-height: 1.4; }
.to-suggestion > span { min-width: 0; overflow-wrap: anywhere; }
.to-suggestion small { flex-shrink: 0; font-size: 11px; font-weight: 500; color: var(--muted); background: var(--cream); padding: 3px 7px; border-radius: 5px; }
.to-suggestion:hover, .to-suggestion[aria-selected="true"] { background: var(--brand-soft); }
.to-suggestion[aria-selected="true"] { box-shadow: inset 3px 0 var(--brand); }
.to-suggestions .to-suggestions-hint { padding: 10px 12px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 600px) {
  .to-suggestion { padding: 10px 8px; font-size: 14px; gap: 8px; }
}

/* Compact, linked lists in the additional product information. */
.woocommerce table.shop_attributes { border-top: 1px solid var(--line); border-spacing: 0; font-size: 14px; }
.woocommerce table.shop_attributes th { width: 200px; padding: 14px 18px; text-align: left; vertical-align: top; line-height: 1.5; }
.woocommerce table.shop_attributes td { padding: 12px 18px; font-style: normal; vertical-align: top; line-height: 1.5; }
.woocommerce table.shop_attributes td p { padding: 0; margin: 0; }
.to-attribute-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.to-attribute-pills a { display: inline-flex; align-items: center; min-height: 30px; max-width: 100%; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; transition: background .15s, border-color .15s; }
.to-attribute-pills a:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.to-attribute-pills a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 600px) {
  .woocommerce table.shop_attributes, .woocommerce table.shop_attributes tbody, .woocommerce table.shop_attributes tr { display: block; width: 100%; }
  .woocommerce table.shop_attributes tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { display: block; width: auto; padding: 0; border: 0; background: transparent; }
  .woocommerce table.shop_attributes th { margin-bottom: 8px; }
  .woocommerce table.shop_attributes tr:nth-child(even) { background: #f8f8f8; }
  .woocommerce table.shop_attributes tr:nth-child(even) th, .woocommerce table.shop_attributes tr:nth-child(even) td { background: transparent; }
  .to-attribute-pills a { min-height: 34px; }
}
.to-art.to-art-photo { background: #fff; }
.woocommerce .to-art.to-art-photo img.to-product-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 28px;
  object-fit: contain;
}

/* Compact, read-only catalog attributes and page-size preference. */
.woocommerce ul.products li.product .to-card-pills { display:flex; flex-wrap:wrap; gap:6px; margin:0 18px 14px; }
.woocommerce ul.products li.product .to-card-pill { display:inline-flex; align-items:center; gap:6px; max-width:100%; padding:4px 9px; border:1px solid #e2e2e2; border-radius:999px; background:#f7f7f7; color:#505050; font-size:12px; font-weight:500; line-height:1.5; overflow-wrap:anywhere; }
.to-page-size { width:165px; max-width:100%; }
.to-page-size label { display:block; margin-bottom:6px; font-size:13px; color:var(--muted); }
.to-page-size select { width:100%; }
@media(max-width:600px) { .woocommerce ul.products li.product .to-card-pill { font-size:13px; } }

.to-card-swatches { display:inline-flex; align-items:center; gap:2px; flex-shrink:0; }
.to-card-swatches i { display:block; width:9px; height:9px; border-radius:50%; background:var(--ink-swatch); box-shadow:inset 0 0 0 1px #00000018; }

.woocommerce div.product .summary .to-card-pills { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 20px; }
.woocommerce div.product .summary .to-card-pill { display:inline-flex; align-items:center; gap:6px; max-width:100%; padding:5px 11px; border:1px solid #e2e2e2; border-radius:999px; background:#f7f7f7; color:#505050; font-size:13px; font-weight:500; line-height:1.5; overflow-wrap:anywhere; }

/* Align catalog controls and keep the same touch targets on small screens. */
.to-catalog-filters .to-filter-actions { display:grid; grid-template-columns:180px minmax(180px,1fr) auto auto; align-items:end; gap:16px; }
.to-catalog-filters .to-page-size { width:100%; min-width:0; }
.to-catalog-filters .to-filter-actions .to-checkbox { display:flex; align-items:center; gap:10px; min-height:48px; margin:0; cursor:pointer; }
.to-catalog-filters .to-filter-actions .button,
.to-catalog-filters .to-filter-reset { display:flex; align-items:center; justify-content:center; min-height:48px; margin:0; }
.to-catalog-filters .to-filter-reset { padding:0 10px; }
.to-catalog-filters .to-checkbox input[type=checkbox] { appearance:none; -webkit-appearance:none; display:grid; place-content:center; flex:0 0 20px; width:20px; height:20px; margin:0; border:1px solid #b8b8b8; border-radius:5px; background:#fff; cursor:pointer; }
.to-catalog-filters .to-checkbox input[type=checkbox]:checked { border-color:var(--brand); background:var(--brand); }
.to-catalog-filters .to-checkbox input[type=checkbox]::after { content:''; width:9px; height:5px; border-left:2px solid white; border-bottom:2px solid white; transform:translateY(-1px) rotate(-45deg); opacity:0; }
.to-catalog-filters .to-checkbox input[type=checkbox]:checked::after { opacity:1; }
.to-catalog-filters .to-checkbox input[type=checkbox]:focus-visible { outline:2px solid var(--brand); outline-offset:3px; }
.to-catalog-filters .to-checkbox:hover input { border-color:var(--brand); }
.to-catalog-filters .to-brand-choice i { border-radius:5px; border-color:#b8b8b8; }
@media(max-width:700px) {
  .to-catalog-filters .to-filter-actions { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px 12px; }
  .to-catalog-filters .to-filter-actions .to-checkbox { font-size:13px; }
  .to-catalog-filters .to-filter-actions .button { width:100%; }
}
@media(forced-colors:active) { .to-catalog-filters .to-checkbox input[type=checkbox] { appearance:auto; } .to-catalog-filters .to-checkbox input[type=checkbox]::after { display:none; } }

/* Match the custom checkboxes while retaining native radio-group behaviour. */
.woocommerce input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0 8px 0 0;
  vertical-align: middle;
  border: 1px solid #b8b8b8;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}
.woocommerce input[type="radio"]::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
}
.woocommerce input[type="radio"]:checked { border-color: var(--brand); background: var(--brand); }
.woocommerce input[type="radio"]:checked::after { opacity: 1; }
.woocommerce input[type="radio"]:not(:disabled):hover { border-color: var(--brand); }
.woocommerce input[type="radio"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.woocommerce input[type="radio"]:disabled { opacity: .45; cursor: not-allowed; }
@media (forced-colors: active) {
  .woocommerce input[type="radio"] { appearance: auto; -webkit-appearance: auto; }
  .woocommerce input[type="radio"]::after { display: none; }
}

/* Editable legal pages: comfortable line length and responsive document typography. */
.to-legal-page { max-width:960px; }
.to-legal-page h1 { font-size:clamp(28px,4vw,42px); line-height:1.2; overflow-wrap:anywhere; }
.to-legal-page .to-page-content { max-width:none; font-size:16px; line-height:1.8; overflow-wrap:anywhere; }
.to-legal-page .to-page-content h2 { font-size:clamp(21px,2.5vw,26px); line-height:1.35; margin:2em 0 .8em; }
.to-legal-page .to-page-content p { margin-bottom:1em; }
.to-legal-page .to-page-content ul { padding-left:1.5em; margin:0 0 1.5em; }
.to-legal-page .to-page-content li { margin-bottom:.6em; }

/* Original Oddajtusz artwork, stored locally to avoid third-party requests. */
.to-green-story, .to-floating-recycle { isolation: isolate; }
.to-green-story { position: relative; overflow: hidden; padding-right: 185px; }
.to-green-story::before, .to-floating-recycle::before { content: ""; position: absolute; z-index: -1; pointer-events: none; background: url("oddajtusz-recycle.svg") center / contain no-repeat; }
.to-green-story::before { width: 380px; height: 425px; right: -70px; top: -60px; }
.to-green-story::after { content: ""; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 25%; aspect-ratio: 550 / 532; background: url("oddajtusz-logo.png") center / contain no-repeat; pointer-events: none; }
.to-floating-recycle::before { inset: 0; border-radius: inherit; background-position: right center; background-size: auto 180%; filter: grayscale(1); opacity: .08; }
@media (max-width: 1000px) {
  .to-green-story { padding-right: 27px; }
  .to-green-story::after { position: static; display: block; transform: none; width: 110px; margin-top: 24px; }
}

/* Keep the Oddajtusz logo beside the mobile headline. */
@media (max-width: 700px) {
  .to-green-story { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; }
  .to-green-story > .to-eyebrow, .to-green-story > p, .to-green-story > .to-story-link { grid-column: 1 / -1; }
  .to-green-story > h2 { grid-column: 2; grid-row: 2; align-self: center; font-size: clamp(18px, 5vw, 26px); }
  .to-green-story::after { grid-column: 1; grid-row: 2; align-self: center; width: 64px; margin: 0 0 20px; }
}
@media (max-width: 360px) {
  .to-green-story { grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; padding-left: 20px; padding-right: 20px; }
  .to-green-story::after { width: 52px; }
}
/* Keep the official InPost picker consistent with the checkout controls. */
.woocommerce ul#shipping_method {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  margin: 0;
}
.woocommerce ul#shipping_method li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px;
  min-height: 62px;
  border-radius: 8px;
  background: #f7f7f7;
  text-align: left;
}
.woocommerce ul#shipping_method li:has(input:checked) { background: #fff0f1; }
.woocommerce ul#shipping_method li input[type="radio"] { margin: 0; }
.woocommerce ul#shipping_method li label {
  display: block;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}
.woocommerce ul#shipping_method li:has(input:checked) label { font-weight: 600; }
.woocommerce ul#shipping_method .inpost_pl-shipping-method-meta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0;
}
.woocommerce ul#shipping_method .easypack-shipping-method-logo { position: static; display: block; }
.woocommerce ul#shipping_method .easypack-shipping-method-logo img {
  display: block;
  width: 48px;
  height: 38px;
  max-width: 48px;
  max-height: 38px;
  margin: 0;
  object-fit: contain;
}
.woocommerce table.shop_table .woocommerce-shipping-totals > th { vertical-align: top; padding-top: 28px; }
.woocommerce .woocommerce-shipping-destination { margin-top: 12px; font-size: 13px; color: var(--muted); }
.woocommerce .easypack-parcel-machine-select { text-align: left; }
.woocommerce table.shop_table .easypack-parcel-machine > th,
.woocommerce table.shop_table .easypack-parcel-machine > td {
  border-top: 0;
  padding-top: 0;
  padding-bottom: 16px;
}
.woocommerce table.shop_table .woocommerce-shipping-totals:has(+ .easypack-parcel-machine) > th,
.woocommerce table.shop_table .woocommerce-shipping-totals:has(+ .easypack-parcel-machine) > td {
  padding-bottom: 8px;
}
.woocommerce .easypack_show_geowidget {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid var(--brand) !important;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: center;
  cursor: pointer;
}
.woocommerce .easypack_show_geowidget::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 18px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 1 1 16 0Z' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='10' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce .easypack_show_geowidget:hover {
  background: #ac0c15;
  border-color: #ac0c15 !important;
  color: #fff;
}
.woocommerce .easypack_show_geowidget:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.woocommerce .easypack-parcel-machine #selected-parcel-machine {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 520px;
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 8px;
  background: #f7f7f7;
  color: var(--ink);
  text-align: left;
  overflow-wrap: anywhere;
}
.woocommerce .easypack-parcel-machine .easypack-visible-point-header {
  margin: 0 0 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500 !important; /* Override the official template's inline bold style. */
  line-height: 1.5;
}
.woocommerce .easypack-parcel-machine .easypack-visible-point-description {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}
.woocommerce .easypack-parcel-machine .easypack-visible-point-description::first-line {
  font-weight: 600;
}
@media (max-width: 700px) {
  .woocommerce .easypack_show_geowidget { width: 100%; min-height: 44px; padding: 10px; }
  .woocommerce-checkout-review-order-table .to-shipping-fullwidth > th { display: none; }
  .woocommerce-checkout-review-order-table .to-shipping-fullwidth > td { text-align: left; }
  .woocommerce-checkout-review-order-table .woocommerce-shipping-totals.to-shipping-fullwidth > td::before {
    content: attr(data-title);
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
  }
  .woocommerce ul#shipping_method li { gap: 8px; padding: 10px; }
  .woocommerce ul#shipping_method li label { font-size: 13px; }
  .woocommerce ul#shipping_method .easypack-shipping-method-logo img { width: 40px; height: 32px; }
}

/* Category navigation wraps long product names on small screens. */
.to-catalog .woocommerce-breadcrumb { margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.to-catalog .woocommerce-breadcrumb a { color: var(--ink); text-decoration: none; }
.to-breadcrumb-separator { display: inline-block; margin: 0 10px; }
.to-catalog .woocommerce-breadcrumb a:hover { color: var(--brand); }
.to-catalog .woocommerce-breadcrumb a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.to-category-filter { width: 100%; max-width: 360px; margin-bottom: 22px; }
.to-category-filter label { display: block; margin-bottom: 8px; font-weight: 700; }
.to-category-filter select { width: 100%; }

/* Emphasize the editable buyback message in the large homepage tile. */
.to-green-story > p { font-size: clamp(20px, 2vw, 24px); font-weight: 700; line-height: 1.4; }

/* Five collection tiles; the selected own product has an independent fifth slot. */
.to-brand-tile--own .to-brand-tile-image{position:relative;background:#fff}
.to-brand-tile--own .to-brand-tile-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 20%}
.to-featured--with-own .to-brand-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}
@media(max-width:1000px){
 .to-featured--with-own .to-brand-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
}
@media(max-width:700px){.to-featured--with-own .to-brand-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.woocommerce div.product .summary .to-price-reference{margin:-8px 0 20px;color:var(--muted);font-size:13px;line-height:1.5}
.woocommerce div.product .summary .to-price-reference .amount{font-size:inherit;font-weight:600;color:inherit}

/* Permanent support information remains visible after dismissing the alternative dialog. */
.to-product-charity{display:flex;align-items:center;gap:18px;padding:16px;margin:22px 0;border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:10px;background:#fff}
.to-product-charity img{display:block;flex:0 0 100px;width:100px;height:100px;object-fit:contain}
.to-product-charity p{margin:0;font-size:16px;line-height:1.5;font-weight:700}
@media(max-width:480px){.to-product-charity{gap:12px;padding:12px}.to-product-charity img{flex-basis:80px;width:80px;height:80px}.to-product-charity p{font-size:14px}}

.to-home-bestsellers--with-own .woocommerce ul.products li.to-own-product{width:100%;margin:0;float:none;display:flex;flex-direction:column;min-width:0}
@media(min-width:1001px){
 .to-home-bestsellers--with-own .woocommerce ul.products{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}
 .to-home-bestsellers--with-own .woocommerce ul.products li.to-own-product{grid-column:5}
}
