/* Batch Owners' Club. Uses the Batch brand colours and inherits theme fonts. */
:root {
	--boc-blue: #00BBCE;
	--boc-red: #F3704B;
	--boc-orange: #FAA61A;
	--boc-green: #3D887A;
	--boc-purple: #9D85BE;
	--boc-ink: #1d1d1f;
	--boc-quiet: #5f6368;
	--boc-line: #e3e3e3;
	--boc-paper: #fff;
	--boc-soft: #f6f4ef;
}

.boc, .boc-offer, .boc-checkout-note { color: var(--boc-ink); }
.boc { max-width: 760px; margin: 0 auto; }

.boc-offer__eyebrow {
	text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700;
	color: var(--boc-green); margin: 0 0 8px;
}
.boc-hero { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; align-items: center; }
.boc-hero__media img { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; border-radius: 12px; }
/* Title and subtitle match the subscription product page. */
.boc .boc-hero__title {
	font-family: "SuisseIntl-Bold", Arial, Helvetica, sans-serif; font-size: 44px; font-weight: 400; line-height: 1.03;
	text-transform: uppercase; letter-spacing: normal; color: #1a202c; margin: 0 0 10px;
}
.boc .boc-hero__sub {
	font-family: "SuisseIntl-Bold", Arial, Helvetica, sans-serif; font-size: 20px; font-weight: 700; line-height: 1.5;
	text-transform: uppercase; color: var(--boc-green); margin: 0 0 14px;
}
.boc-hero__intro { font-size: 17px; line-height: 1.6; color: var(--boc-ink); margin: 0 0 12px; }
.boc-hero__learn { margin: 0; font-size: 15px; }
.boc-hero__learn a { color: var(--boc-ink); text-decoration: underline; }
@media (min-width: 768px) {
	.boc-hero { grid-template-columns: 300px 1fr; gap: 32px; }
	.boc-hero__media img { max-width: none; }
}

.boc-notice {
	background: #fff6e6; border-left: 4px solid var(--boc-orange);
	padding: 12px 16px; border-radius: 6px; margin: 0 0 20px;
}

.boc-form, .boc-success, .boc-pending {
	background: var(--boc-paper); border: 1px solid var(--boc-line); border-radius: 14px;
	padding: 24px; box-sizing: border-box;
}
.boc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.boc-field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; margin: 0; }
.boc-field--wide { grid-column: 1 / -1; }
.boc-field input, .boc-field select {
	font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #cfcfcf; border-radius: 8px;
	background: #fff; width: 100%; box-sizing: border-box;
}
.boc-field input:focus, .boc-field select:focus { outline: 2px solid var(--boc-blue); outline-offset: 1px; border-color: var(--boc-blue); }
.boc-field small { font-weight: 400; color: var(--boc-quiet); }
.boc-receipt[hidden] { display: none; }
.boc-check { display: flex; gap: 8px; align-items: center; margin: 18px 0 0; font-size: 15px; }
.boc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.boc-error { color: #b3261e; background: #fdecea; padding: 10px 14px; border-radius: 8px; margin: 18px 0 0; }
.boc-error[hidden] { display: none; }

.boc-button {
	display: inline-block; background: var(--boc-ink); color: #fff !important; border: 0; border-radius: 999px;
	padding: 14px 28px; font: inherit; font-weight: 700; text-decoration: none !important; cursor: pointer;
	margin-top: 20px; transition: transform .15s ease, background .15s ease;
}
.boc-button:hover { background: var(--boc-green); transform: translateY(-1px); }
.boc-button[disabled] { opacity: .6; cursor: wait; }
.boc-button--big { font-size: 18px; padding: 16px 34px; }
.boc-button--quiet { background: var(--boc-green); margin-top: 0; }

.boc-switch { margin: 14px 0 0; }
.boc-link { background: none; border: 0; padding: 0; color: var(--boc-quiet); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.boc-link--nudge { color: var(--boc-red); font-weight: 700; }
.boc-small { font-size: 13px; color: var(--boc-quiet); margin: 14px 0 0; }

.boc-success { border: 2px solid var(--boc-ink); }
.boc-success__title { margin: 0 0 12px; }
.boc-code { display: inline-flex; gap: 10px; align-items: center; background: var(--boc-soft); padding: 8px 14px; border-radius: 999px; margin: 0 0 16px; }
.boc-code span { font-size: 13px; color: var(--boc-quiet); }
.boc-code strong { letter-spacing: .12em; }
.boc-grinds { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 10px; }
/* Grind buttons: !important so the theme's own button hover and focus colours can't take over. */
.boc .boc-grind, .boc .boc-grind:hover, .boc .boc-grind:focus, .boc .boc-grind:active {
	font: inherit; font-size: 16px !important; padding: 14px 10px !important; height: 100%; min-height: 72px; margin: 0 !important;
	border: 1px solid #cfcfcf !important; background: #fff !important; color: var(--boc-ink) !important;
	border-radius: 10px !important; box-shadow: none !important; text-transform: none !important; letter-spacing: normal !important;
	cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; line-height: 1.3;
}
.boc .boc-grind:hover { border-color: var(--boc-ink) !important; }
.boc .boc-grind:focus-visible { outline: 2px solid var(--boc-ink); outline-offset: 2px; }
.boc .boc-grind.is-chosen, .boc .boc-grind.is-chosen:hover, .boc .boc-grind.is-chosen:focus, .boc .boc-grind.is-chosen:active {
	border: 2px solid var(--boc-ink) !important; background: var(--boc-soft) !important; color: var(--boc-ink) !important; font-weight: 700;
}
.boc .boc-grind__tag { font-size: 12px; font-weight: 600; color: var(--boc-green) !important; }

.boc-remind { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--boc-line); }
.boc-remind h3 { margin: 0 0 6px; }
.boc-remind p { margin: 0 0 12px; color: var(--boc-quiet); }
.boc-remind__form { display: flex; gap: 10px; flex-wrap: wrap; }
.boc-remind__form input[type="text"], .boc-remind__form input[type="email"] {
	font: inherit; padding: 12px 14px; border: 1px solid #cfcfcf; border-radius: 8px; flex: 1 1 180px;
}

/* Article pieces */
.boc-badge {
	display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0;
	padding: 6px 12px; border-radius: 999px; background: #fff6e6; color: var(--boc-ink) !important;
	font-size: 14px; font-weight: 600; text-decoration: none !important; border: 1px solid #fbd38d;
}
.boc-badge__gift { width: 10px; height: 10px; border-radius: 3px; background: var(--boc-orange); display: inline-block; }
.boc-badge__more { font-weight: 400; text-decoration: underline; color: var(--boc-quiet); }

.boc-offer {
	background: var(--boc-soft); border-radius: 16px; padding: 28px; margin: 32px 0;
	border-left: 6px solid var(--boc-blue);
}
.boc-offer__title { margin: 0 0 10px; }
.boc-offer__intro { margin: 0 0 14px; }
.boc-offer__steps { margin: 0 0 4px 20px; padding: 0; }
.boc-offer__steps li { margin: 4px 0; }
.boc-offer__small { font-size: 13px; color: var(--boc-quiet); margin: 10px 0 0; }

.boc-sticky {
	position: fixed; left: 12px; right: 12px; top: calc(12px + var(--wp-admin--admin-bar--height, 0px)); z-index: 9999;
	background: #FFF3DC; color: #1B1B1B; border: 1.5px solid #FAA61A; border-radius: 14px; padding: 12px 40px 12px 14px;
	box-shadow: 0 6px 20px rgba(0,0,0,.12); font-weight: 700; font-size: clamp(11px, calc(4.4vw - 4.2px), 15px); line-height: 1.3;
	animation: boc-drop .3s ease-out;
}
@keyframes boc-drop { from { transform: translateY(-120%); opacity: 0; } to { transform: none; opacity: 1; } }
.boc-sticky[hidden] { display: none; }
.boc-sticky a { color: #1B1B1B !important; text-decoration: none !important; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boc-sticky a::before { content: "🎁"; margin-right: 6px; }
.boc-sticky__close {
	position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	background: transparent !important; border: 0 !important; color: #1B1B1B !important; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px !important; box-shadow: none !important;
}
@media (min-width: 900px) { .boc-sticky { display: none !important; } }

/* Checkout */
.boc-checkout-note {
	background: #e8fafc; border: 1px solid var(--boc-blue); border-radius: 10px;
	padding: 14px 18px; margin: 0 0 18px;
}
.boc-checkout-note p { margin: 4px 0; }

@media (max-width: 640px) {
	.boc { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
	.boc-offer { margin-left: 16px; margin-right: 16px; }
	.boc .boc-hero__title { font-size: 32px; }
	.boc .boc-hero__sub { font-size: 18px; }
	.boc-grid { grid-template-columns: 1fr; }
	.boc-grinds { grid-template-columns: repeat(2, 1fr); }
	.boc-form, .boc-success, .boc-pending, .boc-offer { padding: 18px; }
}

/* Article fixes: keep the badge to its own width, and stop the theme indenting the nav card lists. */
.boc-badge { width: fit-content; max-width: 100%; align-self: flex-start; box-sizing: border-box; }
.bgc-nav ol, .bgc-nav ul { margin-left: 0 !important; padding-left: 0 !important; }

/* Stand out version of the badge: Batch orange, gift icon. */
.boc .boc-badge, .boc-badge {
	display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 12px 0;
	padding: 10px 16px; border-radius: 14px; border: 1.5px solid #FAA61A; background: #FFF3DC; color: #1B1B1B !important;
	font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none !important;
	box-shadow: none; transition: transform .15s ease, border-color .15s ease;
}
.boc-badge:hover { transform: translateY(-1px); border-color: #1B1B1B; }
.boc-badge .boc-badge__gift { width: auto; height: auto; background: none; border-radius: 0; font-size: 20px; line-height: 1; display: inline-block; }
.boc-badge .boc-badge__more { font-weight: 600; text-decoration: underline; color: #1B1B1B; }

/* Highlighted item in the On this page card. */
.bgc-nav li.bgc-hl a { background: #FFF3DC; border-color: #FAA61A; }
.bgc-nav li.bgc-hl a:hover { border-color: #1B1B1B; }
.bgc-nav li.bgc-hl .bgc-n { background: #FAA61A; color: #1B1B1B; }

/* Tag over the machine photos. */
.wp-block-kadence-column:has(.boc-tag) { position: relative; }
.boc-tag {
	position: absolute; right: 14px; bottom: 14px; z-index: 2;
	display: flex; align-items: center; gap: 10px; max-width: calc(100% - 28px); box-sizing: border-box;
	background: #FFF3DC; border: 1.5px solid #FAA61A; border-radius: 16px; padding: 8px 14px 8px 8px;
	color: #1B1B1B !important; text-decoration: none !important; line-height: 1.25;
	box-shadow: 0 4px 14px rgba(0,0,0,.08); transition: transform .15s ease, border-color .15s ease;
}
.boc-tag:hover { transform: translateY(-1px); border-color: #1B1B1B; }
.boc-tag img { width: 78px; height: auto; flex: none; display: block; }
.boc-tag__text { font-size: 14px; font-weight: 700; }
.boc-tag__more { display: block; font-size: 12px; font-weight: 400; text-decoration: underline; margin-top: 2px; }
@media (max-width: 640px) {
	.boc-tag { right: 10px; bottom: 10px; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 12px; }
	.boc-tag img { width: 56px; }
	.boc-tag__text { font-size: 12px; }
	.boc-tag__more { font-size: 11px; }
}
