/* ==========================================================================
   WordPress / WooCommerce / Contact Form 7 parts of the Nordiska Småhus theme.
   Design tokens and components live in main.css (from the approved prototype).
   ========================================================================== */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.icon-btn__count[hidden] { display: none; }
.link-reset { background: none; border: 0; padding: 0 0 2px; border-bottom: 1.5px solid; cursor: pointer; }
.lang--drawer { display: flex; gap: 8px; margin-bottom: 6px; }
.lang--drawer a { padding: 6px 12px; border: 1px solid var(--stone-300); text-decoration: none; color: var(--ink-700); font-size: .9rem; }
.lang--drawer a[aria-current] { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

/* ---------- Page content (incl. old page-builder shortcodes) ---------- */
.page-content { padding-bottom: 24px; }
.prose--page, .prose--article { max-width: 78ch; }
.prose img { max-width: 100%; height: auto; }
.prose a { color: var(--ember-700); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { border-bottom: 1px solid var(--stone-200); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 1.3em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.3em; }
.prose h4 { margin-top: 1.2em; }
.prose > :first-child { margin-top: 0; }
.sc-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 32px; margin: 0 0 24px; }
.sc-col { grid-column: span 12; min-width: 0; }
@media (min-width: 850px) {
	.sc-col-3 { grid-column: span 3; } .sc-col-4 { grid-column: span 4; } .sc-col-5 { grid-column: span 5; } .sc-col-6 { grid-column: span 6; }
	.sc-col-7 { grid-column: span 7; } .sc-col-8 { grid-column: span 8; } .sc-col-9 { grid-column: span 9; }
}
.sc-title { margin-top: .6em; }
.sc-image { margin: 0 0 1em; }
.sc-image img { width: 100%; }
.sc-divider { border: 0; border-top: 1px solid var(--stone-200); margin: 32px 0; }
.prose .faq { margin: 16px 0 32px; }
.faq > br, .faq > p:empty, .faq details > div p:empty { display: none; }
.prose .faq summary { font-size: 1.15rem; padding: 18px 0; }

/* ---------- Articles ---------- */
.container--narrow.article { padding-bottom: var(--section-y); }
.article__head { padding: 8px 0 24px; }
.article__head h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.article__img { margin: 0 0 32px; }
.article__img img { width: 100%; max-height: 560px; object-fit: cover; }
.article__back { margin-top: 48px; }
.pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--stone-300); text-decoration: none; color: var(--ink-900); }
.pagination .current { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.page-head--center { text-align: center; }
.page-head--center .eyebrow { justify-content: center; }
.page-head--center .lead { margin-inline: auto; }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 170; visibility: hidden; }
.search-overlay.is-open { visibility: visible; }
.search-overlay__panel { position: absolute; left: 0; right: 0; top: 0; background: var(--stone-50); padding: 24px var(--gutter); transform: translateY(-100%); transition: transform .3s var(--ease); box-shadow: var(--shadow-2); }
.search-overlay.is-open .search-overlay__panel { transform: none; }
.search-overlay__form { display: flex; align-items: center; gap: 12px; max-width: 900px; margin: 0 auto; }
.search-overlay__form > .icon { width: 26px; height: 26px; color: var(--stone-500); }
.search-overlay__form input[type=search] { flex: 1; min-width: 0; height: 56px; border: 0; border-bottom: 2px solid var(--ink-900); background: transparent; font-size: 1.3rem; padding: 0 4px; }
.search-overlay__form input[type=search]:focus { outline: none; border-color: var(--ember-600); }

/* ---------- Prices ---------- */
.nh-price { display: flex; flex-direction: column; }
.price-from { font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--stone-500); text-transform: none; letter-spacing: 0; }
.buybox__price .nh-price { gap: 2px; }
.buybox__price .price { font-size: 2rem; }
.buybox__price .price-was { font-size: .9rem; }
.buybox__short { font-size: .92rem; color: var(--ink-700); margin: -4px 0 18px; }
.buybox__short ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.buybox__short li::before { content: "–"; color: var(--stone-500); margin-right: 8px; }
.buybox__short p { margin: 0 0 .4em; }
.buybox__secondary { margin-top: 10px; }
.buybox__secondary .btn { flex: 1; }
.buybox .chips { margin-bottom: 4px; }

/* ---------- WooCommerce: add-to-cart form, variations, add-ons ---------- */
.buybox form.cart { display: grid; gap: 14px; margin: 0; }
.buybox form.cart .quantity { display: none; }
.buybox .single_add_to_cart_button, .woocommerce .button.alt, .woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce #respond input#submit.alt, .woocommerce input.button.alt, .checkout-button, #place_order {
	display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 0 28px;
	font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase;
	background: var(--ember-600) !important; color: #fff !important; border: 0; border-radius: var(--radius); cursor: pointer; transition: background .2s;
}
.buybox .single_add_to_cart_button:hover, .woocommerce .button.alt:hover, #place_order:hover, .checkout-button:hover { background: var(--ember-700) !important; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; font-family: var(--font-display); font-weight: 600;
	letter-spacing: .08em; text-transform: uppercase; background: var(--ink-900); color: #fff; border: 0; border-radius: var(--radius); text-decoration: none; cursor: pointer;
}
.woocommerce .button:hover { background: var(--ink-700); color: #fff; }
.woocommerce .button:disabled, .woocommerce .button.disabled { opacity: .45; cursor: not-allowed; }
.variations { width: 100%; border-collapse: collapse; margin: 0; }
.variations th, .variations td { display: block; text-align: left; padding: 0; }
.variations th label, .variations .label label { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-900); }
.variations td { margin: 6px 0 14px; }
.variations select, .wc-pao-addon select, .woocommerce form .form-row select { width: 100%; height: 50px; padding: 0 40px 0 14px; border: 1px solid var(--stone-300); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1b18' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; appearance: none; border-radius: var(--radius); font-size: .98rem; }
.reset_variations { font-size: .85rem; color: var(--stone-500); }
.woocommerce-variation-price { margin: 6px 0; }
.woocommerce-variation-price .price { font-size: 1.6rem; }
.wc-pao-addons-container, .product-addon-totals { margin: 0; }
.wc-pao-addon { margin: 0 0 14px; }
.wc-pao-addon-name, .wc-pao-addon .addon-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-900); margin: 0 0 8px; }
.wc-pao-addon-description { font-size: .85rem; color: var(--stone-500); }
.wc-pao-addon-wrap p, .wc-pao-addon .form-row { margin: 0 0 6px; }
.wc-pao-addon-checkbox, .wc-pao-addon input[type=checkbox], .wc-pao-addon input[type=radio] { accent-color: var(--ember-600); width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; }
.wc-pao-addon label { display: flex; align-items: center; gap: 4px; padding: 12px 14px; border: 1px solid var(--stone-300); background: #fff; cursor: pointer; font-size: .95rem; }
.wc-pao-addon label:has(input:checked) { border-color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--ink-900); }
.wc-pao-addon .wc-pao-addon-wrap > p + p label { border-top-width: 1px; }
.wc-pao-addon label.wc-pao-addon-name { display: block; padding: 0; border: 0; background: none; box-shadow: none; cursor: default; font-size: 1.05rem; }
.wc-pao-addon-image-swatch { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; padding: 6px; margin: 0 6px 6px 0; border: 1px solid var(--stone-300); background: #fff; vertical-align: top; }
.wc-pao-addon-image-swatch img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wc-pao-addon-image-swatch:hover { border-color: var(--stone-500); }
.wc-pao-addon-image-swatch.selected { border-color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--ink-900); }
.product-addon-totals { background: var(--stone-50); border: 1px solid var(--stone-200); padding: 12px 14px; font-size: .9rem; }
.product-addon-totals ul { list-style: none; padding: 0; margin: 0; }
.product-addon-totals li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.product-addon-totals .wc-pao-subtotal-line { font-weight: 600; color: var(--ink-900); border-top: 1px solid var(--stone-200); margin-top: 6px; padding-top: 8px; }
.stock { font-size: .85rem; }
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 24px; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--stone-200); vertical-align: top; }
.woocommerce-product-attributes th { width: 40%; font-weight: 500; color: var(--stone-500); }
.woocommerce-product-attributes td p { margin: 0; }
.spec-table td .icon { color: var(--ember-600); vertical-align: -4px; margin-right: 6px; }

/* ---------- Notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews { list-style: none; margin: 0 0 24px; padding: 16px 20px; background: var(--stone-0); border: 1px solid var(--stone-200); border-left: 4px solid var(--moss-600); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: .95rem; }
.woocommerce-error { border-left-color: var(--ember-600); }
.woocommerce-info { border-left-color: var(--birch-300); }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 40px; }
.single-product .woocommerce-notices-wrapper { width: min(100% - 2 * var(--gutter), var(--container)); margin: 0 auto; }

/* ---------- Cart & checkout ---------- */
.shop-page { padding-bottom: var(--section-y); }
.shop_table { width: 100%; border-collapse: collapse; background: var(--stone-0); border: 1px solid var(--stone-200); font-size: .95rem; }
.shop_table th, .shop_table td { padding: 14px 16px; border-bottom: 1px solid var(--stone-200); text-align: left; vertical-align: middle; }
.shop_table thead th { font-family: var(--font-display); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-900); background: var(--stone-50); }
.shop_table .product-thumbnail img { width: 84px; height: 84px; object-fit: cover; }
.shop_table .product-name a { color: var(--ink-900); font-weight: 600; text-decoration: none; }
.shop_table .product-remove a { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--stone-300); text-decoration: none; color: var(--ink-900); font-size: 1.2rem; line-height: 1; }
.shop_table dl.variation { font-size: .85rem; color: var(--stone-500); margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; }
.shop_table dl.variation dd, .shop_table dl.variation p { margin: 0; }
.cart-collaterals { display: flex; justify-content: flex-end; margin-top: 32px; }
.cart_totals { width: min(100%, 460px); }
.cart_totals h2 { font-size: 1.6rem; }
.coupon { display: flex; gap: 8px; flex-wrap: wrap; }
.coupon .input-text { height: 46px; padding: 0 12px; border: 1px solid var(--stone-300); }
.woocommerce form .form-row { margin: 0 0 16px; }
.woocommerce form .form-row label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-900); margin-bottom: 6px; }
.woocommerce form .form-row .input-text, .woocommerce form .form-row textarea, .select2-container .select2-selection--single { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--stone-300); background: #fff; border-radius: var(--radius); font-size: 1rem; }
.woocommerce form .form-row textarea { padding: 12px 14px; min-height: 120px; }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 48px; padding: 0; }
.select2-container .select2-selection--single .select2-selection__arrow { height: 48px; }
form.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
form.woocommerce-checkout > * { grid-column: 1 / -1; }
form.woocommerce-checkout > #customer_details { grid-column: 1; grid-row: span 2; }
form.woocommerce-checkout > #order_review_heading, form.woocommerce-checkout > #order_review { grid-column: 2; }

#order_review_heading { font-size: 1.6rem; }
#customer_details .col-1, #customer_details .col-2 { width: 100%; float: none; }
.woocommerce-checkout-review-order { background: var(--stone-0); border: 1px solid var(--stone-200); padding: 24px; }
.woocommerce-terms-and-conditions-wrapper { font-size: .88rem; margin: 16px 0; }
.required { color: var(--ember-600); text-decoration: none; }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--stone-300); }
.woocommerce-MyAccount-navigation a { display: block; padding: 12px 0; border-bottom: 1px solid var(--stone-300); text-decoration: none; color: var(--ink-900); }
.woocommerce-MyAccount-navigation .is-active a { color: var(--ember-600); font-weight: 600; }
.cart-empty.woocommerce-info { justify-content: flex-start; }
.return-to-shop .button { margin-top: 8px; }

/* ---------- Contact Form 7 (quote form) ---------- */
.nh-form .wpcf7-form > p, .nh-form .wpcf7-form .nh-field { margin: 0 0 18px; }
.nh-form label, .nh-form .nh-legend { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-900); margin-bottom: 6px; }
.nh-form .nh-hint { font-weight: 400; color: var(--stone-500); }
.nh-form .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.nh-form input[type=text], .nh-form input[type=email], .nh-form input[type=tel], .nh-form input[type=number], .nh-form textarea, .nh-form select {
	width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--stone-300); background: #fff; border-radius: var(--radius); font-size: 1rem; font-weight: 400; transition: border-color .2s, box-shadow .2s;
}
.nh-form textarea { height: auto; min-height: 140px; padding: 14px; resize: vertical; }
.nh-form input:focus, .nh-form textarea:focus, .nh-form select:focus { outline: none; border-color: var(--ink-900); box-shadow: 0 0 0 3px rgba(184, 58, 34, .18); }
.nh-form .nh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
.nh-form .wpcf7-radio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 6px; }
.nh-form .wpcf7-radio .wpcf7-list-item { margin: 0; }
.nh-form .wpcf7-radio label { display: flex; gap: 10px; align-items: center; padding: 16px; border: 1px solid var(--stone-300); background: #fff; cursor: pointer; font-weight: 500; font-size: .95rem; margin: 0; }
.nh-form .wpcf7-radio label:has(input:checked) { border-color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--ink-900); }
.nh-form .wpcf7-radio input, .nh-form .wpcf7-acceptance input { accent-color: var(--ember-600); width: 18px; height: 18px; margin: 0; }
.nh-form .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-700); font-size: .92rem; }
.nh-form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.nh-form .wpcf7-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 32px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; background: var(--ember-600); color: #fff; border: 0; border-radius: var(--radius); cursor: pointer; }
.nh-form .wpcf7-submit:hover { background: var(--ember-700); }
.nh-form .wpcf7-not-valid-tip { color: var(--ember-700); font-size: .82rem; margin-top: 4px; }
.nh-form .wpcf7-not-valid { border-color: var(--ember-600) !important; }
.nh-form .wpcf7-response-output { margin: 16px 0 0 !important; padding: 14px 16px !important; border: 1px solid var(--stone-300) !important; border-left: 4px solid var(--moss-600) !important; background: var(--stone-50); font-size: .95rem; }
.nh-form .wpcf7 form.invalid .wpcf7-response-output, .nh-form .wpcf7 form.failed .wpcf7-response-output { border-left-color: var(--ember-600) !important; }
.nh-form .wpcf7-spinner { margin: 0 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	form.woocommerce-checkout, .woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr); }
	form.woocommerce-checkout > #customer_details, form.woocommerce-checkout > #order_review_heading, form.woocommerce-checkout > #order_review { grid-column: 1; grid-row: auto; }
	.shop_table.cart thead { display: none; }
	.shop_table.cart tr { display: grid; grid-template-columns: 84px 1fr auto; gap: 4px 12px; padding: 12px; border-bottom: 1px solid var(--stone-200); }
	.shop_table.cart td { border: 0; padding: 0; }
	.shop_table.cart td.product-thumbnail { grid-row: span 3; }
	.shop_table.cart td.actions { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.nh-form .nh-grid, .nh-form .wpcf7-radio { grid-template-columns: minmax(0, 1fr); }
	.buybox__secondary { flex-direction: column; }
}

/* ---------- Order received ---------- */
.woocommerce-thankyou-order-received { font-size: 1.2rem; font-weight: 600; color: var(--ink-900); background: #fff; border: 1px solid var(--stone-200); border-left: 4px solid var(--moss-600); padding: 18px 22px; margin: 0 0 24px; }
.woocommerce-order-overview { list-style: none; display: flex; flex-wrap: wrap; gap: 16px 40px; padding: 0; margin: 0 0 40px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stone-500); }
.woocommerce-order-overview strong { display: block; margin-top: 4px; font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--ink-900); }
.woocommerce-order-details__title, .woocommerce-column__title { font-size: 1.6rem; }
.woocommerce-order-details .wc-item-meta { list-style: none; padding: 0; margin: 6px 0 0; font-size: .88rem; color: var(--stone-500); }
.woocommerce-order-details .wc-item-meta p { display: inline; margin: 0; }

/* ---------- Side-cart plugin (Instantio): the header cart replaces its floating button ---------- */
.ins-fixed-toogle, .ins-toggle-btn { display: none !important; }
/* the Instantio side-cart panel too: parked just off-screen, its round close button showed at the right edge (the theme uses the normal cart page) */
.ins-container { display: none !important; }

/* Add-on subtotal box (the add-ons plugin's own stylesheet loads after the theme's, hence .buybox) */
.buybox .product-addon-totals { margin: 4px 0 18px; padding: 12px 16px; background: var(--stone-50); border: 1px solid var(--stone-200); font-size: .9rem; }
.buybox .product-addon-totals ul { padding: 0; }
.buybox .product-addon-totals ul li { padding: 3px 0; gap: 12px; }
.buybox .product-addon-totals .wc-pao-subtotal-line { justify-content: space-between; margin-top: 8px; padding: 10px 0 2px; border-top: 1px solid var(--stone-200); }
.buybox .product-addon-totals .wc-pao-subtotal-line p.price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-900); }

/* ---------- Product: measurements and options ("Mått och utförande") ---------- */
.buybox__cfg { margin-top: 18px; }
.cfg__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cfg__dims { position: sticky; top: 96px; }
.cfg__dims h2 { margin: 8px 0 20px; }
.cfg__note { font-size: .85rem; color: var(--stone-500); margin-top: 14px; }
.cfg__form { background: var(--stone-50); border: 1px solid var(--stone-200); padding: clamp(20px, 3vw, 32px); }
.cfg__form h3 { font-size: 1.6rem; margin: 0 0 6px; }
.cfg__intro { color: var(--stone-500); font-size: .95rem; margin: 0 0 18px; }
.cfg__group { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.cfg__group legend { padding: 0; margin-bottom: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-900); }
.cfg__count { font-family: var(--font-body, inherit); font-size: .78rem; letter-spacing: .04em; text-transform: none; color: var(--stone-500); font-weight: 500; margin-left: 6px; }
.cfg__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.cfg__opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: #fff; border: 1px solid var(--stone-300); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.cfg__opt:hover { border-color: var(--stone-500); }
.cfg__opt:has(input:checked) { border-color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--ink-900); }
.cfg__opt input { accent-color: var(--ember-600); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.cfg__opt strong { display: block; font-size: .95rem; font-weight: 600; color: var(--ink-900); }
.cfg__opt small { display: block; font-size: .82rem; color: var(--stone-500); margin-top: 2px; }
.cfg__group select { width: 100%; height: 50px; padding: 0 40px 0 14px; border: 1px solid var(--stone-300); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1b18' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; appearance: none; font-size: .95rem; }
.cfg__summary { border-top: 1px solid var(--stone-300); padding-top: 14px; margin: 6px 0 18px; font-size: .9rem; }
.cfg__summary strong { font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; }
.cfg__summary p { margin: 4px 0 0; color: var(--ink-700); }
@media (max-width: 980px) { .cfg__grid { grid-template-columns: minmax(0, 1fr); } .cfg__dims { position: static; } }
/* phones: space between a long size label and its value; the quote button wraps inside its box */
.spec-table th { padding-right: 16px; }
[data-cfg-cta] { max-width: 100%; }
@media (max-width: 640px) { [data-cfg-cta] { display: flex; width: 100%; justify-content: center; white-space: normal; text-align: center; } }

/* ---- product page (2026-11-29): the buy box holds the choices (compact rows); the left column has the pictures
   and, under them, the size table (products with choices) or the product's short text. Phones: pictures, buy box, sizes. */
.pdp { grid-template-areas: "gallery aside"; }
.pdp--cfg { grid-template-areas: "gallery aside" "main aside"; grid-template-rows: auto 1fr; row-gap: 28px; }
.pdp > .gallery { grid-area: gallery; }
.pdp > .buybox { grid-area: aside; position: static; }
.pdp > .pdp__main { grid-area: main; min-width: 0; }
.buybox .trust-list { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--stone-200); gap: 9px; font-size: .84rem; }
.buybox__cfg { margin-top: 14px; }

/* "Ditt val" + the add-ons plugin's total (only the sum: its lines repeat the choices) */
.buybox .cfg__summary { margin: 0 0 14px; padding: 12px 0 0; border-top: 1px solid var(--stone-200); font-size: .88rem; }
.buybox .cfg__summary strong { display: block; margin-bottom: 4px; }
.buybox .cfg__summary p { margin: 0; color: var(--ink-700); }
.buybox .cfg__summary ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; color: var(--ink-900); }
.buybox .cfg__summary li::before { content: "+ "; color: var(--ember-600); font-weight: 600; }
.nh-cfg-form .wc-pao-addon-container { display: none !important; }
.nh-cfg-form .product-addon-totals { margin: 0 0 14px !important; padding: 10px 14px !important; }
.nh-cfg-form .product-addon-totals ul li:not(.wc-pao-subtotal-line) { display: none !important; }
.nh-cfg-form .product-addon-totals .wc-pao-subtotal-line { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
.cfg__quote { margin: 0 0 12px; }
.cfg__quote p { font-size: .86rem; color: var(--ink-700); margin: 0 0 12px; }
.cfg__quote .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
.buybox__cart[hidden], .cfg__quote[hidden] { display: none !important; }

/* the choices in the buy box: one compact row of buttons per group, the chosen option's text next to the group name */
.cfg--buybox { margin: 0 0 14px; }
.cfg--buybox .cfg__top { margin: 0 0 4px; }
.cfg--buybox .cfg__title { font-size: 1.35rem; margin: 0; }
.cfg--buybox .cfg__intro { font-size: .8rem; color: var(--stone-500); margin: 2px 0 4px; }
.cfg--buybox .cfg__group { display: block; padding: 10px 0; margin: 0; border-top: 1px solid var(--stone-200); }
.cfg--buybox .cfg__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 7px; }
.cfg--buybox .cfg__label { font-family: var(--font-display); font-weight: 600; font-size: .92rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-900); line-height: 1.2; }
.cfg--buybox .cfg__hint { font-size: .78rem; color: var(--stone-500); line-height: 1.3; }
.cfg--buybox .cfg__hint:empty { display: none; }
.cfg--buybox .cfg__opts { display: flex; flex-wrap: wrap; gap: 6px; grid-template-columns: none; }
.cfg--buybox .cfg__opt { position: relative; display: inline-flex; align-items: center; gap: 0; padding: 7px 12px; background: #fff; border: 1px solid var(--stone-300); box-shadow: none; cursor: pointer; font-size: .86rem; line-height: 1.3; min-height: 36px; transition: border-color .15s, background .15s; }
.cfg--buybox .cfg__opt:hover { border-color: var(--ink-700); }
.cfg--buybox .cfg__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.cfg--buybox .cfg__opt span { display: inline-flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.cfg--buybox .cfg__opt strong { display: inline; font-size: .86rem; font-weight: 500; color: var(--ink-900); }
.cfg--buybox .cfg__price { display: inline; margin: 0; font-style: normal; font-size: .78rem; font-weight: 600; color: var(--ember-600); }
.cfg--buybox .cfg__opt:has(input:checked) { background: var(--ink-900); border-color: var(--ink-900); box-shadow: none; }
.cfg--buybox .cfg__opt:has(input:checked) strong { color: #fff; }
.cfg--buybox .cfg__opt:has(input:checked) .cfg__price { color: #f0b9a6; }
.cfg--buybox .cfg__opt:has(input:focus-visible) { outline: 2px solid var(--ember-600); outline-offset: 2px; }
.cfg--buybox .cfg__opt--check strong::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 7px; border: 1.5px solid currentColor; vertical-align: -1px; }
.cfg--buybox .cfg__opt--check:has(input:checked) strong::before { background: currentColor; box-shadow: inset 0 0 0 2px var(--ink-900); }
.cfg--buybox .cfg__group select { width: 100%; height: 40px; }

/* under the pictures: sizes, or the short text of products without choices */
.pdp-dims, .pdp-about { margin: 0; background: var(--stone-0); border: 1px solid var(--stone-200); padding: clamp(20px, 2.6vw, 32px); }
.pdp-dims__title { font-size: 1.7rem; margin: 0 0 6px; }
.pdp-dims .spec-table th, .pdp-dims .spec-table td { padding: 10px 0; }
.pdp-dims .spec-table th { padding-right: 16px; }
.pdp-dims .spec-table tr:last-child th, .pdp-dims .spec-table tr:last-child td { border-bottom: 0; }
.pdp-about .buybox__short { margin: 8px 0 0; font-size: .95rem; }

@media (max-width: 980px) {
	.pdp, .pdp--cfg { grid-template-areas: none; grid-template-rows: none; }
	.pdp > .gallery, .pdp > .buybox, .pdp > .pdp__main { grid-area: auto; }
}

/* ---- shop filters (2026-11-29): groups from the product data, live counts, removable active filters */
fieldset.filter-group { border: 0; border-top: 1px solid var(--stone-300); margin: 0; padding: 18px 0 12px; min-width: 0; }
fieldset.filter-group legend { float: left; width: 100%; padding: 0; margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-900); }
fieldset.filter-group > :not(legend) { clear: both; }
.check[hidden] { display: none; }
.check.is-empty { opacity: .45; cursor: default; }
.check input:disabled { cursor: default; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; }
.active-filters[hidden] { display: none; }
.chip--remove { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; background: var(--ink-900); color: #fff; border-color: var(--ink-900); font: inherit; font-size: .85rem; }
.chip--remove::after { content: "×"; font-size: 1.15em; line-height: 1; }
.chip--remove:hover { background: var(--ember-600); border-color: var(--ember-600); }
.active-filters .link-reset { margin-left: 6px; background: none; border: 0; cursor: pointer; }
/* filtered-out cards: the card's own display rule would otherwise beat the hidden attribute (filters looked broken) */
.p-card[hidden], .product-grid > [hidden] { display: none !important; }
.masonry > [hidden] { display: none !important; }
/* anything the theme or its scripts mark as hidden stays hidden, whatever display rule the element has */
[hidden]:not([hidden="until-found"]) { display: none !important; }
