/* Biloraux Subscriptions — Subscribe & Save drawer.
   Uses the active theme's design tokens when present (so it matches Biloraux),
   with sensible fallbacks so it still looks clean on any WooCommerce theme. */

/* Subscribe & Save button (on product cards + PDP). */
.blx-sub-btn { cursor: pointer; }
.blx-sub-btn.is-loading { opacity: 0.6; pointer-events: none; }
/* Full-width on product cards (home + shop), sits under the View / Add to Cart row. */
.pcard__buy .blx-card-sub, .products .blx-card-sub { display: block; width: 100%; margin-top: 0.5rem; text-align: center; }

/* Cart + checkout: the "this order includes a subscription" summary box. */
.blx-sub-note {
	margin: 0 0 1.25rem;
	padding: 1rem 1.15rem;
	border: 1.5px solid var(--line-gold, #d8bc6e);
	border-radius: var(--radius, 12px);
	background: var(--gold-wash, #f5efd8);
	color: var(--ink, #1a1a1a);
	line-height: 1.5;
}
.blx-sub-note__title { display: block; margin-bottom: 0.35rem; }
.blx-sub-note__list { margin: 0 0 0.45rem 1.1rem; padding: 0; }
.blx-sub-note__list li { margin: 0.15rem 0; }
.blx-sub-note__foot { font-size: var(--step--1, 0.85rem); color: var(--ink-mute, #6b6455); }

/* Drawer shell */
html.blx-drawer-open { overflow: hidden; }
.blx-drawer { position: fixed; inset: 0; z-index: 100000; }
.blx-drawer[hidden] { display: none; }
.blx-drawer__scrim {
	position: absolute; inset: 0;
	background: rgb(26 26 26 / 0.5);
	opacity: 0; transition: opacity 260ms ease;
}
.blx-drawer.is-open .blx-drawer__scrim { opacity: 1; }
.blx-drawer__panel {
	position: absolute; top: 0; right: 0; height: 100%;
	width: min(420px, 92vw);
	background: var(--bg, #f7f5f1);
	box-shadow: -12px 0 40px rgb(26 26 26 / 0.22);
	display: flex; flex-direction: column;
	transform: translateX(100%);
	transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.blx-drawer.is-open .blx-drawer__panel { transform: translateX(0); }

.blx-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 1.1rem 1.25rem;
	border-bottom: 1px solid var(--line-2, #e3ded2);
}
.blx-drawer__title {
	margin: 0;
	font-family: var(--font-display, inherit);
	font-size: var(--step-1, 1.25rem);
	color: var(--ink, #1a1a1a);
}
.blx-drawer__close {
	background: none; border: 0; cursor: pointer;
	font-size: 1.8rem; line-height: 1; color: var(--ink, #1a1a1a);
	width: 40px; height: 40px; border-radius: 50%;
}
.blx-drawer__close:hover { background: rgb(26 26 26 / 0.06); }

.blx-drawer__body { flex: 1; overflow-y: auto; padding: 1.25rem; }
.blx-drawer__empty { color: var(--ink-mute, #6b6455); line-height: 1.6; margin: 0.5rem 0; }

/* Selected products */
.blx-drawer__items { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.blx-item { display: flex; align-items: center; gap: 0.85rem; }
.blx-item__thumb img { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius, 10px); }
.blx-item__main { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1; }
.blx-item__name { font-weight: 600; color: var(--ink, #1a1a1a); line-height: 1.25; }
.blx-item__price { font-variant-numeric: tabular-nums; color: var(--ink, #1a1a1a); }
.blx-item__qty {
	flex: none; padding: 0.35rem 0.45rem;
	border: 1.5px solid var(--line-2, #e3ded2); border-radius: var(--radius, 8px);
	background: #fff; color: var(--ink, #1a1a1a);
	font: inherit; font-variant-numeric: tabular-nums; cursor: pointer;
}
.blx-item__rm {
	flex: none; background: none; border: 0; cursor: pointer;
	font-size: 1.4rem; line-height: 1; color: var(--ink-mute, #9a927f);
	width: 32px; height: 32px; border-radius: 50%;
}
.blx-item__rm:hover { background: rgb(26 26 26 / 0.06); color: var(--ink, #1a1a1a); }

/* Frequency selector */
.blx-freq { border: 0; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.blx-freq__legend { font-size: var(--step--1, 0.85rem); font-weight: 600; color: var(--ink, #1a1a1a); padding: 0; margin-bottom: 0.3rem; }
.blx-freq__opt {
	display: flex; align-items: center; gap: 0.7rem;
	border: 1.5px solid var(--line-2, #e3ded2);
	border-radius: var(--radius, 12px);
	padding: 0.75rem 0.9rem; cursor: pointer;
	transition: border-color 160ms ease, background 160ms ease;
}
.blx-freq__opt.is-on, .blx-freq__opt:has(input:checked) {
	border-color: var(--gold-deep, #7a6015);
	background: var(--gold-wash, #f5efd8);
}
.blx-freq__opt input { accent-color: var(--gold-deep, #7a6015); }
.blx-freq__label { display: flex; flex-direction: column; gap: 0.1rem; color: var(--ink, #1a1a1a); font-weight: 600; }
.blx-freq__sub { font-style: normal; font-weight: 400; font-size: var(--step--1, 0.8rem); color: var(--ink-mute, #6b6455); }

/* Total + start */
.blx-total {
	display: flex; align-items: baseline; justify-content: space-between;
	padding: 0.9rem 0; border-top: 1px solid var(--line-2, #e3ded2);
	color: var(--ink, #1a1a1a);
}
.blx-total strong { font-size: var(--step-1, 1.2rem); font-variant-numeric: tabular-nums; }
.blx-total small { color: var(--ink-mute, #6b6455); font-weight: 400; }
.blx-start {
	display: block; width: 100%; box-sizing: border-box; text-align: center; text-decoration: none;
	margin-top: 0.4rem; padding: 0.95rem 1.5rem; min-height: 52px; line-height: 1.2;
	border-radius: var(--radius, 12px);
	background: var(--ink, #1a1a1a); color: var(--on-ink, #fff);
	border: 1.5px solid var(--ink, #1a1a1a); font-weight: 600; font-size: var(--step-0, 1rem);
}
.blx-start:hover { box-shadow: inset 0 0 0 1.5px var(--line-gold, #d8bc6e); color: var(--on-ink, #fff); }
.blx-note { margin: 0.7rem 0 0; font-size: var(--step--1, 0.8rem); color: var(--ink-mute, #6b6455); text-align: center; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
	.blx-drawer__panel, .blx-drawer__scrim { transition: none; }
}

/* Card frequency widget (home + shop product cards) */
.blx-card-sub-wrap { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; margin-top: 0.5rem; }
.blx-card-sub-wrap .blx-card-freq {
  width: 100%; padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-2, #d9d4c9); border-radius: 8px;
  background: transparent; color: inherit;
  font: inherit; font-size: 0.9rem; cursor: pointer;
}
.blx-card-sub-wrap .blx-sub-btn { width: 100%; text-align: center; }
