/* Foton, erbjudande och popup (november 2026). */

/* Foton i hjältesektionen */
.bx-media-photo { position: relative; min-width: 0; }
.bx-photo { margin: 0; }
.bx-photo img {
	display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover;
	border-radius: 24px; background: var(--bx-line); box-shadow: var(--bx-shadow);
}
.bx-badge {
	position: absolute; left: -16px; bottom: 28px; margin: 0;
	display: inline-flex; align-items: center; min-height: 46px; padding: 10px 18px 10px 46px;
	background: var(--bx-card); border: 1px solid var(--bx-line); border-radius: 999px; box-shadow: var(--bx-shadow);
	font-size: .9375rem; font-weight: 600; line-height: 1.25;
}
.bx-badge::before { content: ""; position: absolute; left: 12px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--bx-accent); }
.bx-badge::after {
	content: ""; position: absolute; left: 18px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: var(--bx-accent-ink);
	-webkit-mask: var(--bx-check) center / contain no-repeat; mask: var(--bx-check) center / contain no-repeat;
}
@media (max-width: 960px) { .bx-badge { left: 14px; bottom: 14px; } }
@media (prefers-reduced-motion: no-preference) {
	.bx-media-photo { animation: bx-up 1s .1s var(--bx-ease) both; }
	.bx-badge { animation: bx-up .9s .5s var(--bx-ease) both; }
}
.editor-styles-wrapper .bx-badge { position: static; margin-top: 12px; }

/* Kort i en kolumn */
.bx-stack { display: grid; gap: 16px; margin-top: 8px; width: 100%; }

/* Erbjudande på startsidan */
.bx-promo {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: center;
	background: var(--bx-card); border: 1px solid var(--bx-line); border-radius: 28px; padding: clamp(28px, 5vw, 56px);
}
.bx-promo__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.bx-promo__media { min-width: 0; }
@media (max-width: 900px) { .bx-promo { grid-template-columns: minmax(0, 1fr); } }

/* Mätaren: vardagliga ord först, facktermen liten */
.bx-meter__abbr { display: block; font-size: .75rem; opacity: .75; margin-top: 2px; }

/* Popup med erbjudandet */
.bx-offer {
	position: fixed; z-index: 70; right: 24px; bottom: 24px; width: min(390px, calc(100vw - 24px));
	background: var(--bx-card); color: var(--bx-text); border: 1px solid var(--bx-line); border-radius: 22px; overflow: hidden;
	box-shadow: 0 2px 6px #13141714, 0 30px 70px #13141733;
	opacity: 0; transform: translateY(18px) scale(.98); transform-origin: bottom right;
	transition: opacity .35s var(--bx-ease), transform .5s var(--bx-ease);
}
.bx-offer[hidden] { display: none; }
.bx-offer.is-visible { opacity: 1; transform: none; }
.bx-offer__top { position: relative; height: 112px; background: var(--bx-accent); overflow: hidden; }
.bx-offer__top::before {
	content: ""; position: absolute; right: -60px; top: -90px; width: 220px; height: 220px; border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--bx-accent-ink) 18%, transparent);
	box-shadow: 0 0 0 36px color-mix(in srgb, var(--bx-accent-ink) 4%, transparent);
}
.bx-offer__window {
	position: absolute; left: 24px; right: 64px; bottom: 0; height: 78px; background: var(--bx-card);
	border-radius: 14px 14px 0 0; padding: 10px 14px; display: grid; gap: 8px; align-content: start;
}
.bx-offer__bar { display: flex; gap: 5px; }
.bx-offer__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--bx-line); }
.bx-offer__lines { display: grid; gap: 6px; }
.bx-offer__lines b { display: block; width: 62%; height: 10px; border-radius: 4px; background: var(--bx-text); }
.bx-offer__lines span { display: block; height: 7px; border-radius: 4px; background: var(--bx-line); }
.bx-offer__lines span + span { width: 70%; }
.bx-offer__tag {
	position: absolute; right: 14px; bottom: 12px; padding: 5px 10px; border-radius: 999px;
	background: var(--bx-accent-ink); color: var(--bx-accent); font-size: .75rem; font-weight: 700; white-space: nowrap;
}
.bx-offer__close {
	position: absolute; top: 12px; right: 12px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0;
	background: color-mix(in srgb, var(--bx-accent-ink) 16%, transparent); color: var(--bx-accent-ink);
	display: grid; place-items: center; cursor: pointer; transition: background-color .15s;
}
.bx-offer__close:hover { background: color-mix(in srgb, var(--bx-accent-ink) 28%, transparent); }
.bx-offer__close .bx-i { width: 18px; height: 18px; }
.bx-offer__close:focus-visible { outline-color: var(--bx-accent-ink); }
.bx-offer__body { padding: 20px 24px 22px; display: grid; gap: 10px; }
.bx-offer__label { font-size: .8125rem; font-weight: 600; color: var(--bx-muted); }
.bx-offer h2 { font-size: 1.4rem; letter-spacing: -.03em; line-height: 1.15; }
.bx-offer__body > p:not(.bx-offer__label) { color: var(--bx-muted); font-size: .9375rem; }
.bx-offer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px; }
.bx-offer__no {
	background: none; border: 0; padding: 8px 4px; font: inherit; font-size: .9375rem; color: var(--bx-muted); cursor: pointer;
	text-decoration: underline; text-decoration-color: var(--bx-line); text-underline-offset: .3em;
}
.bx-offer__no:hover { color: var(--bx-text); text-decoration-color: currentColor; }
@media (max-width: 560px) {
	.bx-offer { left: 12px; right: 12px; bottom: 12px; width: auto; }
	.bx-offer__top { height: 92px; }
	.bx-offer__window { height: 62px; }
}
@media print { .bx-offer { display: none !important; } }
