/* KoszykStolarza PRO: product information, forms and checkout.
   Native PrestaShop/ThemeVolty actions and module states remain authoritative. */
body#product #main, body#cart #main, body#checkout #content { min-width: 0; }
body#product .tvproduct-page-wrapper { color: var(--ks-ink); font-family: Roboto, "Segoe UI", Arial, sans-serif; }
body#product .tvproduct-page-wrapper .tvprduct-image-info-wrapper {
  margin: 0; padding: 0; background: #fff; border: 1px solid #e0d8cc; border-radius: 6px; box-shadow: none;
}
body#product .tvprduct-image-info-wrapper:is(.product-1,.product-2,.product-4,.product-5) {
  display: flex; flex-wrap: wrap; align-items: stretch;
}
body#product .tvprduct-image-info-wrapper:is(.product-1,.product-2,.product-4,.product-5)::before,
body#product .tvprduct-image-info-wrapper:is(.product-1,.product-2,.product-4,.product-5)::after { display: none; }
body#product .tvprduct-image-info-wrapper > .tv-product-page-image { padding: clamp(16px, 2.8vw, 40px); min-width: 0; }
body#product .tvprduct-image-info-wrapper > .tv-product-page-content {
  min-width: 0; padding: clamp(20px, 3vw, 40px); color: var(--ks-ink); background: var(--ks-paper);
}
body#product .tv-product-page-image .product-cover img { max-width: 100%; height: auto; object-fit: contain; }
body#product .tv-product-page-image .product-images .thumb { border: 1px solid #e6dfd5; border-radius: 4px; }
body#product .tv-product-page-image .product-images .thumb.selected { border-color: var(--ks-brand); outline: 2px solid var(--ks-brand); outline-offset: -2px; }
body#product .tvproduct-title-brandimage { display: flex; flex-wrap: wrap; align-items: start; gap: 12px 20px; margin-bottom: 12px; padding: 0; }
body#product .tvproduct-title-brandimage h1 {
  flex: 1 1 240px; min-width: 0; margin: 0; padding: 0; color: var(--ks-ink);
  font: 600 clamp(1.5rem, 2.3vw, 2.3rem)/1.2 Roboto, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.025em; text-transform: none; overflow-wrap: anywhere; text-wrap: pretty;
}
body#product .tvcms-product-brand-logo { flex: 0 0 auto; }
body#product .tvcms-product-brand-logo:empty { display: none; }
body#product .tvproduct-title-brandimage .tvproduct-brand { position: static; display: block; }
body#product .tvproduct-title-brandimage .tvproduct-brand img { width: 68px; max-height: 48px; height: auto; object-fit: contain; }
.ks-product-identifiers { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 18px; color: var(--ks-muted); font-size: 13px; line-height: 1.5; }
.ks-product-identifiers > div { display: flex; gap: 6px; min-width: 0; }
.ks-product-identifiers dt { margin: 0; font-weight: 400; }
.ks-product-identifiers dd { margin: 0; color: var(--ks-ink); font-weight: 500; overflow-wrap: anywhere; }
body#product .tv-product-page-content .product-prices { margin: 0 0 14px; }
body#product .product-prices .current-price .price { color: var(--ks-brand); font: 700 clamp(1.7rem, 2.2vw, 2.2rem)/1.2 Roboto, "Segoe UI", Arial, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
body#product .product-prices :is(.tvproduct-tax-label,.product-unit-price,.tax-shipping-delivery-label) { font-size: 13px; color: var(--ks-muted); line-height: 1.5; letter-spacing: 0; }
body#product .product-prices .regular-price { color: var(--ks-muted); font-size: 1rem; }
body#product .product-prices .discount { color: #8b352c; background: #f7e9e5; border-radius: 3px; font-size: 13px; padding: 5px 8px; }
body#product #product-availability { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 14px; line-height: 1.4; }
body#product .tv-product-page-content .tvproduct-page-decs { margin: 16px 0 20px; padding: 0; border: 0; }
body#product .tv-product-page-content .tvproduct-page-decs :is(p,li) { font-size: 15px; line-height: 1.65; color: var(--ks-ink); letter-spacing: 0; overflow-wrap: break-word; }
body#product .tv-product-page-content .product-actions { padding: 20px 0; border-block: 1px solid #e0d8cc; }
body#product .product-variants-item { margin: 0 0 18px; }
body#product .product-actions .control-label { display: block; margin-bottom: 8px; color: var(--ks-ink); font-size: 14px; line-height: 1.4; font-weight: 600; text-transform: none; letter-spacing: 0; }
body#product .product-variants :is(select,.radio-label) { min-height: 44px; max-width: 100%; color: var(--ks-ink); background: #fff; border: 1px solid #a19587; border-radius: 4px; }
body#product .product-variants ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
body#product .product-variants .input-container { margin: 0; float: none; }
body#product .product-variants .input-container label { display: flex; align-items: center; min-height: 44px; margin: 0; cursor: pointer; }
body#product .product-variants .radio-label { display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; font-size: 14px; line-height: 1.3; }
body#product .product-variants .input-radio:checked + .radio-label { background: #f3ebe0; border-color: var(--ks-brand); color: var(--ks-brand); box-shadow: inset 0 0 0 1px var(--ks-brand); }
body#product .product-variants .input-container .color { width: 36px; height: 36px; margin: 4px; border: 1px solid #a19587; }
body#product .product-variants :is(.input-radio,.input-color):focus-visible + span { outline: 2px solid var(--ks-brand); outline-offset: 3px; }
body#product .product-add-to-cart .product-quantity { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 14px; }
body#product .product-add-to-cart .product-quantity .control-label { margin: 0; }
body#product .product-add-to-cart .qty { width: 132px; float: none; margin: 0; }
body#product .product-add-to-cart .bootstrap-touchspin { display: flex; width: 132px; min-height: 44px; border: 1px solid #a19587; border-radius: 4px; overflow: hidden; }
body#product .product-add-to-cart #quantity_wanted { width: 60px; height: 44px; min-height: 44px; border: 0; border-radius: 0; color: var(--ks-ink); font-size: 16px; text-align: center; padding: 8px; }
body#product .product-add-to-cart .bootstrap-touchspin .btn { min-width: 36px; min-height: 22px; padding: 0; color: var(--ks-ink); background: #f3eee6; border-color: #e0d8cc; }
body#product .tv-product-page-add-to-cart-wrapper { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
body#product .tv-product-page-add-to-cart-wrapper .tvcart-btn-model { flex: 1 1 210px; }
body#product .product-add-to-cart .add-to-cart { width: 100%; min-height: 50px; height: auto; padding: 13px 24px; border: 1px solid var(--ks-brand); border-radius: 4px; color: #fff; background: var(--ks-brand); box-shadow: none; }
body#product .product-add-to-cart .add-to-cart::after { content: none; }
body#product .product-add-to-cart .add-to-cart span { color: inherit; font: 600 16px/1.4 Roboto, "Segoe UI", Arial, sans-serif; letter-spacing: 0; text-transform: none; }
body#product .product-add-to-cart .add-to-cart:not(:disabled):hover { background: #5c3c29; border-color: #5c3c29; }
body#product .product-add-to-cart .add-to-cart:is(:disabled,.disabled) { background: #eae5dd; border-color: #d5cbbd; color: #625b53; opacity: 1; cursor: not-allowed; }
body#product .tvproduct-stock-social { flex-basis: 100%; }
body#product .blockreassurance_product { margin-top: 20px; }
body#product .blockreassurance_product > div { border: 0; border-bottom: 1px solid #e9e2d8; padding: 10px 0; }
body#product .blockreassurance_product :is(p,span) { font-size: 13px; line-height: 1.5; letter-spacing: 0; }

/* The full product column is shared by ordinary and Impra tabs. */
body#product #main > .page-footer,
body#product #main > .page-footer > :is(.ks-impra,.tvproduct-description-tab) { box-sizing: border-box; width: 100%; max-width: none; min-width: 0; margin-inline: 0; }
body#product #main > .page-footer { padding-inline: 0; margin-block: 32px; }
#product .page-footer > .tvproduct-description-tab {
  --ks-tabs-ink: var(--ks-ink); --ks-tabs-muted: var(--ks-muted); --ks-tabs-accent: var(--ks-brand);
  --ks-tabs-line: #e0d8cc; --ks-tabs-paper: var(--ks-paper);
  border-radius: 6px; font-family: Roboto, "Segoe UI", Arial, sans-serif;
}
#product .tvproduct-description-tab > .nav-tabs > li > a { min-height: 50px; font-family: Roboto, "Segoe UI", Arial, sans-serif; }
#product .tvproduct-description-tab .tab-pane :is(h2,h3) { font-family: Roboto, "Segoe UI", Arial, sans-serif; font-weight: 600; letter-spacing: -.02em; }
#product .tvproduct-description-tab .tab-pane h2 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
#product .tvproduct-description-tab .tab-pane h3 { font-size: 1.2rem; }
#product .tvproduct-description-tab .tab-pane :is(p,li) { font-size: 15px; line-height: 1.65; }
#product .tvproduct-description-tab .tab-pane .cms-description { max-width: 100%; }
#product .tvproduct-description-tab .product-features > dl.data-sheet { grid-template-columns: minmax(0, 36%) minmax(0, 1fr); font-size: 15px; }
#product .ks-impra {
  --ksi-ink: var(--ks-ink); --ksi-muted: var(--ks-muted); --ksi-accent: var(--ks-brand);
  --ksi-line: #e0d8cc; --ksi-paper: var(--ks-paper); --ksi-tint: #f3eee6;
  width: 100%; max-width: none; margin-inline: 0; font-family: Roboto, "Segoe UI", Arial, sans-serif;
}
#product .ks-impra .ksi-head { margin-bottom: 20px; }
#product .ks-impra .ksi-title { font: 600 clamp(1.7rem,3vw,2.4rem)/1.2 Roboto,"Segoe UI",Arial,sans-serif; }
#product .ks-impra .ksi-card { border-radius: 6px; }
#product .ks-impra :is(.ksi-panel-title,.ksi-panels h2) { font-family: Roboto, "Segoe UI", Arial, sans-serif; font-size: clamp(1.3rem,2vw,1.65rem); font-weight: 600; }
#product .ks-impra .ksi-nav a { min-height: 50px; }
#product .ks-impra .ksi-metrics { border-radius: 4px; }
#product .tvcmslike-product { padding-inline: 0; margin-block: 40px; }
body#product .tvfooter-product-sticky-bottom { box-shadow: 0 -4px 18px rgb(44 41 37 / 8%); border-top: 1px solid #e0d8cc; background: var(--ks-paper); }
body#product .tvfooter-product-sticky-bottom .ks-product-identifiers { display: none; }

/* Cart line items retain the original quantity URLs and AJAX classes. */
body#cart .cart-grid { margin-inline: -12px; }
body#cart .cart-grid > div { padding-inline: 12px; }
body#cart .cart-container, body#cart .cart-summary,
body#checkout #js-checkout-summary, body#checkout .checkout-step,
body#order-confirmation #main .card { background: var(--ks-paper); border: 1px solid #e0d8cc; border-radius: 6px; box-shadow: none; }
body#cart .cart-container h1 { color: var(--ks-ink); font: 600 clamp(1.5rem,2.4vw,2rem)/1.2 Roboto,"Segoe UI",Arial,sans-serif; letter-spacing: -.025em; text-transform: none; margin: 0; }
body#cart .cart-container > .card-block { padding: 24px; }
body#cart .cart-item { padding: 24px; border-bottom: 1px solid #e9e2d8; }
body#cart .cart-item:last-child { border-bottom: 0; }
body#cart .product-line-grid { display: grid; grid-template-columns: 96px minmax(0,1fr) minmax(160px,.65fr); gap: 20px; align-items: start; }
body#cart .product-line-grid > :is(.product-line-grid-left,.product-line-grid-body,.product-line-grid-right) { width: auto; padding: 0; float: none; min-width: 0; }
body#cart .product-line-grid > .clearfix { display: none; }
body#cart .product-line-grid-left img { display: block; width: 96px; height: 96px; object-fit: contain; background: #fff; border: 1px solid #eee8df; border-radius: 4px; }
body#cart .product-line-grid-body .tvproduct-name h6 { margin: 0 0 8px; color: var(--ks-ink); font: 600 15px/1.4 Roboto,"Segoe UI",Arial,sans-serif; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
body#cart .product-line-info { margin-bottom: 4px; color: var(--ks-muted); font-size: 13px; line-height: 1.5; }
body#cart .product-line-info .value { color: var(--ks-ink); font-weight: 500; }
body#cart .product-line-grid-right > .row { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin: 0; }
body#cart .product-line-grid-right > .row > .hidden-md-up { display: none; }
body#cart .product-line-grid-right .tvcart-incr-decr-price { width: auto; flex: 1 1 auto; padding: 0; }
body#cart .product-line-grid-right .tv-cart-delete-icon-wrapper { width: auto; flex: 0 0 auto; padding: 0; }
body#cart .product-line-grid-right .product-price { display: block; margin-bottom: 12px; color: var(--ks-ink); font-size: 16px; font-variant-numeric: tabular-nums; }
body#cart .product-line-grid-right .bootstrap-touchspin { width: 100px; min-height: 44px; border: 1px solid #a19587; border-radius: 4px; overflow: hidden; }
body#cart .js-cart-line-product-quantity { width: 58px; min-height: 44px; font-size: 16px; border: 0; text-align: center; }
body#cart .remove-from-cart { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; border-radius: 4px; color: #786c5f; }
body#cart .remove-from-cart:hover { color: #8b352c; background: #f7e9e5; }
body#cart .cart-summary { padding: 8px; }
body#cart .cart-summary-line, body#checkout .cart-summary-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--ks-ink); font-size: 14px; line-height: 1.5; }
body#cart .cart-summary-line .value, body#checkout .cart-summary-line .value { font-weight: 600; font-variant-numeric: tabular-nums; }
body#cart .cart-summary-line.cart-total, body#checkout .cart-summary-line.cart-total { padding-block: 14px; border-top: 1px solid #e0d8cc; font-size: 18px; }
body#cart .cart-summary .tvprocess-to-checkout { display: flex; align-items: center; justify-content: center; min-height: 50px; width: 100%; padding: 13px 16px; background: var(--ks-brand); color: #fff; border-radius: 4px; }
body#cart .cart-summary .tvprocess-to-checkout::after { content: none; }
body#cart .tv-continue-shopping-btn { margin-block: 20px; }
.ks-empty-state { max-width: 720px; margin: 0 auto; padding: clamp(32px,5vw,64px) 24px; text-align: center; color: var(--ks-ink); }
.ks-empty-state > .material-icons { display: block; margin: 0 0 18px; color: var(--ks-brand); font-size: 48px; }
.ks-empty-state :is(h2,h4) { margin: 0 0 12px; color: var(--ks-ink); font: 600 clamp(1.25rem,2.4vw,1.65rem)/1.3 Roboto,"Segoe UI",Arial,sans-serif; text-transform: none; }
.ks-empty-state p { max-width: 50ch; margin: 0 auto 20px; color: var(--ks-muted); font-size: 15px; line-height: 1.6; }
.ks-empty-state .ks-empty-action { min-height: 48px; padding: 13px 24px; }
body#cart .ks-cart-empty .cart-grid-body { width: 100%; }
body#cart .ks-cart-empty .cart-grid-right { display: none; }
body#cart .ks-cart-empty .cart-container > .separator { display: none; }

/* Standard checkout and the installed The Checkout share the same material palette. */
body#checkout .checkout-step { padding: 24px; margin-bottom: 16px; }
body#checkout .checkout-step.-current { border-color: var(--ks-brand); }
body#checkout .checkout-step .step-title { color: var(--ks-ink); font: 600 19px/1.35 Roboto,"Segoe UI",Arial,sans-serif; letter-spacing: -.015em; text-transform: none; }
body#checkout .checkout-step .content { padding: 20px 0 0; }
body#checkout .checkout-step .delivery-option { background: #f6f2eb; border: 1px solid #e0d8cc; border-radius: 4px; margin-bottom: 10px; }
body#checkout .checkout-step .address-item { border: 1px solid #e0d8cc; border-radius: 4px; box-shadow: none; }
body#checkout .checkout-step .address-item.selected { border-color: var(--ks-brand); }
body#checkout .checkout-step .continue, body#checkout #payment-confirmation button { min-height: 48px; border-radius: 4px; font-size: 15px; }
body#checkout .checkout-step .continue:not(:disabled), body#checkout #payment-confirmation button:not(:disabled) { color: #fff; background: var(--ks-brand); border-color: var(--ks-brand); }
body#checkout .checkout-step .continue::after, body#checkout #payment-confirmation button::after { content: none; }
#tc-checkout {
  --tc_white: var(--ks-paper); --tc_black: var(--ks-ink); --tc_black_85: var(--ks-ink); --tc_black_60: var(--ks-muted);
  --tc_light: #d8cfc2; --tc_light2: #f3eee6; --tc_light3: var(--ks-paper); --tc_light4: #e0d8cc;
  --tc_blue: var(--ks-brand); --tc_blue_hov: #5c3c29;
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
}
body#checkout.ks-pro #tc-checkout .checkout-block.main-block > .inner-area { padding: clamp(16px,2vw,28px); background: var(--ks-paper); border: 1px solid #e0d8cc; border-radius: 6px; box-shadow: none; }
body#checkout.ks-pro #tc-checkout .checkout-block .block-header { padding-bottom: 14px; margin-bottom: 20px; color: var(--ks-ink); border-bottom: 1px solid #e0d8cc; font: 600 19px/1.35 Roboto,"Segoe UI",Arial,sans-serif; letter-spacing: -.015em; text-transform: none; }
body#checkout.ks-pro #tc-checkout :is(#confirm_order,.step-continue) { min-height: 48px; border-radius: 4px; font-size: 15px; }
body#checkout.ks-pro #tc-checkout :is(#confirm_order,.step-continue):not(:disabled):not(.disabled) { color: white; background: var(--ks-brand); border: 1px solid var(--ks-brand); }
body#checkout.ks-pro #tc-checkout :is(#confirm_order,.step-continue):is(:disabled,.disabled) { --tc_blue: #eae5dd; --tc_blue_hov: #eae5dd; --tc_white: #625b53; color: #625b53; background: #eae5dd; border: 1px solid #d5cbbd; opacity: 1; cursor: not-allowed !important; }
body#checkout.ks-pro #tc-checkout :is(.form-control,.promo-input,.addresses-selection select) { --tc_light: #a19587; min-height: 44px; border-radius: 4px; font-size: 16px; }
body#checkout.ks-pro #tc-checkout .custom-checkbox input:focus-visible + span,
body#checkout.ks-pro #tc-checkout .checkout-block :is(a,button,input,select,textarea):focus-visible { outline: 2px solid var(--ks-brand) !important; outline-offset: 3px; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary > .inner-area { padding: clamp(16px,2vw,28px); background: var(--ks-paper); border: 1px solid #e0d8cc; border-radius: 6px; box-shadow: none; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary :is(.cart-container,.cart-summary) { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .cart-grid { margin: 0; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .cart-item { padding: 16px 0; border-bottom: 1px solid #e9e2d8; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-image img { width: 68px; height: 76px; object-fit: contain; background: #fff; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-desc { min-width: 0; flex-basis: 150px; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-title a { color: var(--ks-ink); font: 600 15px/1.4 Roboto,"Segoe UI",Arial,sans-serif; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-attribute { color: var(--ks-muted); font-size: 13px; line-height: 1.5; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-prices { color: var(--ks-ink); font-size: 15px; font-variant-numeric: tabular-nums; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-prices .unit-price-cart { color: var(--ks-muted); font-size: 12px; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .qty-box { align-items: stretch; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary input.cart-line-product-quantity { width: 42px; height: 44px; min-height: 44px; border-color: #a19587; background: #fff; color: var(--ks-ink); font-size: 16px; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary :is(.cart-line-product-quantity-up,.cart-line-product-quantity-down) { width: 40px; height: 44px; border-color: #a19587; background-color: #f3eee6; background-size: 16px; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .remove-from-cart { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #786c5f; border-radius: 4px; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .remove-from-cart:hover { color: #8b352c; background: #f7e9e5; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .cart-summary-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--ks-ink); font-size: 14px; line-height: 1.5; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .cart-summary-line .value { font-weight: 600; font-variant-numeric: tabular-nums; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .cart-summary-line.cart-total { padding-top: 14px; border-top: 1px solid #d8cfc2; font-size: 18px; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .card-totals-bg { padding: 16px; background: #f3eee6; border: 1px solid #e0d8cc; border-radius: 4px; }
/* ThemeVolty's checkout skin uses high-specificity selectors and decorative
   containers around module blocks. Keep those containers as the single frame. */
body#checkout.ks-pro #tc-checkout .checkout-block.main-block > .inner-area,
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary > .inner-area { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body#checkout.ks-pro #tc-checkout .checkout-block .block-header strong { font-weight: inherit; }
body#checkout.ks-pro #tc-checkout .form-group.hidden { display: none !important; }
body#checkout.ks-pro #tc-checkout .form-group .field-label { font-size: 14px; line-height: 1.45; }
body#checkout.ks-pro #tc-checkout .form-group label:not(.required) .field-label::after { margin-top: 1px; font-size: 12px; line-height: 1.35; color: var(--ks-muted); }
body#checkout.ks-pro #tc-checkout .btn::after,
body#checkout.ks-pro #tc-checkout .btn::before { content: none; }
body#checkout.ks-pro #tc-checkout .checkout-block .error-msg { font-size: 13px; line-height: 1.45; }
body#checkout.ks-pro #tc-checkout .checkout-block .cart-overview .product-line-body { padding-left: 20px; }
body#checkout.ks-pro #tc-checkout .checkout-block .cart-overview .product-line .product-price.product-line-prices { min-width: 120px; padding-inline: 12px; }
body#checkout.ks-pro #tc-checkout .checkout-block .cart-overview .product-line-actions { gap: 8px; }
body#checkout.ks-pro #tc-checkout .checkout-block .delivery-options > .delivery-option > .fix_deliv_pay,
body#checkout.ks-pro #tc-checkout .checkout-block .payment-options .payment-option > .fix_deliv_pay { min-height: 90px; border-radius: 4px; margin-bottom: 10px; }
@media (min-width: 992px) {
  body#checkout.ks-pro #tc-checkout .flex-split-vertical > div:not(.tc-block-placeholder) { margin-bottom: 24px; padding: 24px; border: 1px solid #e0d8cc; border-radius: 6px; background: var(--ks-paper); box-shadow: none; min-height: 0; }
  body#checkout.ks-pro #tc-checkout .flex-split-vertical > div.flex-split-horizontal { padding-inline: 12px; }
  body#checkout.ks-pro #tc-checkout .flex-split-vertical > div.flex-split-horizontal > * { padding-inline: 12px; }
  body#checkout.ks-pro #tc-checkout .flex-split-vertical > div._fullheader { padding-top: 24px; }
  body#checkout.ks-pro #tc-checkout .flex-split-vertical > div._fullheader .full-header .block-header { position: static; inset: auto; padding-inline: 0; }
}
@media (max-width: 991px) {
  body#checkout.ks-pro #tc-checkout .checkout-block { box-shadow: none !important; border-radius: 6px; }
  body#checkout.ks-pro #tc-checkout .checkout-block .block-header { margin-bottom: 18px; padding-bottom: 12px; font-size: 18px; line-height: 1.35; }
  body#checkout.ks-pro #tc-checkout .checkout-block .cart-overview .product-line-body { padding-left: 0; }
  body#checkout.ks-pro #tc-checkout .checkout-block .cart-overview .product-line-image { max-width: 76px; }
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-image img { width: 76px; height: 76px; }
  body#checkout.ks-pro #tc-checkout .checkout-block .cart-overview .product-line .product-price.product-line-prices { min-width: 0; padding-inline: 0; }
  body#checkout.ks-pro #tc-checkout .checkout-block .cart-overview .product-line-actions { justify-content: space-between; width: 100%; }
}

/* Shared account/contact form semantics are supplied by the templates. */
body:is(#authentication,#registration,#identity,#address,#password,#contact) .page-content { color: var(--ks-ink); background: var(--ks-paper); border: 1px solid #e0d8cc; border-radius: 6px; box-shadow: none; }
body:is(#authentication,#registration,#identity,#address,#password) #content { max-width: 760px; margin-inline: auto; padding: clamp(24px,4vw,48px); }
body:is(#authentication,#registration,#identity,#address,#password) .form-title h1 { color: var(--ks-ink); font: 600 clamp(1.5rem,3vw,2rem)/1.25 Roboto,"Segoe UI",Arial,sans-serif; letter-spacing: -.025em; text-transform: none; }
body:is(#authentication,#registration,#identity,#address,#password,#checkout) .form-group { margin-bottom: 20px; }
body:is(#authentication,#registration,#identity,#address,#password,#checkout) .form-group > .form-control-label { display: block; float: none; width: 100%; padding-bottom: 7px; text-align: left; color: var(--ks-ink); font-size: 14px; font-weight: 600; line-height: 1.4; }
body:is(#authentication,#registration,#identity,#address,#password,#checkout) .form-group > .form-control-comment { width: 100%; padding-top: 5px; color: var(--ks-muted); font-size: 13px; }
body:is(#authentication,#registration,#identity,#address,#password,#contact,#checkout) .form-control { min-height: 46px; height: auto; font-size: 16px; line-height: 1.5; border-radius: 4px; }
body:is(#authentication,#registration,#identity,#address,#password,#contact,#checkout) .form-group:not(.has-error):not(.has-danger):not(.has-success) .form-control:not([aria-invalid="true"]):not(.is-invalid) { border-color: #a19587; }
body:is(#authentication,#registration,#identity,#address,#password,#contact,#checkout) .form-control:is([aria-invalid="true"],.is-invalid),
body:is(#authentication,#registration,#identity,#address,#password,#contact,#checkout) .has-error .form-control { border-color: #a4362b; }
.ks-form-error:empty { display: none; }
.ks-form-error .help-block { margin-top: 8px; }
.ks-form-error ul { padding: 0; margin: 0; list-style: none; }
.ks-form-error .alert { padding: 10px 12px; margin: 0 0 6px; font-size: 14px; line-height: 1.45; border-radius: 4px; }
body:is(#authentication,#registration,#identity,#address,#password) .form-footer { margin-top: 24px; }
body#authentication .form-footer button { width: 100%; min-height: 48px; }
body#authentication .forgot-password { margin: 16px 0 0; text-align: right; }
body#authentication .no-account { padding-top: 24px; margin-top: 24px; border-top: 1px solid #e0d8cc; text-align: center; }
body#contact .contact-form { padding: clamp(24px,3vw,40px); background: var(--ks-paper); border: 1px solid #e0d8cc; border-radius: 6px; }
body#contact .contact-form h3 { margin-bottom: 20px; color: var(--ks-ink); font: 600 clamp(1.5rem,3vw,2rem)/1.25 Roboto,"Segoe UI",Arial,sans-serif; text-transform: none; }
body#contact .contact-form label { margin-bottom: 8px; color: var(--ks-ink); font-size: 14px; font-weight: 600; }
body#contact .tvcontact-area-text { min-height: 190px; resize: vertical; }
body#contact .contact-form input[name="url"] { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
body#my-account #content .links { display: flex; flex-wrap: wrap; }
body#my-account #content .links a { margin-bottom: 16px; }
body#my-account #content .links .link-item { display: flex; flex-direction: column; justify-content: center; gap: 12px; height: 100%; min-height: 132px; padding: 24px; color: var(--ks-ink); background: var(--ks-paper); border: 1px solid #e0d8cc; border-radius: 6px; box-shadow: none; font: 500 15px/1.4 Roboto,"Segoe UI",Arial,sans-serif; text-transform: none; }
body#my-account #content .links .link-item i { color: var(--ks-brand); font-size: 28px; }
body#my-account #content .links a:is(:hover,:focus-visible) .link-item { border-color: var(--ks-brand); background: #f5eee4; }
.modal .modal-content { background: var(--ks-paper); border: 1px solid #d8cfc2; border-radius: 6px; box-shadow: 0 18px 60px rgb(44 41 37 / 18%); }
.modal .modal-header { border-bottom: 1px solid #e0d8cc; padding: 20px 24px; }
.modal .modal-title { color: var(--ks-ink); font: 600 20px/1.3 Roboto,"Segoe UI",Arial,sans-serif; text-transform: none; }
.modal .modal-header .close { min-width: 44px; min-height: 44px; opacity: 1; color: var(--ks-ink); }
.modal .modal-body { padding: 24px; }

@media (min-width: 992px) {
  body#product .tvprduct-image-info-wrapper:is(.product-1,.product-2,.product-4,.product-5) > .tv-product-page-image { width: 54%; flex: 0 0 54%; }
  body#product .tvprduct-image-info-wrapper:is(.product-1,.product-2,.product-4,.product-5) > .tv-product-page-content { width: 46%; flex: 0 0 46%; border-left: 1px solid #e0d8cc; }
}
@media (max-width: 991px) {
  body#product .tvprduct-image-info-wrapper > :is(.tv-product-page-image,.tv-product-page-content) { width: 100%; flex-basis: 100%; }
  body#product .tvprduct-image-info-wrapper > .tv-product-page-content { border-top: 1px solid #e0d8cc; }
  body#cart .cart-grid-right { margin-top: 24px; }
  body#checkout .tvcheckout-process-right { margin-top: 24px; }
}
@media (max-width: 575px) {
  body#product .tv-product-page-content .product-actions { padding-block: 18px; }
  body#product .tvproduct-title-brandimage h1 { flex-basis: 200px; font-size: 1.5rem; }
  body#product .tvproduct-title-brandimage .tvproduct-brand img { width: 52px; }
  body#product .tvfooter-product-sticky-bottom { display: none; }
  body#product .tv-product-page-image .product-cover { max-height: none; }
  #product .tvproduct-description-tab > #tab-content { padding: 20px 16px; }
  #product .tvproduct-description-tab > .nav-tabs > li > a { min-height: 48px; font-size: 14px; }
  #product .ks-impra .ksi-nav a { font-size: 14px; }
  body#cart .cart-item { padding: 18px 16px; }
  body#cart .product-line-grid { grid-template-columns: 72px minmax(0,1fr); gap: 14px; }
  body#cart .product-line-grid-left img { width: 72px; height: 80px; }
  body#cart .product-line-grid > .product-line-grid-right { grid-column: 1 / -1; }
  body#cart .product-line-grid-right .tvcart-incr-decr-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  body#cart .product-line-grid-right .product-price { order: 1; margin: 0; }
  body#cart .cart-container > .card-block { padding: 20px 16px; }
  body#checkout .checkout-step { padding: 18px 16px; }
  body#contact .contact-form { padding: 20px 16px; }
  .modal .modal-body { padding: 20px 16px; }
  .modal .modal-header { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  body#product .tvproduct-page-wrapper *, .cart-grid *, #tc-checkout * { scroll-behavior: auto; }
}

/* Compact mobile checkout row: the native skin otherwise centers the image
   above a narrow description and absolutely positions the delete action. */
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .qty-label.label-success:not(.label-later) { display: inline-block; color: #355941; background: #e8f0e8; border: 1px solid #cddfce; border-radius: 3px; padding: 3px 7px; font-size: 12px; font-weight: 500; line-height: 1.4; }
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .promo-code .btn::before,
body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .promo-code .btn::after { content: none; }
@media (max-width: 700px) {
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .cart-overview .cart-item { padding: 18px 15px; }
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .cart-overview .product-line { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 12px; align-items: start; justify-content: stretch; padding: 0; position: relative; }
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-image { grid-column: 1; width: 80px; max-width: 80px; min-width: 0; margin: 0; padding: 0; text-align: left; }
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-image img { display: block; width: 80px; height: 88px; max-width: 100%; object-fit: contain; }
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-body { display: contents; width: auto; min-width: 0; margin: 0; padding: 0; text-align: left; }
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-body .product-line-desc { grid-column: 2; min-width: 0; width: 100%; max-width: none; margin: 0; padding: 0; text-align: left; }
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-body .product-title { padding: 0 0 7px; }
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-body .product-title a { display: block; width: 100%; text-align: left; font-size: 14px; line-height: 1.4; }
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-body .quantity-info { margin: 5px 0 0; }
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-actions { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) auto 44px; gap: 8px; align-items: center; width: 100%; margin: 2px 0 0; padding: 0; }
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-actions > div { min-width: 0; width: auto; margin: 0; padding: 0; line-height: 1.4; }
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-actions .product-line-qty { min-width: 0; text-align: left; }
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-actions .product-line-price { min-width: 0; padding: 0; text-align: right; }
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-actions .product-line-delete { position: static; inset: auto; display: flex; justify-content: flex-end; max-width: 44px; width: 44px; padding: 0; }
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-actions .product-line-delete .remove-from-cart { width: 44px; height: 44px; }
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-actions .product-price { font-size: 15px; line-height: 1.4; white-space: nowrap; }
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-actions .qty-box { border: 1px solid #a19587; border-radius: 4px; overflow: hidden; }
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-actions .qty-box input.cart-line-product-quantity { width: 38px; height: 44px; min-height: 44px; border: 0; }
  body#checkout.ks-pro #tc-checkout #thecheckout-cart-summary .product-line-actions .qty-box > a { width: 36px; height: 44px; border: 0; background-position: center; }
}
