/* Variant families - selectors on the product page (tpl_modules_variant_selectors.php) */
/* Same placement and label look as the attribute options (#productAttributes, h4.optionName) */
.productVariants { margin: 20px 0 20px 20px; }
.productVariants.is-loading { opacity: .5; pointer-events: none; }
.pv-dim { margin: 10px 0; }
.pv-label { font-family: 'Tauri', sans-serif; font-size: 1.1em; font-weight: bold; text-transform: uppercase; line-height: 1.5em; margin-bottom: 4px; color: #111; }
.pv-current { font-family: inherit; font-weight: normal; text-transform: none; color: #555; }
.pv-options { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-option { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 40px; padding: 6px 10px; border: 1px solid #bbb; border-radius: 4px; background: #fff; color: #333; text-decoration: none; line-height: 1.2; }
.pv-option:hover { border-color: #333; color: #000; text-decoration: none; }
.pv-option.is-selected { border: 2px solid #333; padding: 5px 9px; font-weight: bold; }
.pv-option.is-oos { color: #999; background: #f4f4f4; border-style: dashed; }
.pv-option.is-oos .pv-swatch { opacity: .45; }
.pv-option.is-unavailable { position: relative; overflow: hidden; color: #aaa; background: #f4f4f4; border-style: dashed; }
.pv-option.is-unavailable .pv-swatch { opacity: .35; }
/* Diagonal line across the button: the value doesn't exist with the current choices */
.pv-option.is-unavailable::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #bbb; transform: rotate(-20deg); pointer-events: none; }
.pv-type-image .pv-option { padding: 4px; max-width: 90px; }
.pv-type-image .pv-option.is-selected { padding: 3px; }
.pv-swatch { display: block; width: 48px; height: 48px; object-fit: contain; margin-bottom: 3px; }
.pv-type-image .pv-name { font-size: 11px; text-align: center; word-break: break-word; }
/* Border, radius and padding come from the theme's select rule, like .wrapperAttribsOptions select */
#productVariants .pv-select { display: block; height: 40px; width: auto; min-width: 150px; max-width: 100%; }
#productVariants a.pv-option, #productVariants a.pv-option:link, #productVariants a.pv-option:visited,
#productVariants a.pv-option:hover, #productVariants a.pv-option .pv-name { text-decoration: none; color: inherit; }
#productVariants a.pv-option { color: #333; }
#productVariants a.pv-option.is-oos { color: #999; }
#productVariants a.pv-option.is-unavailable { color: #aaa; }

/* Specifikationer (egenskaper) */
#productSpecs { clear: both; float: left; width: 100%; box-sizing: border-box; margin: 0 0 20px; padding: 1em; background: #f0f0f0; line-height: 150%; }
#productSpecs table.productSpecs { border-collapse: collapse; width: 100%; max-width: 640px; background: #fff; }
#productSpecs table.productSpecs th, #productSpecs table.productSpecs td { padding: 6px 10px; border-bottom: 1px solid #e5e5e5; text-align: left; vertical-align: top; }
#productSpecs table.productSpecs th { width: 40%; font-weight: normal; color: #666; }
#productSpecs table.productSpecs tr:nth-child(odd) { background: #f8f8f8; }

