/* Bjorgk — mobile PDP CRO pass (24/09/2026). Loaded only on the 5 canonical PDPs (body.bj-cro). */

/* ---------- Trustpilot rating: one line ---------- */
.bj-cro.single-product.singular .prod-title .rating-wrap { flex-wrap: nowrap; white-space: nowrap; column-gap: 8px; }
.bj-cro .prod-title .rating-wrap .rating img { display: block; height: auto; }
@media (max-width: 767px) {
	.bj-cro.single-product.singular .prod-title .rating-wrap { font-size: 15px; }
	.bj-cro .prod-title .rating-wrap .rating img { width: 100px; }
}
@media (max-width: 349px) {
	.bj-cro.single-product.singular .prod-title .rating-wrap { flex-wrap: wrap; white-space: normal; font-size: 14px; }
}

/* ---------- Compact B2G1 line under the price ---------- */
.bj-cro .summary .bj-cro-offer { margin: 2px 0 14px; font-size: 14px; line-height: 1.4; color: var(--text-dark); }
.bj-cro .summary .bj-cro-offer strong { color: #2D9B95; font-weight: 700; }

/* ---------- Variation table: full width (grid children otherwise shrink-wrap inside the table cell) ---------- */
.bj-cro.single-product .summary table.variations,
.bj-cro.single-product .summary table.variations tbody,
.bj-cro.single-product .summary table.variations td.value { display: block; width: 100%; }

/* ---------- Variation rows: slightly tighter rhythm ---------- */
.bj-cro.single-product .summary table.variations tr { margin-bottom: 22px !important; }
.bj-cro.single-product .summary table.variations tr th.label { margin-bottom: 12px; }

/* Size label vs "Size Guide" link: reserve room so they never collide (320px). */
.bj-cro.single-product .summary table.variations tr th.label label[for="pa_size"] { display: block; padding-right: 108px; line-height: 1.35; }
.bj-cro .summary .size_guide_btn { white-space: nowrap; }

/* ---------- Fit line (above the size buttons) ---------- */
.bj-cro .summary .bjorgk-size-note { margin: -2px 0 12px; font-size: 13.5px; line-height: 1.4; color: #1d3c45; font-weight: 400; }
.bj-cro .summary .bjorgk-size-note--strong { display: inline-block; padding: 6px 10px; border-left: 3px solid #2D9B95; border-radius: 4px; background: #F2F8F7; font-weight: 600; }

/* ---------- Size buttons: compact grid, 48px targets, two-line UK/EU labels ---------- */
.bj-cro .single_wrap .cfvsw-swatches-container[swatches-attr="attribute_pa_size"] { display: grid !important; gap: 8px; row-gap: 8px; }
.bj-cro-grouped-sizes .single_wrap .cfvsw-swatches-container[swatches-attr="attribute_pa_size"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bj-cro-eu-sizes .single_wrap .cfvsw-swatches-container[swatches-attr="attribute_pa_size"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bj-cro .single_wrap .cfvsw-swatches-container[swatches-attr="attribute_pa_size"] .cfvsw-label-option {
	width: auto !important; min-width: 0 !important; max-width: none !important;
	min-height: 48px !important; height: auto !important; padding: 6px 4px !important;
	display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.15;
}
.bj-cro .single_wrap .cfvsw-swatches-container[swatches-attr="attribute_pa_size"] .cfvsw-swatch-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; height: auto; }
.bj-cro .bj-sz-uk { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; }
.bj-cro .bj-sz-eu { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; opacity: .75; white-space: nowrap; }
.bj-cro-eu-sizes .single_wrap .cfvsw-swatches-container[swatches-attr="attribute_pa_size"] .cfvsw-label-option { font-size: 15px; }
/* keep the existing behaviour: sizes unavailable for the selected colour stay hidden */
.bj-cro .single_wrap .cfvsw-swatches-container[swatches-attr="attribute_pa_size"] .cfvsw-label-option.cfvsw-swatches-disabled { display: none !important; }
@media (max-width: 349px) {
	.bj-cro .bj-sz-uk { font-size: 13px; }
	.bj-cro .bj-sz-eu { font-size: 11px; }
}

/* ---------- Cloud Slides only: 5 colour swatches per row (4 below 350px) ---------- */
.bj-cro-swatch5 .single_wrap .cfvsw-swatches-container[swatches-attr="attribute_pa_color"] { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.bj-cro-swatch5.bjorgk-img-swatches .single_wrap .cfvsw-swatches-container[swatches-attr="attribute_pa_color"] .cfvsw-image-option {
	width: 100% !important; min-width: 0 !important; max-width: none !important;
	height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: 1 / 1;
}
@media (max-width: 349px) {
	.bj-cro-swatch5 .single_wrap .cfvsw-swatches-container[swatches-attr="attribute_pa_color"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
	.bj-cro-swatch5 .single_wrap .cfvsw-swatches-container[swatches-attr="attribute_pa_color"] { grid-template-columns: repeat(auto-fill, 64px); }
}

/* ---------- Reassurance row (now directly under Add to Cart) ---------- */
.bj-cro .summary .shipping_features.bj-cro-trust { margin: 14px 0 22px; }
@media (max-width: 767px) {
	.bj-cro .summary .shipping_features.bj-cro-trust .shipping_feat_wrap { flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
	.bj-cro .summary .shipping_features.bj-cro-trust .ship_box { column-gap: 6px; }
	.bj-cro .summary .shipping_features.bj-cro-trust .ship_box span { font-size: 12.5px; white-space: nowrap; }
	.bj-cro .summary .shipping_features.bj-cro-trust .ship_box .icon { width: 18px; height: 18px; }
}

/* ---------- Mix & Match now below the reassurance row ---------- */
.bj-cro .summary .variations_button .build_comfort_main { margin-top: 18px; }

/* ---------- Mix & Match badge ---------- */
/* Mobile: flat pill tab sitting on the box's top border (no rotation), so it never overlaps the headline or chevron */
.bj-cro .summary .shipping_features.bj-cro-trust { margin-bottom: 0; }
.bj-cro .summary .variations_button .build_comfort_main { margin-top: 32px; }
@media (max-width: 767px) {
	.bj-cro .summary .variations_button .build_comfort_main { margin-top: 22px; }
	.bj-cro .build_comfort_main .mix_badge { top: -29px; right: 0; left: auto; width: auto; height: 24px; padding: 0 12px; border-radius: 12px; transform: none; z-index: 2; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
	.bj-cro .build_comfort_main .mix_badge span { font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .2px; white-space: nowrap; }
}
@media (min-width: 768px) {
	.bj-cro .summary .variations_button .build_comfort_main { margin-top: 44px; }
	.bj-cro .build_comfort_main .mix_badge { top: -12px; right: -44px; }
}

/* ---------- Desktop reassurance row: each item on one line ---------- */
@media (min-width: 768px) {
	.bj-cro .summary .shipping_features.bj-cro-trust .shipping_feat_wrap { width: 100%; justify-content: space-between; }
	.bj-cro .summary .shipping_features.bj-cro-trust .ship_box { padding: 0 14px; column-gap: 8px; white-space: nowrap; }
	.bj-cro .summary .shipping_features.bj-cro-trust .ship_box:first-child { padding-left: 0; }
	.bj-cro .summary .shipping_features.bj-cro-trust .ship_box:last-child { padding-right: 0; }
	.bj-cro .summary .shipping_features.bj-cro-trust .ship_box span { font-size: 14px; white-space: nowrap; }
	.bj-cro .summary .shipping_features.bj-cro-trust .ship_box .icon { width: 24px; height: 24px; flex: 0 0 auto; }
}
