/*
 * Store pages: Подкрепи клуба, the level pages, and the parts the cart,
 * checkout, order and profile share (membership card, store card, stepper,
 * totals). Loaded only on store pages (inc/store.php).
 * Design: the store row of the homepage restyle canvas, 2026-11-14.
 */

:root {
	--bx-danger-bg: #FBE9E9;
}

:root[data-bc-theme="dark"] {
	--bx-danger-bg: #2E1717;
}

/* ---------- Page top and sections ---------- */

.bx-st-top .bx-ltop__in {
	grid-template-columns: minmax(0, 1fr);
	padding-bottom: 72px;
}

.bx-st-top .bx-h1--sub {
	font-size: 88px;
}

.bx-st-top .bx-lead {
	color: #222222;
}

.bx-st-sec {
	padding-block: 80px 112px;
}

.bx-st-sec--alt {
	background: var(--bx-bg2);
	padding-block: 88px 104px;
}

.bx-st-head {
	display: grid;
	gap: 16px;
	justify-items: start;
	margin-bottom: 48px;
}

/* ---------- Shared pieces ---------- */

button.bx-b {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 28px;
	border: 0;
	border-radius: var(--bx-r-xs);
	box-shadow: none;
	font-family: var(--bx-sans);
	font-weight: 800;
	font-size: 18px;
	line-height: 1;
	letter-spacing: 0.02em;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

button.bx-b--or {
	background: var(--bx-orange);
	color: #222222;
}

button.bx-b--ink {
	background: #222222;
	color: #FAF3E1;
}

.bx-b--block {
	width: 100%;
	box-sizing: border-box;
}

button.bx-b[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

@media (hover: hover) {
	button.bx-b--or:hover {
		background: var(--bx-or-lite);
	}

	button.bx-b--ink:hover {
		background: #3A3633;
	}
}

.bx-st-page :where(a, button, input):focus-visible {
	outline: 3px solid var(--bx-focus);
	outline-offset: 3px;
}

.bx-st-card {
	display: grid;
	gap: 22px;
	align-content: start;
	padding: 32px;
	background: var(--bx-card);
	border-radius: var(--bx-r-lg);
	box-shadow: var(--bx-shadow);
}

.bx-st-card > h2,
.bx-st-card > h3 {
	margin: 0;
	font-weight: 900;
	font-size: 34px;
	line-height: 1;
}

.bx-st-rule {
	margin: 0;
	border: 0;
	border-top: 1px solid var(--bx-line);
}

.bx-st-note {
	margin: 0;
	font-size: 16px;
	line-height: 1.45;
	color: var(--bx-muted);
}

.bx-st-note strong {
	color: var(--bx-ink);
}

.bx-st-tot {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
}

.bx-st-tot span {
	font-weight: 700;
	font-size: 19px;
}

.bx-st-tot b {
	font-weight: 900;
	font-size: 44px;
	line-height: 0.9;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.bx-price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-top: 4px;
}

.bx-price b {
	font-weight: 900;
	font-size: 96px;
	line-height: 0.85;
	letter-spacing: -0.02em;
}

.bx-price span {
	font-weight: 700;
	font-size: 21px;
	opacity: 0.8;
}

.bx-perks,
.bx-tier__perks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
	font-size: 18px;
	line-height: 1.35;
}

.bx-perks li,
.bx-tier__perks li {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 10px;
	align-items: start;
}

.bx-perks svg,
.bx-tier__perks svg {
	margin-top: 3px;
}

.bx-fld {
	display: grid;
	gap: 8px;
}

.bx-fld label,
.bx-fld__lbl {
	font-weight: 800;
	font-size: 16px;
	letter-spacing: 0.02em;
}

.bx-hint {
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
	color: var(--bx-muted);
}

.bx-info {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px;
	border-radius: var(--bx-r-sm);
	background: var(--bx-tint);
	color: var(--bx-ink);
	font-size: 17px;
	line-height: 1.4;
}

.bx-info svg {
	flex: 0 0 auto;
	margin-top: 2px;
	color: var(--bx-copper);
}

.bx-lnk {
	color: var(--bx-copper);
	font-weight: 700;
	text-underline-offset: 3px;
}

/* Notices (same look as the account pages, bitcoinclub_account_notices). */
.bx-st-page .bx-acc__msg {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px;
	border-radius: var(--bx-r-sm);
	font-size: 17px;
	line-height: 1.4;
	color: var(--bx-ink);
	background: var(--bx-bg2);
	box-shadow: inset 0 0 0 2px var(--bx-line2);
}

.bx-st-page .bx-acc__msg svg {
	flex: 0 0 auto;
	margin-top: 2px;
}

.bx-st-page .bx-acc__msg--error {
	background: var(--bx-danger-bg);
	box-shadow: inset 0 0 0 2px var(--bx-danger);
}

.bx-st-page .bx-acc__msg--error svg {
	color: var(--bx-danger);
}

.bx-st-page .bx-acc__msg--success {
	background: var(--bx-live-bg);
	box-shadow: inset 0 0 0 2px var(--bx-live);
}

.bx-st-page .bx-acc__msg--success svg {
	color: var(--bx-live);
}

.bx-st-page .bx-acc__msg a {
	color: inherit;
	font-weight: 700;
}

/* Months stepper: a number field with − and + (store.js shows the buttons). */
.bx-stp {
	display: inline-flex;
	align-items: center;
	justify-self: start;
	border: 2px solid var(--bx-line2);
	border-radius: var(--bx-r-xs);
	background: var(--bx-card);
}

.bx-stp__b {
	width: 48px;
	height: 48px;
	border: 0;
	background: transparent;
	color: var(--bx-ink);
	font-family: var(--bx-mono);
	font-weight: 700;
	font-size: 20px;
	cursor: pointer;
}

.bx-stp__b[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
}

.bx-stp__in {
	width: 64px;
	height: 48px;
	border: 0;
	background: transparent;
	color: var(--bx-ink);
	text-align: center;
	font-family: var(--bx-mono);
	font-weight: 700;
	font-size: 18px;
	-moz-appearance: textfield;
	appearance: textfield;
}

.bx-stp__in::-webkit-outer-spin-button,
.bx-stp__in::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

/* ---------- Membership card ---------- */

.bx-mc {
	container-type: inline-size;
	display: block;
	width: 100%;
}

.bx-mc__in {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1.586;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 6cqw 6.5cqw 6.5cqw;
	border-radius: max(2px, var(--bx-r-lg));
	background: #FFFFFF;
	color: #222222;
	box-shadow: var(--bx-shadow), inset 0 0 0 1px rgba(34, 34, 34, 0.12);
}

/* The white card's 1px edge is an inset shadow, which paints under the logo watermark.
   Draw it again on top so the logo never hides the edge (tier 1 has no other border). */
.bx-mc:not(.bx-mc--member, .bx-mc--hodler, .bx-mc--friend) .bx-mc__in::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(34, 34, 34, 0.12);
	pointer-events: none;
}

.bx-mc--member .bx-mc__in {
	background: #F26921;
	box-shadow: 0 18px 36px -18px rgba(191, 71, 3, 0.55);
}

.bx-mc--hodler .bx-mc__in {
	background: #222222;
	color: #FAF3E1;
	box-shadow: var(--bx-shadow);
}

.bx-mc--friend .bx-mc__in {
	background: #F5E7C6;
	box-shadow: var(--bx-shadow);
}

:root[data-bc-theme="dark"] .bx-mc--hodler .bx-mc__in {
	box-shadow: var(--bx-shadow), inset 0 0 0 1px rgba(242, 105, 33, 0.55);
}

.bx-mc__wm {
	position: absolute;
	width: 72%;
	height: auto;
	right: -14%;
	bottom: -34%;
	transform: rotate(14deg);
	opacity: 0.12;
	mix-blend-mode: multiply;
	pointer-events: none;
	user-select: none;
}

.bx-mc--member .bx-mc__wm,
.bx-mc--hodler .bx-mc__wm {
	filter: grayscale(1) brightness(1.9);
	mix-blend-mode: screen;
	opacity: 0.13;
}

.bx-mc__top {
	position: relative;
	display: flex;
	align-items: center;
	gap: 3cqw;
}

.bx-mc__ic {
	width: 10.5cqw;
	height: 10.5cqw;
	flex: none;
}

.bx-mc__id {
	display: grid;
	gap: 1.8cqw;
	min-width: 0;
}

.bx-mc__n {
	font-weight: 900;
	font-size: max(12px, 6.6cqw);
	line-height: 0.95;
	letter-spacing: -0.005em;
}

.bx-mc__l {
	font-family: var(--bx-mono);
	font-weight: 700;
	font-size: max(11px, 4.6cqw);
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.85;
}

.bx-mc--hodler .bx-mc__l {
	color: #FF8950;
	opacity: 1;
}

.bx-mc--friend .bx-mc__l {
	color: #98370A;
	opacity: 1;
}

.bx-mc__bot {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 4cqw;
}

.bx-mc__who {
	display: grid;
	gap: 1cqw;
	min-width: 0;
	font-family: var(--bx-mono);
	font-weight: 500;
	font-size: max(9px, 3.1cqw);
	line-height: 1.2;
	opacity: 0.85;
}

.bx-mc__who b {
	font-family: var(--bx-sans);
	font-weight: 800;
	font-size: max(13px, 6.3cqw);
	line-height: 1;
	letter-spacing: 0.01em;
	overflow-wrap: anywhere;
}

/* Small copies: icon, plan and level only; tiny ones: icon only. */
@container (max-width: 210px) {
	.bx-mc__in {
		padding: 8cqw;
	}

	.bx-mc__bot {
		display: none;
	}

	.bx-mc__ic {
		width: 16cqw;
		height: 16cqw;
	}

	/* The name is printed next to the small card, so the card keeps only the level. */
	.bx-mc__n {
		display: none;
	}

	.bx-mc__l {
		font-size: max(14px, 11cqw);
	}
}

@container (max-width: 90px) {
	.bx-mc__id {
		display: none;
	}

	.bx-mc__ic {
		width: 30cqw;
		height: 30cqw;
	}

	.bx-mc__wm {
		width: 90%;
		right: -18%;
		bottom: -40%;
	}
}

/* ---------- Подкрепи клуба: level cards ---------- */

.bx-tiers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	align-items: stretch;
}

.bc-section > .bx-tiers {
	/* On the homepage the cards sit under the intro text; room for the raised middle card. */
	margin-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
}

.bx-tier {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 40px 36px 36px;
	border-radius: var(--bx-r-xl);
	background: var(--bx-card);
	color: var(--bx-ink);
	box-shadow: var(--bx-shadow);
}

.bx-tier > :not(.bx-tier__wm) {
	position: relative;
	margin: 0;
}

.bx-tier--member {
	background: var(--bx-orange);
	color: #222222;
	transform: translateY(-20px);
	box-shadow: 0 28px 56px -22px rgba(191, 71, 3, 0.5);
}

.bx-tier--hodler {
	background: #222222;
	color: #FAF3E1;
}

.bx-tier .bx-eyebrow {
	color: inherit;
	opacity: 0.75;
}

.bx-tier__h {
	font-weight: 900;
	font-size: 44px;
	line-height: 0.95;
}

.bx-tier--hodler .bx-price b {
	color: var(--bx-orange);
}

.bx-tier__perks {
	margin-bottom: 12px !important;
}

.bx-tier .bx-b {
	align-self: stretch;
	margin-top: auto;
}

.bx-tier__wm {
	position: absolute;
	width: 82%;
	height: auto;
	right: -24%;
	bottom: -20%;
	transform: rotate(14deg);
	opacity: 0.1;
	mix-blend-mode: multiply;
	pointer-events: none;
	user-select: none;
}

.bx-tier--member .bx-tier__wm {
	filter: grayscale(1) brightness(1.9);
	mix-blend-mode: screen;
	opacity: 0.13;
}

.bx-tier--hodler .bx-tier__wm {
	filter: grayscale(1) brightness(1.9);
	mix-blend-mode: screen;
	opacity: 0.1;
}

:root[data-bc-theme="dark"] .bx-tier--supporter {
	background: #FFFFFF;
	color: #222222;
}

:root[data-bc-theme="dark"] .bx-tier--supporter .bx-eyebrow {
	color: #222222;
}

:root[data-bc-theme="dark"] .bx-tier--hodler {
	background: #1A1512;
	box-shadow: var(--bx-shadow), inset 0 0 0 2px rgba(242, 105, 33, 0.55);
}

.bx-st-foot {
	display: grid;
	gap: 10px;
	max-width: 46rem;
	margin: 56px auto 0;
	text-align: center;
	font-size: 17px;
	color: var(--bx-muted);
}

.bx-st-foot strong {
	font-weight: 800;
	font-size: 19px;
	color: var(--bx-ink);
}

.bx-st-empty {
	max-width: 760px;
	justify-items: start;
}

.bx-st-empty p {
	margin: 0;
	font-size: 20px;
	color: var(--bx-muted);
}

/* Как работи */
.bx-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.bx-step {
	display: grid;
	gap: 12px;
	align-content: start;
}

.bx-step__n {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: var(--bx-r-sm);
	background: var(--bx-orange);
	color: #222222;
	font-family: var(--bx-mono);
	font-weight: 700;
	font-size: 16px;
}

.bx-step h3 {
	margin: 0;
	font-weight: 900;
	font-size: 30px;
	line-height: 1;
}

.bx-step p {
	margin: 0;
	font-size: 18px;
	line-height: 1.45;
	color: var(--bx-muted);
}

/* ---------- Level page ---------- */

.bx-pd {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.bx-pd__img {
	position: sticky;
	top: 24px;
	display: grid;
	place-items: center;
	padding: 88px 64px;
	border-radius: var(--bx-r-lg);
	background: var(--bx-bg2);
}

.bx-pd__img .bx-mc {
	max-width: 520px;
}

.bx-pd__buy .bx-eyebrow {
	margin: 0;
}

.bx-pd__h {
	margin: 0;
	font-weight: 900;
	font-size: 56px;
	line-height: 0.95;
}

.bx-pd__buy .bx-price {
	margin-top: 0;
}

.bx-pd__buy .bx-price b {
	font-size: 120px;
}

.bx-pd__buy .bx-price span {
	font-size: 24px;
}

.bx-pd__form {
	display: grid;
	gap: 22px;
}

.bx-pd-more {
	display: grid;
	gap: 32px;
	margin-top: 96px;
}

.bx-pd-more .bx-h2 {
	font-size: 48px;
}

.bx-pd-os {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.bx-pd-o {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 24px;
	align-items: center;
	padding: 24px;
	border-radius: var(--bx-r-lg);
	background: var(--bx-card);
	box-shadow: var(--bx-shadow);
	color: var(--bx-ink);
	text-decoration: none;
}

.bx-pd-o__t > b {
	display: block;
	font-weight: 900;
	font-size: 34px;
	line-height: 1;
}

.bx-pd-o__t > span {
	display: block;
	margin-top: 6px;
	font-size: 17px;
	color: var(--bx-muted);
}

.bx-pd-o__t > .bx-pd-o__go {
	display: inline-block;
	margin-top: 14px;
	font-weight: 800;
	color: var(--bx-copper);
}

/* Hover: slow lift and tilt (design-guidelines.md section 7). */
.bx-pd__img .bx-mc__in,
.bx-pd-o .bx-mc__in {
	transition: transform 0.9s cubic-bezier(0.22, 0.8, 0.24, 1), box-shadow 0.9s cubic-bezier(0.22, 0.8, 0.24, 1);
}

@media (hover: hover) {
	.bx-pd-o:hover .bx-pd-o__go {
		text-decoration: underline;
	}
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.bx-pd__img:hover .bx-mc__in {
		transform: translateY(-12px) rotate(-1.6deg) scale(1.035);
	}

	.bx-pd-o:hover .bx-mc__in {
		transform: translateY(-6px) rotate(1.4deg) scale(1.03);
	}
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
	.bx-st-top .bx-h1--sub {
		font-size: 68px;
	}

	.bx-st-top .bx-ltop__in {
		padding-bottom: 56px;
	}

	.bx-st-sec {
		padding-block: 64px 88px;
	}

	.bx-tiers {
		grid-template-columns: minmax(0, 1fr);
		max-width: 520px;
		margin-inline: auto;
	}

	.bx-tier--member {
		transform: none;
	}

	.bx-steps {
		grid-template-columns: minmax(0, 1fr);
	}

	.bx-pd {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.bx-pd__img {
		position: static;
		padding: 56px 40px;
	}

	.bx-pd__buy .bx-price b {
		font-size: 104px;
	}

	.bx-pd-os {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Phone ---------- */

@media (max-width: 640px) {
	.bx-st-top .bx-h1--sub {
		font-size: 50px;
	}

	/* The phone header is about 111px tall; start below it, as on Основите. */
	.bx-st-top .bx-ltop__in {
		padding-top: calc(var(--bx-nav-h) + 32px);
		padding-bottom: 48px;
	}

	.bx-st-sec {
		padding-block: 48px 72px;
	}

	.bx-st-sec--alt {
		padding-block: 56px 72px;
	}

	.bx-st-card {
		padding: 22px 20px;
		gap: 18px;
	}

	.bx-st-card > h2,
	.bx-st-card > h3 {
		font-size: 28px;
	}

	.bx-st-tot b {
		font-size: 38px;
	}

	.bx-tier {
		padding: 32px 26px 28px;
	}

	.bx-tier__h {
		font-size: 38px;
	}

	.bx-price b {
		font-size: 80px;
	}

	.bx-price span {
		font-size: 19px;
	}

	.bx-st-head .bx-h2 {
		font-size: 44px;
	}

	.bx-pd__img {
		padding: 36px 24px;
	}

	.bx-pd__h {
		font-size: 44px;
	}

	.bx-pd__buy .bx-price b {
		font-size: 92px;
	}

	.bx-pd__buy .bx-price span {
		font-size: 21px;
	}

	.bx-pd-more {
		margin-top: 64px;
	}

	.bx-pd-more .bx-h2 {
		font-size: 40px;
	}

	.bx-pd-o {
		grid-template-columns: 120px minmax(0, 1fr);
		gap: 16px;
		padding: 18px;
	}

	.bx-pd-o__t > b {
		font-size: 26px;
	}
}

/* ==========================================================================
   Количка and Плащане (inc/store-checkout.php, woocommerce/cart, woocommerce/checkout)
   ========================================================================== */

.bx-st-main .wp-block-post-content > .woocommerce {
	margin: 0;
	max-width: none;
}

.bx-st-main .wp-block-post-content > * {
	margin-block: 0;
}

.bx-st-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.bx-st-col {
	display: grid;
	gap: 32px;
	min-width: 0;
}

.bx-st-sum {
	position: sticky;
	top: 24px;
}

.bx-st-hd {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px 20px;
}

.bx-st-hd h2 {
	margin: 0;
	font-weight: 900;
	font-size: 34px;
	line-height: 1;
}

.bx-small {
	font-size: 16px;
	color: var(--bx-muted);
}

.bx-st-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 18px;
}

.bx-st-row span {
	color: var(--bx-muted);
}

.bx-st-row b {
	font-weight: 800;
}

.bx-st-empty h2 {
	font-size: 40px;
}

.bx-acts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.bx-acts .bx-lnk {
	font-weight: 800;
	font-size: 17px;
	text-underline-offset: 4px;
}

/* Card thumbnails */
.bx-th {
	display: block;
	width: 150px;
	flex: 0 0 auto;
}

/* In the cart and the checkout the thumbnail holds a membership card (1.586 : 1), not a
   blog image. `.bx-th` in site.css is a 16:9 frame with hidden overflow, which cut the
   bottom of the card off, so the frame is turned off here. */
.bx-cl .bx-th,
.bx-co__line .bx-th {
	aspect-ratio: auto;
	overflow: visible;
	background: none;
}

/* ---------- Cart lines ---------- */

.bx-cl {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr) auto auto auto;
	gap: 20px 28px;
	align-items: center;
	padding-block: 24px;
	border-top: 1px solid var(--bx-line);
}

.bx-st-hd + .bx-cl {
	border-top: 0;
	padding-top: 0;
}

.bx-cl__t h3 {
	margin: 0;
	font-weight: 900;
	font-size: 22px;
	line-height: 1.1;
}

/* Compact months stepper in the cart line. */
.bx-cl .bx-stp__b {
	width: 36px;
	height: 36px;
	font-size: 17px;
}

.bx-cl .bx-stp__in {
	width: 44px;
	height: 36px;
	font-size: 16px;
}

/* Logo watermark on the card thumbnail in the cart and the checkout (values chosen by the
   club, all in % of the card). The overrides are needed because the small-card container
   query makes it bigger and `.bx-th img` in site.css (blog thumbnails) would stretch it
   over the whole card. */
.bx-cl .bx-mc__wm,
.bx-co__line .bx-mc__wm {
	inset: auto -11% -8% auto;
	width: 61%;
	height: auto;
	object-fit: contain;
}

.bx-cl__pp {
	min-width: 90px;
	text-align: right;
	font-weight: 900;
	font-size: 30px;
	font-variant-numeric: tabular-nums;
}

.bx-cl__rm {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: var(--bx-r-xs);
	color: var(--bx-muted);
}

.bx-cl__rm:hover {
	color: var(--bx-danger);
}

.woocommerce-cart-form.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

/* ---------- Checkout ---------- */

.woocommerce form.bx-co .form-row,
.bx-co .form-row {
	margin: 0;
	padding: 0;
	float: none;
	width: auto;
}

.bx-co__fields {
	display: grid;
	gap: 18px;
}

.bx-co .form-row label {
	display: block;
	margin-bottom: 8px;
	font-weight: 800;
	font-size: 16px;
	letter-spacing: 0.02em;
	line-height: 1.3;
}

.bx-co .form-row label .required,
.bx-co .form-row label .optional {
	display: none;
}

.bx-co .input-text,
.bx-co select,
.bx-nick .input-text {
	width: 100%;
	min-height: 52px;
	padding: 0 16px;
	border: 2px solid var(--bx-line2);
	border-radius: var(--bx-r-xs);
	background: var(--bx-card);
	color: var(--bx-ink);
	font: inherit;
	font-size: 19px;
	box-sizing: border-box;
}

.bx-co .input-text::placeholder,
.bx-nick .input-text::placeholder {
	color: var(--bx-muted);
	opacity: 0.8;
}

.bx-co .input-text:focus-visible,
.bx-nick .input-text:focus-visible {
	border-color: var(--bx-ink);
}

.bx-co .form-row .description {
	display: block;
	margin-top: 8px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--bx-muted);
}

.bx-co .woocommerce-invalid .input-text {
	border-color: var(--bx-danger);
}

.bx-co .checkout-inline-error-message {
	margin: 8px 0 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--bx-danger);
}

.bx-co__pay {
	display: grid;
	gap: 32px;
}

.bx-pms {
	display: grid;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.bx-pm {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: start;
	padding: 18px 20px;
	border-radius: var(--bx-r-sm);
	background: var(--bx-card);
	cursor: pointer;
}

/* Unselected rows sit flat on the card; the chosen one gets the tint. */
.bx-pm:has(input:checked) {
	background: var(--bx-bg2);
}

.bx-pm input {
	width: 22px;
	height: 22px;
	margin: 3px 0 0;
	accent-color: #222222;
}

:root[data-bc-theme="dark"] .bx-pm input,
:root[data-bc-theme="dark"] .bx-chk input {
	accent-color: #FF8950;
}

.bx-pm__t b {
	display: block;
	font-weight: 800;
	font-size: 20px;
	line-height: 1.2;
}

.bx-pm__d {
	display: block;
	margin-top: 2px;
	font-size: 16px;
	line-height: 1.4;
	color: var(--bx-muted);
}

.bx-pm__tag {
	padding: 4px 7px;
	border-radius: var(--bx-r-xs);
	background: var(--bx-tint);
	color: var(--bx-copper);
	font-family: var(--bx-mono);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.bx-pm__tag--k {
	background: #222222;
	color: #FAF3E1;
}

:root[data-bc-theme="dark"] .bx-pm__tag--k {
	background: var(--bx-orange);
	color: #222222;
}

.bx-co__place {
	display: grid;
	gap: 22px;
}

.bx-chk {
	display: grid !important;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	margin: 0 !important;
	font-weight: 400 !important;
	font-size: 17px !important;
	line-height: 1.4;
	letter-spacing: 0 !important;
	cursor: pointer;
}

.bx-chk input {
	width: 24px;
	height: 24px;
	margin: 0;
	accent-color: #222222;
}

.bx-chk-row.woocommerce-invalid .bx-chk span {
	color: var(--bx-danger);
}

.bx-co__line {
	display: flex;
	align-items: center;
	gap: 16px;
}

.bx-co__line .bx-th {
	width: 120px;
}

.bx-co__line b {
	font-weight: 900;
	font-size: 26px;
	line-height: 1;
}

.bx-co__line .bx-st-note {
	margin-top: 4px;
}

.bx-co__sum {
	display: grid;
	gap: 22px;
}

/* WooCommerce's notices on these pages (the checkout script prints its errors above the form). */
.bx-st-page .woocommerce-NoticeGroup {
	margin: 0 0 24px;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.bx-st-page .wc-block-components-notice-banner,
.bx-st-page .woocommerce-error,
.bx-st-page .woocommerce-message,
.bx-st-page .woocommerce-info {
	margin: 0 0 24px;
	padding: 16px 18px;
	list-style: none;
	/* !important: the pre-restyle notice rules in style.css use it. */
	border: 0 !important;
	border-radius: var(--bx-r-sm) !important;
	background: var(--bx-bg2) !important;
	box-shadow: inset 0 0 0 2px var(--bx-line2);
	color: var(--bx-ink) !important;
	font-size: 17px;
	line-height: 1.4;
}

.bx-st-page .woocommerce-NoticeGroup .woocommerce-error,
.bx-st-page .woocommerce-NoticeGroup .wc-block-components-notice-banner {
	margin: 0;
	border: 0;
}

.bx-st-page .wc-block-components-notice-banner ul {
	margin: 4px 0 0;
	padding-left: 20px;
}

.bx-st-page .wc-block-components-notice-banner a {
	color: inherit;
}

.bx-st-page .woocommerce-error,
.bx-st-page .wc-block-components-notice-banner.is-error {
	background: var(--bx-danger-bg) !important;
	box-shadow: inset 0 0 0 2px var(--bx-danger) !important;
}

/* WooCommerce's cart script can wrap a notice in another notice (an expired session
   shows up as a box inside a box). Only the outer one draws the frame. */
.bx-st-page :is(.woocommerce-error, .woocommerce-message, .woocommerce-info, .wc-block-components-notice-banner) :is(.woocommerce-error, .woocommerce-message, .woocommerce-info, .wc-block-components-notice-banner) {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
}

.bx-st-page .woocommerce-error::before,
.bx-st-page .woocommerce-message::before,
.bx-st-page .woocommerce-info::before {
	content: none;
}

.bx-st-page .wc-block-components-notice-banner > svg {
	display: none;
}

@media (max-width: 1024px) {
	.bx-st-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.bx-st-sum {
		position: static;
	}
}

@media (max-width: 640px) {
	.bx-st-hd h2 {
		font-size: 28px;
	}

	.bx-cl {
		grid-template-columns: 96px minmax(0, 1fr) auto;
		gap: 14px 16px;
	}

	.bx-cl .bx-th {
		width: 96px;
	}

	.bx-cl__t h3 {
		font-size: 20px;
	}

	.bx-cl__pp {
		grid-column: 3;
		grid-row: 1;
		min-width: 0;
		font-size: 24px;
	}

	.bx-cl .bx-stp {
		grid-column: 1 / 3;
	}

	.bx-cl__rm {
		grid-column: 3;
		justify-self: end;
	}

	.bx-pm {
		grid-template-columns: 28px minmax(0, 1fr);
	}

	.bx-pm__tag {
		grid-column: 2;
		justify-self: start;
	}

	.bx-acts .bx-b {
		width: 100%;
	}

	.bx-co__line .bx-th {
		width: 96px;
	}
}

/* WooCommerce's own #payment look (grey box, rounded, padded rows): the cards replace it. */
.woocommerce-checkout #payment.bx-co__pay {
	background: none;
	border-radius: 0;
}

.woocommerce-checkout #payment.bx-co__pay div.form-row,
.woocommerce-checkout #payment.bx-co__pay .place-order {
	margin: 0;
	padding: 0;
}

.woocommerce-checkout #payment.bx-co__pay .bx-pms {
	border: 0;
}

/* Header cart on Количка and Плащане: a plain link (inc/store-checkout.php), styled with the header icons in site.css. */

/* ==========================================================================
   Order pages: Поръчка приета and the pay page (inc/order-pages.php)
   ========================================================================== */

.bx-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 30px;
	padding: 0 12px;
	border-radius: var(--bx-r-xs);
	background: var(--bx-live-bg);
	color: var(--bx-live);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
}

.bx-pill i {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: var(--bx-r-dot);
	background: currentColor;
}

.bx-pill--wait {
	background: var(--bx-tint);
	color: var(--bx-copper);
}

.bx-pill--bad {
	background: var(--bx-danger-bg);
	color: var(--bx-danger);
}

.bx-st-lead {
	margin: 0;
	font-size: 18px;
	line-height: 1.45;
	color: var(--bx-ink);
}

.bx-big {
	margin: 0;
	font-weight: 900;
	font-size: 60px;
	line-height: 0.9;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.bx-big em {
	font-style: normal;
	color: var(--bx-copper);
}

.bx-mono {
	font-family: var(--bx-mono);
}

a.bx-b.bx-b--block {
	box-sizing: border-box;
}

/* Summary card */
.bx-kv {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 10px 20px;
	margin: 0;
	font-size: 17px;
}

.bx-kv dt {
	color: var(--bx-muted);
}

.bx-kv dd {
	margin: 0;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.bx-kv .bx-pill {
	height: 26px;
	font-size: 12px;
}

/* Bank transfer */
.bx-bank__amt {
	display: grid;
	gap: 6px;
}

.bx-bank__amt b {
	font-weight: 900;
	font-size: 64px;
	line-height: 0.9;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.bx-bank__amt span {
	font-size: 15px;
	color: var(--bx-muted);
}

.bx-bank__kv {
	margin: 0;
	border-top: 1px solid var(--bx-line);
}

.bx-bank__row {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr) auto;
	gap: 8px 20px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--bx-line);
}

.bx-bank__row dt {
	font-size: 15px;
	color: var(--bx-muted);
}

.bx-bank__row dd {
	margin: 0;
	font-weight: 700;
	font-size: 18px;
	overflow-wrap: anywhere;
}

.bx-bank__row dd.bx-mono {
	font-size: 17px;
}

.bx-bank__row.is-key {
	margin-inline: -16px;
	padding-inline: 16px;
	background: var(--bx-tint);
}

.bx-bank__row.is-key dt {
	font-weight: 800;
	color: var(--bx-copper);
}

.bx-copy {
	min-height: 36px;
	padding: 0 14px;
	border: 0;
	border-radius: var(--bx-r-xs);
	background: var(--bx-bg2);
	box-shadow: inset 0 0 0 2px var(--bx-line2);
	color: var(--bx-ink);
	font: inherit;
	font-weight: 800;
	font-size: 15px;
	cursor: pointer;
}

.bx-bank__row.is-key .bx-copy {
	background: #222222;
	box-shadow: none;
	color: #FAF3E1;
}

@media (hover: hover) {
	.bx-copy:hover {
		box-shadow: inset 0 0 0 2px var(--bx-ink);
	}
}

/* Three steps under the bank card */
.bx-steps3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bx-steps3 li {
	display: grid;
	gap: 6px;
	align-content: start;
	padding: 20px;
	border-radius: var(--bx-r-sm);
	background: var(--bx-bg2);
	font-size: 16px;
	line-height: 1.4;
	color: var(--bx-muted);
}

.bx-steps3 b {
	font-weight: 900;
	font-size: 22px;
	line-height: 1;
	color: var(--bx-ink);
}

.bx-steps3 .bx-step__n {
	width: 32px;
	height: 32px;
	font-size: 14px;
}

.bx-ord-extra:empty {
	display: none;
}

@media (max-width: 640px) {
	.bx-big {
		font-size: 44px;
	}

	.bx-bank__amt b {
		font-size: 48px;
	}

	.bx-bank__row {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 4px 12px;
	}

	.bx-bank__row dt {
		grid-column: 1 / -1;
	}

	.bx-bank__row.is-key {
		margin-inline: -20px;
		padding-inline: 20px;
	}

	.bx-steps3 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* „Как да те наричаме?“ on Поръчка приета (inc/order-pages.php). */
.bx-nick .input-text[aria-invalid="true"] {
	border-color: var(--bx-danger);
}

.bx-nick__err {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--bx-danger);
}

.bx-nick__ok {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--bx-live);
}

.bx-nick__form {
	display: grid;
	gap: 22px;
}
