/**
 * Free-gift promo (Buy 28g Dried Mushrooms -> 2 FREE 3.5g gifts).
 * Tokens from DESIGN.md: Obsidian #12101A, Porcelain #FFFFFF, Bone #F8F5F0, Violet #792BEE.
 */
:root {
	--bsd-obsidian: #12101A;
	--bsd-porcelain: #FFFFFF;
	--bsd-bone: #F8F5F0;
	--bsd-violet: #792BEE;
	--bsd-line: rgba(255, 255, 255, .12);
	--bsd-border: rgba(121, 43, 238, .4);
	--bsd-muted: rgba(255, 255, 255, .76);
	--bsd-font: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}

/* Plus Jakarta Sans on every promo element (badges, buttons, labels). */
.bsd-gift, .bsd-gift *,
.cst-announce__pill {
	font-family: var(--bsd-font);
}

/* Pill badge ---------------------------------------------------------- */
.bsd-pill {
	display: inline-block;
	margin: 0;
	padding: 4px 10px;
	border-radius: 9999px;
	background: var(--bsd-violet);
	color: var(--bsd-porcelain);
	font-size: .625rem;
	font-weight: 700;
	letter-spacing: .1em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Gift card (drawer + checkout) --------------------------------------- */
.bsd-gift-slot:empty { display: none; }
.bsd-gift-slot--drawer { padding: 12px 20px 4px; }
.bsd-gift-slot--checkout { margin: 0 0 20px; }
.bsd-gift {
	padding: 14px;
	border: 1px solid var(--bsd-border);
	border-radius: 16px;
	background: var(--bsd-obsidian);
	color: var(--bsd-porcelain);
}
.bsd-gift__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bsd-gift__count { color: var(--bsd-muted); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; }
.bsd-gift__title { margin: 10px 0 8px; color: var(--bsd-porcelain); font-size: .9375rem; font-weight: 800; letter-spacing: 0; line-height: 1.25; text-transform: none; }
.bsd-gift__track { height: 6px; overflow: hidden; border-radius: 9999px; background: rgba(255, 255, 255, .16); }
.bsd-gift__fill { display: block; height: 100%; border-radius: 9999px; background: var(--bsd-violet); transition: width .4s ease; }
.bsd-gift__sub { margin: 8px 0 0; color: var(--bsd-muted); font-size: .75rem; line-height: 1.45; }
.bsd-gift__list { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; max-height: 260px; overflow-y: auto; }
.bsd-gift__item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px;
	border: 1px solid var(--bsd-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, .05);
}
.bsd-gift__item.is-selected { border-color: var(--bsd-violet); background: rgba(121, 43, 238, .16); }
.bsd-gift__thumb { flex: 0 0 38px; width: 38px; height: 38px; overflow: hidden; border-radius: 8px; background: var(--bsd-bone); }
.bsd-gift__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bsd-gift__meta { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.bsd-gift__name { overflow: hidden; color: var(--bsd-porcelain); font-size: .75rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.bsd-gift__price { color: var(--bsd-muted); font-size: .6875rem; }
.bsd-gift__price strong { color: var(--bsd-porcelain); }
.bsd-gift__price del { opacity: .7; }
.bsd-gift__btn {
	flex: 0 0 auto;
	padding: 8px 12px;
	border: 0;
	border-radius: 9999px;
	background: var(--bsd-porcelain);
	color: var(--bsd-obsidian);
	font-family: var(--bsd-font);
	font-size: .625rem;
	font-weight: 800;
	letter-spacing: .06em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .bsd-gift__btn:hover:not(:disabled) { background: var(--bsd-bone);
  }
}
.bsd-gift__item.is-selected .bsd-gift__btn { box-shadow: 0 0 0 2px var(--bsd-violet); }
.bsd-gift__btn:disabled { opacity: .4; cursor: not-allowed; }
.bsd-gift__toggle {
	padding: 0;
	border: 0;
	background: none;
	color: var(--bsd-porcelain);
	font-family: var(--bsd-font);
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.2;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-transform: none;
	cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .bsd-gift__toggle:hover { color: #c9aaff;
  }
}
.bsd-gift__msg { margin: 8px 0 0; color: #ffd9d9; font-size: .6875rem; }
.bsd-gift__msg:empty { display: none; }
.bsd-gift-slot.is-busy { opacity: .6; pointer-events: none; }

/* Compact summary once 2 of 2 gifts are chosen; "Change strains" re-opens the picker. */
.bsd-gift.is-full:not(.is-open) .bsd-gift__track,
.bsd-gift.is-full:not(.is-open) .bsd-gift__sub,
.bsd-gift.is-full:not(.is-open) .bsd-gift__item:not(.is-selected) { display: none; }
.bsd-gift.is-full .bsd-gift__title { margin: 8px 0 0; font-size: .8125rem; }
.bsd-gift.is-full:not(.is-open) .bsd-gift__list { max-height: none; overflow: visible; }
.bsd-gift.is-full .bsd-gift__track { margin-top: 8px; }

.bsd-gift button:focus-visible {
	outline: 2px solid var(--bsd-porcelain);
	outline-offset: 2px;
}

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

