/*
 * Be-ant Shop: checkout and small front-end pieces.
 * Restyle from the page CSS with these variables, e.g.
 *   .bs-checkout { --bs-accent: #0a7c86; --bs-radius: 4px; }
 */
.bs-checkout {
	--bs-accent: #1b1d22;
	--bs-accent-text: #fff;
	--bs-border: #dcdfe4;
	--bs-muted: #646a75;
	--bs-error: #b42318;
	--bs-error-bg: #fef3f2;
	--bs-surface: #fff;
	--bs-radius: 8px;
	box-sizing: border-box;
	max-width: 860px;
	margin: 0 auto;
	padding: 24px 16px;
	font: inherit;
	color: inherit;
}
.bs-checkout *, .bs-checkout *::before, .bs-checkout *::after { box-sizing: inherit; }
.bs-checkout h2 { margin: 28px 0 12px; font-size: 1.25em; }
.bs-checkout h2:first-child { margin-top: 0; }
.bs-muted { color: var(--bs-muted); font-size: .9em; }
.bs-notice { padding: 12px 14px; border-radius: var(--bs-radius); background: #f4f5f7; margin: 0 0 16px; }
.bs-error { background: var(--bs-error-bg); color: var(--bs-error); }
.bs-lines { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
.bs-lines caption { text-align: left; font-weight: 600; padding: 8px 0; }
.bs-lines th, .bs-lines td { padding: 10px 8px; border-bottom: 1px solid var(--bs-border); text-align: left; vertical-align: middle; }
.bs-lines thead th { font-size: .85em; color: var(--bs-muted); font-weight: 600; }
.bs-lines tfoot th, .bs-lines tfoot td { border-bottom: 0; font-weight: 700; }
.bs-num { text-align: right !important; white-space: nowrap; }
.bs-qty { width: 4.5em; padding: 6px 8px; border: 1px solid var(--bs-border); border-radius: 6px; font: inherit; }
.bs-link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; font-size: .9em; }
.bs-update { margin-top: 4px; }
.bs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.bs-field { margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.bs-wide { grid-column: 1 / -1; }
.bs-field label { font-weight: 600; font-size: .95em; }
.bs-field input, .bs-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--bs-border); border-radius: 6px; font: inherit; background: var(--bs-surface); color: inherit; }
.bs-req { color: var(--bs-error); }
.bs-methods { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.bs-method { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--bs-border); border-radius: var(--bs-radius); cursor: pointer; }
.bs-method:has(input:checked) { border-color: var(--bs-accent); box-shadow: 0 0 0 1px var(--bs-accent); }
.bs-method .bs-muted { grid-column: 2; }
.bs-method-label { font-weight: 600; }
.bs-terms { flex-direction: row; }
.bs-terms label { font-weight: 400; }
.bs-button { display: inline-block; padding: 12px 22px; border: 0; border-radius: var(--bs-radius); background: var(--bs-accent); color: var(--bs-accent-text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.bs-button:hover { opacity: .9; color: var(--bs-accent-text); }
.bs-pay { width: 100%; font-size: 1.05em; }
.bs-bank { white-space: pre-wrap; padding: 14px; border: 1px solid var(--bs-border); border-radius: var(--bs-radius); background: #f8f9fb; font: inherit; line-height: 1.7; }
.bs-empty { text-align: center; padding: 40px 0; }
.bs-checkout .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 640px) {
	.bs-grid { grid-template-columns: 1fr; }
}

/* Buttons and toast on any page */
[data-beant-buy].is-busy, [data-beant-add-to-cart].is-busy { opacity: .6; cursor: progress; }
[data-beant-buy].is-sold-out, [data-beant-add-to-cart].is-sold-out, [data-beant-unavailable] { opacity: .5; cursor: not-allowed; }
.bs-toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 8px; background: #1b1d22; color: #fff; font-size: 15px; line-height: 1.4; box-shadow: 0 6px 24px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 99999; }
.bs-toast.is-shown { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.bs-toast.is-error { background: #b42318; }
.bs-toast a { color: #fff; font-weight: 600; text-decoration: underline; }
