/*
 * Bubbi – útlitsbreytingar
 *
 * Virkt þema á staging er Neve. Þemanu sjálfu er ekki breytt.
 * Hleðst inn á eftir þemanu (forgangur 99), svo reglur hér vinna oftast án !important.
 *
 * Skipulag:
 *   1. Breytur
 *   2. Forsíða: tvískipt hero
 *   3. Tónleikalisti
 *   4. Textaverk í hero
 *   5. Beint streymi
 *   6. Bubbaklúbburinn (póstlisti)
 *   7. Undirsíða: Þorláksmessutónleikar
 *   8. Vörusíða: myndavörn og skilmálar
 */

/* 1. Breytur ------------------------------------------------------- */
:root {
	--bb-accent: var(--nv-primary-accent, #ff6600);
	--bb-accent-dark: var(--nv-secondary-accent, #d85600);
	--bb-ink: #141414;
	--bb-ink-2: #1e1e1e;
	--bb-paper: #f4f1ec;
	--bb-line-dark: rgba(255, 255, 255, .14);
	--bb-line-light: rgba(20, 20, 20, .12);
	--bb-muted-dark: rgba(255, 255, 255, .66);
	--bb-muted-light: #5b5752;
	--bb-display: "EarlyEditionJNL", "Oswald", "Impact", sans-serif;
	--bb-gutter: clamp(20px, 4vw, 64px);
}

/* 2. Forsíða: tvískipt hero --------------------------------------- */
.bf-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: min(100vh, 980px);
}

.bf-pane {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
}

.bf-pane__inner {
	position: relative;
	z-index: 1;
	padding: calc(var(--bb-gutter) * 1.25) var(--bb-gutter) var(--bb-gutter);
	width: 100%;
	max-width: 720px;
}

.bf-pane--tonleikar {
	background: var(--bb-ink);
	color: #fff;
	align-items: flex-end;
}

.bf-pane--tonleikar .bf-pane__inner { padding-top: clamp(150px, 20vh, 240px); }

/* Myndin fyllir efri hluta dálksins svo hún stækki ekki óhóflega;
   x-staðsetning sker innbrennda textann hægra megin í myndinni af. */
.bf-pane--tonleikar .bf-bg {
	bottom: auto;
	height: min(72%, 860px);
	background-position: 29% 16%;
}

.bf-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: 32% 18%;
	filter: grayscale(1);
}

.bf-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 10, 10, .1) 0%, rgba(10, 10, 10, .45) 40%, rgba(10, 10, 10, .9) 75%, var(--bb-ink) 100%);
}

.bf-pane--textaverk {
	background: var(--bb-paper);
	color: var(--bb-ink);
	justify-content: center;
}

/* Fyrirsagnir beggja dálka í sömu línu; textaverkafyrirsögnin í einni línu. */
@media (min-width: 961px) {
	.bf-pane--textaverk { justify-content: flex-start; }
	.bf-pane--textaverk .bf-pane__inner { padding-top: clamp(150px, 20vh, 240px); }
}
.bf-pane--textaverk .bf-pane__inner { container-type: inline-size; }
.bf-pane--textaverk .bf-titill {
	white-space: nowrap;
	font-size: min(clamp(2.4rem, 4.6vw, 4.25rem), 9.6cqi);
}

.bf-yfir {
	margin: 0 0 .5rem;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--bb-accent);
}

.bf-titill {
	margin: 0 0 .75rem;
	font-family: var(--bb-display);
	font-weight: 600;
	font-size: clamp(2.4rem, 4.6vw, 4.25rem);
	line-height: .95;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: inherit;
}

.bf-texti {
	margin: 0 0 1.75rem;
	max-width: 46ch;
	font-size: 1.02rem;
	line-height: 1.55;
}

.bf-pane--tonleikar .bf-texti { color: var(--bb-muted-dark); }
.bf-pane--textaverk .bf-texti { color: var(--bb-muted-light); }

.bf-link {
	display: inline-flex;
	gap: .4em;
	margin-top: 1.25rem;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	border-bottom: 2px solid var(--bb-accent);
	padding-bottom: 2px;
}

.bf-link:hover,
.bf-link:focus-visible { color: var(--bb-accent); }

.bf-hero a:focus-visible,
.bts a:focus-visible,
.bk a:focus-visible {
	outline: 3px solid var(--bb-accent);
	outline-offset: 3px;
}

/* 3. Tónleikalisti ------------------------------------------------- */
.bt-listi {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bt-tonleikar {
	display: grid;
	grid-template-columns: 3.6rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	padding: .5rem 0;
	border-top: 1px solid var(--bb-line-dark);
	margin: 0;
}

.bt-tonleikar:last-child { border-bottom: 1px solid var(--bb-line-dark); }

.bt-dags {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.bt-dagur {
	font-family: var(--bb-display);
	font-size: 1.9rem;
	color: var(--bb-accent);
}

.bt-man {
	margin-top: .2rem;
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .75;
}

.bt-upplysingar {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .15rem .6rem;
	min-width: 0;
}

.bt-stadur {
	font-weight: 700;
	font-size: 1.02rem;
}

.bt-baer { font-weight: 400; opacity: .7; }

.bt-meta {
	flex-basis: 100%;
	font-size: .82rem;
	opacity: .62;
}

.bt-merki {
	order: -1;
	flex-basis: 100%;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--bb-accent);
}

.bt-midar,
.bt-uppselt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 5.5rem;
	min-height: 42px;
	padding: 0 1rem;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.bt-midar {
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, .8);
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.bt-midar:hover,
.bt-midar:focus-visible {
	background: var(--bb-accent);
	border-color: var(--bb-accent);
	color: #fff;
}

.bt-uppselt {
	color: rgba(255, 255, 255, .55);
	border: 1.5px dashed rgba(255, 255, 255, .3);
}

.is-uppselt .bt-stadur,
.is-uppselt .bt-dagur { opacity: .55; }

/* Ljós útgáfa (undirsíða) */
.bt-listi--sida .bt-tonleikar { border-color: var(--bb-line-light); padding: 1.1rem 0; }
.bt-listi--sida .bt-dagur { font-size: 2.4rem; }
.bt-listi--sida .bt-tonleikar { grid-template-columns: 4.5rem minmax(0, 1fr) auto; }
.bt-listi--sida .bt-stadur { font-size: 1.2rem; }
.bt-listi--sida .bt-midar { color: var(--bb-ink); border-color: var(--bb-ink); }
.bt-listi--sida .bt-midar:hover,
.bt-listi--sida .bt-midar:focus-visible { color: #fff; }
.bt-listi--sida .bt-uppselt { color: #777; border-color: #bbb; }

/* 4. Textaverk í hero ---------------------------------------------- */
.bf-verk {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
	gap: 14px;
}

.bf-verk__item { margin: 0; }

.bf-verk__item a {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	color: inherit;
	text-decoration: none;
}

.bf-verk__mynd {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .08);
	transition: transform .2s ease;
}

.bf-verk__item a:hover .bf-verk__mynd { transform: translateY(-3px); }

.bf-verk__nafn {
	font-weight: 600;
	font-size: .88rem;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bf-verk__meta {
	font-size: .78rem;
	color: var(--bb-muted-light);
}

.bf-handmalud {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: .1rem 1rem;
	align-items: center;
	margin: 0 0 1.25rem;
	padding: 1rem 1.15rem;
	background: var(--bb-ink);
	color: #fff;
	text-decoration: none;
}

.bf-handmalud__merki {
	grid-column: 1;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--bb-accent);
}

.bf-handmalud__titill {
	grid-column: 1;
	font-family: var(--bb-display);
	font-size: 1.45rem;
	text-transform: uppercase;
	line-height: 1.05;
}

.bf-handmalud__texti {
	grid-column: 1;
	font-size: .85rem;
	color: var(--bb-muted-dark);
}

.bf-handmalud__texti .amount { color: #fff; font-weight: 600; }

.bf-handmalud__cta {
	grid-column: 2;
	grid-row: 1 / span 3;
	font-weight: 700;
	white-space: nowrap;
	color: var(--bb-accent);
}

.bf-handmalud:hover { color: #fff; background: #000; }

.bf-flokkar {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.bf-takki {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 1.1rem;
	border: 1.5px solid var(--bb-ink);
	color: var(--bb-ink);
	font-weight: 700;
	font-size: .85rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
}

.bf-takki:hover,
.bf-takki:focus-visible { background: var(--bb-ink); color: #fff; }

.bf-takki--fylltur { background: var(--bb-accent); border-color: var(--bb-accent); color: #fff; }
.bf-takki--fylltur:hover,
.bf-takki--fylltur:focus-visible { background: var(--bb-accent-dark); border-color: var(--bb-accent-dark); }

/* 5. Beint streymi -------------------------------------------------- */
.bf-streymi {
	margin-top: 1.25rem;
	padding: .85rem 1.1rem;
	border-left: 3px solid var(--bb-accent);
	background: rgba(255, 255, 255, .06);
}

.bf-streymi__titill {
	display: flex;
	align-items: center;
	gap: .55rem;
	margin: 0 0 .3rem;
	font-weight: 700;
	font-size: .95rem;
}

.bf-streymi__ikon {
	width: .6rem;
	height: .6rem;
	border-radius: 50%;
	background: #e5322d;
	box-shadow: 0 0 0 0 rgba(229, 50, 45, .6);
	animation: bb-puls 2s infinite;
	flex: none;
}

@keyframes bb-puls {
	0% { box-shadow: 0 0 0 0 rgba(229, 50, 45, .55); }
	70% { box-shadow: 0 0 0 .55rem rgba(229, 50, 45, 0); }
	100% { box-shadow: 0 0 0 0 rgba(229, 50, 45, 0); }
}

.bf-streymi__texti {
	margin: 0 0 .5rem;
	font-size: .88rem;
	opacity: .78;
}

.bf-streymi__cta {
	font-weight: 700;
	font-size: .88rem;
	color: var(--bb-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bf-streymi--sida {
	margin: 2.5rem 0 0;
	padding: 1.5rem 1.75rem;
	background: var(--bb-ink);
	color: #fff;
}

.bf-streymi--sida .bf-streymi__titill { font-size: 1.15rem; }

/* 6. Bubbaklúbburinn ----------------------------------------------- */
.bk {
	background: var(--bb-ink-2);
	color: #fff;
	padding: clamp(48px, 7vw, 96px) var(--bb-gutter);
	scroll-margin-top: 90px;
}

.bk__inner {
	max-width: 1120px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
}

.bk__titill {
	margin: 0 0 .75rem;
	font-family: var(--bb-display);
	font-weight: 600;
	font-size: clamp(2.2rem, 4vw, 3.4rem);
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.bk__texti p {
	margin: 0 0 1.1rem;
	color: var(--bb-muted-dark);
	font-size: 1.02rem;
	line-height: 1.55;
	max-width: 52ch;
}

.bk__kostir {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.25rem;
	font-size: .85rem;
	color: #fff;
}

.bk__kostir li { display: flex; align-items: center; gap: .45rem; margin: 0; }
.bk__kostir li::before { content: ""; width: .45rem; height: .45rem; background: var(--bb-accent); flex: none; }

.bk .noptin-optin-form-wrapper { margin: 0; padding: 0; border: 0; background: transparent; max-width: none; }
.bk .noptin-form-footer { padding: 0 !important; }
.bk .noptin-form-note { display: none; }

.bk .noptin-form-fields {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin: 0;
}

.bk .noptin-form-field-email { flex: 1 1 240px; margin: 0; }
.bk .noptin-form-field-submit { flex: 0 0 auto; margin: 0; }

.bk input.noptin-form-field__email {
	width: 100%;
	min-height: 56px;
	padding: 0 1.1rem;
	border: 1.5px solid rgba(255, 255, 255, .35);
	border-radius: 0;
	background: #fff;
	color: var(--bb-ink);
	font-size: 1rem;
}

.bk input.noptin-form-field__email:focus {
	outline: 3px solid var(--bb-accent);
	outline-offset: 0;
	border-color: var(--bb-accent);
}

.bk input.noptin-form-submit {
	min-height: 56px;
	width: auto;
	padding: 0 1.6rem;
	border: 0;
	border-radius: 0;
	background: var(--bb-accent) !important;
	background-image: none !important;
	color: #fff !important;
	text-indent: 0 !important;
	font-family: var(--bb-display);
	font-size: 1.35rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
}

.bk input.noptin-form-submit:hover,
.bk input.noptin-form-submit:focus-visible { background: var(--bb-accent-dark) !important; }

.bk .noptin-response:not(:empty) { margin-top: .75rem; color: #fff; }

.bk__samthykki {
	margin: .75rem 0 0;
	font-size: .78rem;
	color: var(--bb-muted-dark);
}

.bk__samthykki a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* 7. Undirsíða: Þorláksmessutónleikar ----------------------------- */
.bts__haus {
	position: relative;
	min-height: clamp(380px, 56vh, 560px);
	display: flex;
	align-items: flex-end;
	background: var(--bb-ink);
	color: #fff;
	overflow: hidden;
}

.bts__haus .bf-bg { background-position: 32% 22%; }

.bts__haus .bf-bg::after {
	background: linear-gradient(90deg, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .6) 55%, rgba(10, 10, 10, .2) 100%), linear-gradient(0deg, var(--bb-ink) 0%, transparent 40%);
}

.bts__haus-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: var(--bb-gutter);
}

.bts__haus .bf-texti { color: var(--bb-muted-dark); }

.bts__efni {
	max-width: 1140px;
	margin: 0 auto;
	padding: clamp(40px, 6vw, 80px) 20px;
}

/* Eldra efni síðunnar (Elementor) kemur beint á eftir fyrirsögninni. */
.bts__efni:has(> .bts__leidbeiningar:last-child) { padding-bottom: 0; }
h2.bts__leidbeiningar { margin-bottom: 0; }

.bts__h2 {
	margin: 0 0 1.25rem;
	font-family: var(--bb-display);
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	text-transform: uppercase;
}

.bts__smaa { margin: .9rem 0 0; font-size: .85rem; color: var(--bb-muted-light); }

.bts__leidbeiningar { margin-top: clamp(40px, 6vw, 72px); }
.bts__leidbeiningar h3,
.bts__leidbeiningar h4 { margin: 1.5rem 0 .4rem; font-size: 1.05rem; }
.bts__leidbeiningar p { margin: 0 0 .8rem; line-height: 1.6; }

/* Snjallsímar og spjaldtölvur */
@media (max-width: 960px) {
	.bf-hero { grid-template-columns: 1fr; min-height: 0; }
	.bf-pane__inner { max-width: none; }
	.bf-pane--tonleikar .bf-pane__inner { padding-top: clamp(200px, 52vw, 340px); }
	.bk__inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.bf-titill { font-size: clamp(1.75rem, 9.2vw, 2.4rem); overflow-wrap: anywhere; }
	.bt-tonleikar { grid-template-columns: 3rem minmax(0, 1fr) auto; gap: .75rem; }
	.bt-listi--sida .bt-tonleikar { grid-template-columns: 3.4rem minmax(0, 1fr) auto; }
	.bt-midar, .bt-uppselt { min-width: 0; padding: 0 .8rem; }
	.bf-handmalud { grid-template-columns: 1fr; }
	.bf-handmalud__cta { grid-column: 1; grid-row: auto; margin-top: .4rem; }
	.bk input.noptin-form-submit { width: 100%; }
	.bk .noptin-form-field-submit { flex-basis: 100%; }
}

@media (max-width: 600px) {
	.bf-verk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bf-verk__item:nth-child(n + 5) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.bf-streymi__ikon { animation: none; }
	.bf-verk__mynd, .bt-midar { transition: none; }
}

/* 8. Vörusíða: myndavörn og skilmálar ------------------------------ */
.woocommerce-product-gallery img,
.woocommerce ul.products li.product img,
.bubbi-vorn,
.pswp__img {
	-webkit-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
	-webkit-touch-callout: none;
}

.bh-skilmalar {
	margin: 1.25rem 0;
	padding: 1rem 1.15rem;
	border: 1px solid var(--bb-line-light);
	background: #faf8f5;
	font-size: .9rem;
	line-height: 1.5;
}

.bh-skilmalar p { margin: 0 0 .6rem; }

.bh-skilmalar__titill {
	font-weight: 700;
	font-size: .95rem;
}

.bh-skilmalar__hak {
	display: flex;
	align-items: center;
	gap: .55rem;
	margin: .4rem 0 0;
	font-weight: 600;
	cursor: pointer;
	min-height: 44px;
}

.bh-skilmalar__hak input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--bb-accent); }

/* 9. Hover og focus -------------------------------------------------
 * Þemað/Elementor setja almennt „a:hover { color: #000; text-decoration:
 * underline }“ sem kemur á eftir þessari skrá. Hér er hover skilgreint
 * sérstaklega fyrir hvern hlut, með nægilegri sérhæfni til að vinna. */

:is(.bf-hero, .bts, .bk) a,
:is(.bf-hero, .bts, .bk) a:hover,
:is(.bf-hero, .bts, .bk) a:focus {
	text-decoration: none;
}

/* Miðahnappar */
:is(.bf-hero, .bts) a.bt-midar:hover,
:is(.bf-hero, .bts) a.bt-midar:focus-visible {
	color: #fff;
	background: var(--bb-accent);
	border-color: var(--bb-accent);
}

/* „Allt um tónleikana →“ */
.bf-hero a.bf-link { transition: color .15s ease, border-color .15s ease; }
.bf-hero a.bf-link:hover,
.bf-hero a.bf-link:focus-visible { color: var(--bb-accent); border-bottom-color: #fff; }
.bf-link span { display: inline-block; transition: transform .15s ease; }
.bf-link:hover span { transform: translateX(3px); }

/* Streymi: tengill á dökkum bakgrunni */
:is(.bf-hero, .bts) a.bf-streymi__cta {
	color: var(--bb-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
:is(.bf-hero, .bts) a.bf-streymi__cta:hover,
:is(.bf-hero, .bts) a.bf-streymi__cta:focus-visible {
	color: #fff;
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

/* Textaverk í hero */
.bf-hero .bf-verk__item a:hover,
.bf-hero .bf-verk__item a:focus-visible { color: var(--bb-ink); }
.bf-hero .bf-verk__item a:hover .bf-verk__nafn { color: var(--bb-accent-dark); }

/* Handmáluð kynning */
.bf-hero a.bf-handmalud { transition: background-color .15s ease; }
.bf-hero a.bf-handmalud:hover,
.bf-hero a.bf-handmalud:focus-visible { color: #fff; background: #000; }
.bf-handmalud__cta span { display: inline-block; transition: transform .15s ease; }
.bf-handmalud:hover .bf-handmalud__cta span { transform: translateX(3px); }

/* Flokkahnappar */
.bf-hero a.bf-takki { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.bf-hero a.bf-takki:hover,
.bf-hero a.bf-takki:focus-visible { color: #fff; background: var(--bb-ink); border-color: var(--bb-ink); }
.bf-hero a.bf-takki--fylltur:hover,
.bf-hero a.bf-takki--fylltur:focus-visible { color: #fff; background: var(--bb-accent-dark); border-color: var(--bb-accent-dark); }

/* Persónuverndartengill í Bubbaklúbbnum */
.bk .bk__samthykki a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.bk .bk__samthykki a:hover,
.bk .bk__samthykki a:focus-visible { color: var(--bb-accent); text-decoration: underline; }

/* Póstlistahnappur: Noptin setur myndbakgrunn og felur textann á hover */
.bk .noptin-optin-form-wrapper input.noptin-form-submit,
.bk .noptin-optin-form-wrapper input.noptin-form-submit:hover,
.bk .noptin-optin-form-wrapper input.noptin-form-submit:focus {
	background-image: none !important;
	text-indent: 0 !important;
	color: #fff !important;
	box-shadow: none;
	transition: background-color .15s ease;
}
.bk .noptin-optin-form-wrapper input.noptin-form-submit:hover,
.bk .noptin-optin-form-wrapper input.noptin-form-submit:focus-visible {
	background-color: var(--bb-accent-dark) !important;
}

@media (prefers-reduced-motion: reduce) {
	.bf-link span, .bf-handmalud__cta span, .bf-handmalud, .bf-takki, .bf-link { transition: none; }
}

/* 10. Forsíða: dökkir tónar, mildari skipting og kassar -------------
 * Hægri hlutinn er dökkur eins og sá vinstri en í ögn hlýrri og ljósari
 * tón; mjúk litaskipti á milli í stað skarpra skila. */

:root { --bb-ink-3: #1d1b1a; }

.bf-pane--textaverk {
	background: var(--bb-ink-3);
	color: #fff;
}

.bf-pane--tonleikar::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 28%;
	background: linear-gradient(90deg, rgba(29, 27, 26, 0) 0%, var(--bb-ink-3) 100%);
	pointer-events: none;
	z-index: 0;
}

.bf-pane--textaverk .bf-titill { color: #fff; }
.bf-pane--textaverk .bf-texti { color: var(--bb-muted-dark); }

.bf-kassar {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 1.5rem;
}

.bf-hero a.bf-kassi {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	min-height: 150px;
	padding: 1.15rem 1.25rem 1.05rem;
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .1);
	color: #fff;
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease;
}

.bf-hero a.bf-kassi:hover,
.bf-hero a.bf-kassi:focus-visible {
	background: rgba(255, 255, 255, .07);
	border-color: var(--bb-accent);
	color: #fff;
	text-decoration: none;
}

.bf-kassi--breidur { grid-column: 1 / -1; }

.bf-kassi__merki {
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .14em;
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--bb-accent);
}

.bf-kassi__titill {
	font-family: var(--bb-display);
	font-weight: 600;
	font-size: clamp(1.6rem, 2.3vw, 2.1rem);
	line-height: 1;
	text-transform: uppercase;
}

.bf-kassi__texti {
	font-size: .9rem;
	line-height: 1.45;
	color: var(--bb-muted-dark);
}

.bf-kassi__cta {
	margin-top: auto;
	padding-top: .8rem;
	font-weight: 700;
	font-size: .88rem;
	color: var(--bb-accent);
}

.bf-kassi__cta span { display: inline-block; transition: transform .15s ease; }
.bf-kassi:hover .bf-kassi__cta span { transform: translateX(3px); }

/* Neðstu hnapparnir á dökkum grunni */
.bf-hero .bf-pane--textaverk a.bf-takki {
	border-color: rgba(255, 255, 255, .45);
	color: #fff;
}

.bf-hero .bf-pane--textaverk a.bf-takki:hover,
.bf-hero .bf-pane--textaverk a.bf-takki:focus-visible {
	background: #fff;
	border-color: #fff;
	color: var(--bb-ink);
}

.bf-hero .bf-pane--textaverk a.bf-takki--fylltur { border-color: var(--bb-accent); }
.bf-hero .bf-pane--textaverk a.bf-takki--fylltur:hover,
.bf-hero .bf-pane--textaverk a.bf-takki--fylltur:focus-visible {
	background: var(--bb-accent-dark);
	border-color: var(--bb-accent-dark);
	color: #fff;
}

@media (max-width: 960px) {
	.bf-pane--tonleikar::after { display: none; }
	.bf-pane--textaverk { background: linear-gradient(180deg, var(--bb-ink) 0%, var(--bb-ink-3) 120px); }
}

@media (max-width: 420px) {
	.bf-kassar { grid-template-columns: 1fr; }
	.bf-hero a.bf-kassi { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.bf-kassi, .bf-kassi__cta span { transition: none; }
}

/* 11. Kassar: stærð í horni og pensilstroka ------------------------ */

.bf-kassi__topp {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	min-height: 2.2rem;
}

.bf-kassi__merki { padding-top: .3rem; }

.bf-kassi__staerd {
	position: relative;
	isolation: isolate;
	flex: none;
	display: inline-flex;
	align-items: baseline;
	gap: .25rem;
	font-family: var(--bb-display);
	font-size: clamp(1.6rem, 2vw, 1.95rem);
	font-weight: 600;
	line-height: 1;
	color: #fff;
	white-space: nowrap;
}

.bf-kassi__staerd small {
	font-family: Inter, Arial, sans-serif;
	font-size: .6rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--bb-muted-dark);
}

/* Handmálaði kassinn: stærðin á appelsínugulri pensilstroku */
.bf-kassi--pensill .bf-kassi__staerd {
	padding: .7rem 1rem .6rem 1.4rem;
	margin: -.6rem -.4rem 0 0;
	font-size: clamp(1.8rem, 2.3vw, 2.2rem);
	color: var(--bb-ink);
}

.bf-kassi--pensill .bf-kassi__staerd small { color: rgba(20, 20, 20, .78); }

.bf-pensill {
	position: absolute;
	left: -18px;
	top: -10px;
	width: calc(100% + 30px);
	height: calc(100% + 22px);
	color: var(--bb-accent);
	transform: rotate(-3deg);
	transition: transform .25s ease;
	z-index: -1;
	overflow: visible;
	pointer-events: none;
}

.bf-kassi--pensill:hover .bf-pensill { transform: rotate(-3deg) scale(1.04); }
.bf-kassi--pensill .bf-kassi__titill { margin-top: .35rem; }
.bf-kassi--pensill .bf-kassi__texti { max-width: 46ch; }

@media (prefers-reduced-motion: reduce) {
	.bf-pensill { transition: none; }
}
