/* BoiChitro Suite – shared front-end UI (account, login, OTP, orders) */
:root {
	--bcs-brand: #1d3a9e; --bcs-brand-soft: #eef2fb; --bcs-buy: #fb641b;
	--bcs-ink: #0f172a; --bcs-text: #1f2937; --bcs-muted: #64748b; --bcs-line: #e5e7eb; --bcs-soft: #f6f7f9;
	--bcs-ok: #047857; --bcs-ok-bg: #ecfdf5; --bcs-warn: #b45309; --bcs-warn-bg: #fff7ed; --bcs-bad: #dc2626; --bcs-bad-bg: #fef2f2;
	--bcs-r: 16px; --bcs-r-sm: 12px; --bcs-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -16px rgba(15,23,42,.25);
	--bcs-ease: cubic-bezier(.2,.8,.2,1);
}
.bcs-acc, .bcs-auth, .bcs-otp, .bcs-co { font-family: inherit; color: var(--bcs-text); -webkit-font-smoothing: antialiased; }
.bcs-acc *, .bcs-auth *, .bcs-otp *, .bcs-co * { box-sizing: border-box; }
.bcs-i { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- buttons, links, inputs */
.bcs-btn {
	all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px; border-radius: 12px; cursor: pointer; text-align: center;
	font-size: 14.5px; font-weight: 700; line-height: 1.2; letter-spacing: 0; white-space: nowrap;
	color: var(--bcs-ink); background: #fff; border: 1px solid #d6dae2; transition: background .2s, border-color .2s, transform .15s, box-shadow .2s, filter .2s;
}
.bcs-btn:hover { border-color: #b8bfcc; background: #fafbfc; }
.bcs-btn:active { transform: scale(.98); }
.bcs-btn:focus-visible { outline: 2px solid var(--bcs-brand); outline-offset: 2px; }
.bcs-btn .bcs-i { width: 18px; height: 18px; }
.bcs-btn--primary { color: #fff !important; background: var(--bcs-brand); border-color: transparent; box-shadow: 0 10px 22px -14px var(--bcs-brand); }
.bcs-btn--primary:hover { background: var(--bcs-brand); filter: brightness(1.1); }
.bcs-btn--buy { color: #fff !important; background: var(--bcs-buy); border-color: transparent; box-shadow: 0 10px 22px -14px var(--bcs-buy); }
.bcs-btn--buy:hover { background: var(--bcs-buy); filter: brightness(1.06); }
.bcs-btn--danger { color: var(--bcs-bad) !important; border-color: #f3c4c4; }
.bcs-btn--danger:hover { background: var(--bcs-bad-bg); border-color: var(--bcs-bad); }
.bcs-btn--ghost { background: transparent; border-color: transparent; color: var(--bcs-brand) !important; }
.bcs-btn--ghost:hover { background: var(--bcs-brand-soft); border-color: transparent; }
.bcs-btn--sm { min-height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 10px; }
.bcs-btn--block { display: flex; width: 100%; }
.bcs-btn[disabled], .bcs-btn.is-busy { opacity: .6; pointer-events: none; }
.bcs-btn.is-busy::after { content: ""; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: bcs-spin .7s linear infinite; }
@keyframes bcs-spin { to { transform: rotate(360deg); } }
a.bcs-btn { text-decoration: none !important; }
.bcs-link { all: unset; cursor: pointer; color: var(--bcs-brand); font-weight: 700; font-size: 14px; }
.bcs-link:hover { text-decoration: underline; }
.bcs-link[disabled] { color: var(--bcs-muted); cursor: default; text-decoration: none; font-weight: 500; }

.bcs-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.bcs-field > label, .bcs-label { font-size: 13px; font-weight: 600; color: #374151; }
.bcs-input, .bcs-acc select.bcs-input, .bcs-auth .bcs-input {
	width: 100% !important; height: 46px !important; padding: 0 14px !important; margin: 0 !important;
	font-size: 15px !important; color: var(--bcs-ink) !important; background: #fff !important;
	border: 1px solid #d1d5db !important; border-radius: 12px !important; box-shadow: none !important; outline: none !important;
	transition: border-color .2s, box-shadow .2s;
}
.bcs-input:focus { border-color: var(--bcs-brand) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--bcs-brand) 12%, transparent) !important; }
.bcs-input[readonly], .bcs-input:disabled { background: #f8fafc !important; color: var(--bcs-muted) !important; cursor: not-allowed; }
.bcs-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.bcs-grid2 .bcs-full { grid-column: 1 / -1; }
.bcs-help { font-size: 12.5px; color: var(--bcs-muted); margin: 0; }

/* ---------------------------------------------------------------- notes & badges */
.bcs-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 0 0 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; background: var(--bcs-brand-soft); color: #1e3a8a; }
.bcs-note .bcs-i { width: 18px; height: 18px; margin-top: 1px; }
.bcs-note--ok { background: var(--bcs-ok-bg); color: #065f46; }
.bcs-note--error { background: var(--bcs-bad-bg); color: #991b1b; }
.bcs-note--warn { background: var(--bcs-warn-bg); color: #9a3412; }
.bcs-note a { color: inherit !important; font-weight: 700; text-decoration: underline !important; }
.bcs-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.3; white-space: nowrap; background: #eef0f4; color: #374151; }
.bcs-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bcs-badge--green { background: var(--bcs-ok-bg); color: var(--bcs-ok); }
.bcs-badge--amber { background: var(--bcs-warn-bg); color: var(--bcs-warn); }
.bcs-badge--red { background: var(--bcs-bad-bg); color: var(--bcs-bad); }
.bcs-badge--blue { background: var(--bcs-brand-soft); color: var(--bcs-brand); }
.bcs-badge--violet { background: #f3e8ff; color: #6d28d9; }

/* ---------------------------------------------------------------- account shell */
.bcs-acc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1180px; margin: 24px auto 48px; padding: 0 4px; }
.bcs-acc__nav { position: sticky; top: calc(90px + var(--wp-admin--admin-bar--height, 0px)); background: #fff; border: 1px solid var(--bcs-line); border-radius: var(--bcs-r); padding: 14px; box-shadow: var(--bcs-shadow); }
.bcs-acc__me { display: flex; align-items: center; gap: 12px; padding: 6px 6px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--bcs-line); }
.bcs-acc__me small { display: block; font-size: 12px; color: var(--bcs-muted); }
.bcs-acc__me strong { display: block; font-size: 15.5px; color: var(--bcs-ink); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcs-acc__avatar { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: #fff; background: linear-gradient(135deg, var(--bcs-brand), color-mix(in srgb, var(--bcs-brand) 60%, #7c3aed)); }
.bcs-acc__links { display: flex; flex-direction: column; gap: 2px; }
.bcs-acc__link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: #374151 !important; text-decoration: none !important; transition: background .15s, color .15s; }
.bcs-acc__link:hover { background: var(--bcs-soft); color: var(--bcs-ink) !important; }
.bcs-acc__link.is-active { background: var(--bcs-brand-soft); color: var(--bcs-brand) !important; }
.bcs-acc__link--out { margin-top: 6px; border-top: 1px solid var(--bcs-line); border-radius: 0 0 10px 10px; padding-top: 14px; color: var(--bcs-muted) !important; }
.bcs-acc__main { min-width: 0; }
.bcs-h1 { margin: 0 0 18px !important; font-size: clamp(22px, 1.4vw + 14px, 30px) !important; font-weight: 800 !important; letter-spacing: -.02em; color: var(--bcs-ink); line-height: 1.2 !important; }
.bcs-h2 { margin: 0 0 12px !important; font-size: 18px !important; font-weight: 750 !important; color: var(--bcs-ink); letter-spacing: -.01em; }
.bcs-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; font-size: 13px; color: var(--bcs-muted); }
.bcs-crumbs a { color: var(--bcs-brand) !important; text-decoration: none !important; font-weight: 600; }
.bcs-card { background: #fff; border: 1px solid var(--bcs-line); border-radius: var(--bcs-r); padding: 20px; box-shadow: var(--bcs-shadow); margin: 0 0 18px; }
.bcs-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 14px; }
.bcs-card__head .bcs-h2 { margin: 0 !important; }

@media (max-width: 900px) {
	.bcs-acc { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 12px; }
	.bcs-acc__nav { min-width: 0; max-width: 100%; }
	.bcs-acc__nav { position: static; padding: 8px; border-radius: 14px; box-shadow: none; }
	.bcs-acc__me { display: none; }
	.bcs-acc__links { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; }
	.bcs-acc__links::-webkit-scrollbar { display: none; }
	.bcs-acc__link { flex: 0 0 auto; padding: 8px 12px; font-size: 13.5px; background: var(--bcs-soft); border-radius: 999px; }
	.bcs-acc__link .bcs-acc__ico { flex-basis: 24px; width: 24px; height: 24px; border-radius: 7px; }
	.bcs-acc__link .bcs-acc__ico .bcs-i { width: 15px; height: 15px; }
	.bcs-acc__link.is-active { box-shadow: none; }
	.bcs-acc__link--out { margin: 0; border: 0; padding-top: 8px; border-radius: 999px; }
	.bcs-card { padding: 16px; border-radius: 14px; }
	.bcs-grid2 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- dashboard */
.bcs-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px; margin-bottom: 18px; border-radius: 20px; color: #fff;
	background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--bcs-brand) 55%, #7c3aed) 0%, var(--bcs-brand) 55%, color-mix(in srgb, var(--bcs-brand) 75%, #000) 100%); }
.bcs-hero h1 { color: #fff !important; margin: 0 0 4px !important; font-size: clamp(22px, 1.4vw + 14px, 30px) !important; font-weight: 800 !important; }
.bcs-hero p { margin: 0; opacity: .85; font-size: 14px; }
.bcs-hero__stats { display: flex; gap: 10px; flex-wrap: wrap; }
.bcs-hero__stat { min-width: 108px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.bcs-hero__stat strong { display: block; font-size: 20px; font-weight: 800; line-height: 1.2; }
.bcs-hero__stat span { font-size: 12px; opacity: .85; }
.bcs-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.bcs-tone--indigo { --t: #4f46e5; --tb: #eef0ff; } .bcs-tone--blue { --t: #2563eb; --tb: #eaf2ff; } .bcs-tone--teal { --t: #0d9488; --tb: #e3f7f4; }
.bcs-tone--violet { --t: #7c3aed; --tb: #f2ecff; } .bcs-tone--amber { --t: #d97706; --tb: #fff4e0; } .bcs-tone--rose { --t: #e11d48; --tb: #ffeaf0; }
.bcs-tone--sky { --t: #0284c7; --tb: #e6f5fd; } .bcs-tone--orange { --t: #ea580c; --tb: #fff0e6; } .bcs-tone--green { --t: #16a34a; --tb: #e6f8ec; } .bcs-tone--slate { --t: #64748b; --tb: #f1f4f8; }
.bcs-tile { position: relative; display: flex !important; gap: 14px; align-items: center; padding: 18px 18px 18px 20px; background: #fff; border: 1px solid var(--bcs-line); border-radius: var(--bcs-r); text-decoration: none !important; color: var(--bcs-text) !important; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s var(--bcs-ease); }
.bcs-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--t, var(--bcs-brand)); opacity: .85; }
.bcs-tile:hover { border-color: var(--t, #cdd3de); box-shadow: 0 10px 24px -14px var(--t, rgba(0,0,0,.3)); transform: translateY(-2px); }
.bcs-tile .bcs-tile__ico { flex: 0 0 46px !important; width: 46px !important; height: 46px !important; margin: 0 !important; padding: 0 !important; border-radius: 13px; display: flex !important; align-items: center; justify-content: center; color: var(--t, var(--bcs-brand)) !important; background: var(--tb, var(--bcs-brand-soft)) !important; line-height: 0; }
.bcs-tile .bcs-tile__ico .bcs-i { display: block; width: 22px !important; height: 22px !important; margin: 0 !important; position: static !important; }
.bcs-tile .bcs-tile__txt { display: block; min-width: 0; }
.bcs-tile .bcs-tile__txt strong { display: block; font-size: 15.5px; font-weight: 700; color: var(--bcs-ink); margin: 0 0 3px; line-height: 1.3; }
.bcs-tile .bcs-tile__txt small { display: block; font-size: 13px; color: var(--bcs-muted); line-height: 1.45; }
.bcs-acc__link .bcs-acc__ico { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--t, var(--bcs-brand)); background: var(--tb, var(--bcs-brand-soft)); line-height: 0; }
.bcs-acc__link .bcs-acc__ico .bcs-i { display: block; width: 17px; height: 17px; margin: 0; }
.bcs-acc__link.is-active { background: var(--tb, var(--bcs-brand-soft)) !important; color: var(--t, var(--bcs-brand)) !important; box-shadow: inset 3px 0 0 var(--t, var(--bcs-brand)); }
.bcs-acc__link.is-active .bcs-acc__ico { background: #fff; }
.bcs-nudge { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 18px; border-radius: 14px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 14px; }

/* ---------------------------------------------------------------- orders */
.bcs-toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.bcs-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: var(--bcs-soft); border-radius: 999px; }
.bcs-tabs::-webkit-scrollbar { display: none; }
.bcs-tabs a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #4b5563 !important; text-decoration: none !important; }
.bcs-tabs a.is-active { background: #fff; color: var(--bcs-ink) !important; box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.bcs-search { position: relative; flex: 1 1 260px; max-width: 360px; }
.bcs-search .bcs-i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--bcs-muted); width: 18px; height: 18px; }
.bcs-search .bcs-input { height: 42px !important; padding-left: 38px !important; border-radius: 999px !important; }
.bcs-order { background: #fff; border: 1px solid var(--bcs-line); border-radius: var(--bcs-r); overflow: hidden; margin-bottom: 16px; box-shadow: var(--bcs-shadow); }
.bcs-order__top { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; padding: 12px 18px; background: #f8f9fb; border-bottom: 1px solid var(--bcs-line); font-size: 13px; color: var(--bcs-muted); }
.bcs-order__top b { display: block; font-size: 14px; color: var(--bcs-ink); font-weight: 700; }
.bcs-order__top .bcs-order__links { margin-left: auto; display: flex; gap: 14px; }
.bcs-order__top a { color: var(--bcs-brand) !important; font-weight: 700; text-decoration: none !important; }
.bcs-order__body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 18px; padding: 18px; }
.bcs-order__status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 4px; font-size: 16.5px; font-weight: 800; color: var(--bcs-ink); }
.bcs-order__sub { margin: 0 0 14px; font-size: 13.5px; color: var(--bcs-muted); }
.bcs-items { display: flex; flex-direction: column; gap: 12px; }
.bcs-item { display: flex; gap: 14px; align-items: flex-start; }
.bcs-item__img { flex: 0 0 64px; width: 64px; aspect-ratio: 3 / 4; border-radius: 4px 9px 9px 4px; overflow: hidden; background: var(--bcs-soft); box-shadow: inset 3px 0 3px -2px rgba(0,0,0,.25), 0 6px 14px -8px rgba(15,23,42,.45); }
.bcs-item__img img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; margin: 0 !important; }
.bcs-item__name { font-size: 14.5px; font-weight: 650; color: var(--bcs-ink) !important; text-decoration: none !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.bcs-item__name:hover { color: var(--bcs-brand) !important; }
.bcs-item__meta { font-size: 13px; color: var(--bcs-muted); margin-top: 3px; }
.bcs-item__acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.bcs-more { font-size: 13px; color: var(--bcs-muted); }
.bcs-order__acts { display: flex; flex-direction: column; gap: 8px; }
.bcs-order__acts .bcs-btn { width: 100%; }
.bcs-empty { text-align: center; padding: 48px 20px; border: 1px dashed #d6dae2; border-radius: var(--bcs-r); background: #fff; }
.bcs-empty .bcs-i { width: 44px; height: 44px; color: var(--bcs-brand); margin-bottom: 8px; }
.bcs-empty h3 { margin: 0 0 6px !important; font-size: 18px !important; }
.bcs-empty p { margin: 0 0 16px; color: var(--bcs-muted); }
.bcs-pager { display: flex; justify-content: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.bcs-pager a, .bcs-pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--bcs-line); background: #fff; font-weight: 700; font-size: 14px; color: var(--bcs-ink) !important; text-decoration: none !important; }
.bcs-pager .current { background: var(--bcs-brand); border-color: var(--bcs-brand); color: #fff !important; }
@media (max-width: 760px) {
	.bcs-order__body { grid-template-columns: 1fr; }
	.bcs-order__acts { flex-direction: row; flex-wrap: wrap; }
	.bcs-order__acts .bcs-btn { width: auto; flex: 1 1 140px; }
	.bcs-order__top .bcs-order__links { margin-left: 0; width: 100%; }
	.bcs-search { max-width: none; }
}

/* ---------------------------------------------------------------- progress tracker */
.bcs-track { display: flex; align-items: flex-start; margin: 8px 0 4px; }
.bcs-track__step { position: relative; flex: 1; text-align: center; font-size: 12.5px; color: #9ca3af; font-weight: 600; }
.bcs-track__step::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: #e5e7eb; z-index: 0; }
.bcs-track__step:first-child::before { display: none; }
.bcs-track__dot { position: relative; z-index: 1; display: block; width: 21px; height: 21px; margin: 0 auto 6px; border-radius: 50%; background: #fff; border: 3px solid #e5e7eb; }
.bcs-track__step.is-done { color: var(--bcs-ok); }
.bcs-track__step.is-done::before { background: var(--bcs-ok); }
.bcs-track__step.is-done .bcs-track__dot { background: var(--bcs-ok); border-color: var(--bcs-ok); }
.bcs-track__step.is-now { color: var(--bcs-ink); font-weight: 800; }
.bcs-track__step.is-now .bcs-track__dot { border-color: var(--bcs-ok); box-shadow: 0 0 0 5px color-mix(in srgb, var(--bcs-ok) 18%, transparent); }
.bcs-track__step.is-stop { color: var(--bcs-bad); }
.bcs-track__step.is-stop .bcs-track__dot { background: var(--bcs-bad); border-color: var(--bcs-bad); }
.bcs-track__step small { display: block; font-weight: 500; color: var(--bcs-muted); margin-top: 2px; }

/* ---------------------------------------------------------------- order details */
.bcs-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.bcs-kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--bcs-line); }
.bcs-kv:last-child { border-bottom: 0; }
.bcs-kv--total { font-size: 17px; font-weight: 800; color: var(--bcs-ink); border-top: 1px solid var(--bcs-line); border-bottom: 0; padding-top: 12px; margin-top: 4px; }
.bcs-addr { font-style: normal; font-size: 14px; line-height: 1.65; color: #374151; }
.bcs-trackcard { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.bcs-trackcard__l { display: flex; align-items: center; gap: 12px; }
.bcs-trackcard__ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--bcs-ok-bg); color: var(--bcs-ok); }
.bcs-sms-verify { border: 1px solid #fed7aa; background: #fffaf5; }
.bcs-sms-verify table, .bcs-sms-verify h2, .bcs-sms-verify h3, .bcs-sms-verify section, .bcs-sms-verify address, .bcs-sms-verify [class*="wps_"], .bcs-sms-verify [id*="wps_"], .bcs-sms-verify [class*="rma"] { display: none !important; }
@media (max-width: 980px) { .bcs-detail { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- choice cards (returns, addresses) */
.bcs-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.bcs-choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--bcs-line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; font-weight: 500 !important; margin: 0 !important; }
.bcs-choice input { position: absolute; opacity: 0; pointer-events: none; }
.bcs-choice__dot { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cbd5e1; margin-top: 1px; transition: border .2s; }
.bcs-choice strong { display: block; font-size: 14.5px; color: var(--bcs-ink); }
.bcs-choice small { display: block; font-size: 12.5px; color: var(--bcs-muted); margin-top: 2px; line-height: 1.4; }
.bcs-choice:has(input:checked) { border-color: var(--bcs-brand); background: var(--bcs-brand-soft); }
.bcs-choice:has(input:checked) .bcs-choice__dot { border: 6px solid var(--bcs-brand); }
.bcs-choice:has(input:focus-visible) { outline: 2px solid var(--bcs-brand); outline-offset: 2px; }
.bcs-addrcard { position: relative; display: flex; flex-direction: column; gap: 8px; }
.bcs-addrcard__tag { align-self: flex-start; }

/* ---------------------------------------------------------------- security rows */
.bcs-rows { display: flex; flex-direction: column; }
.bcs-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--bcs-line); }
.bcs-row:last-child { border-bottom: 0; }
.bcs-row__l { display: flex; gap: 14px; align-items: center; min-width: 0; }
.bcs-row__ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bcs-soft); color: #374151; }
.bcs-row strong { display: block; font-size: 15px; color: var(--bcs-ink); }
.bcs-row span { display: block; font-size: 13.5px; color: var(--bcs-muted); overflow: hidden; text-overflow: ellipsis; }
.bcs-verified { color: var(--bcs-ok) !important; font-weight: 700; }

/* ---------------------------------------------------------------- OTP dialog */
.bcs-otp { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15,23,42,.55); backdrop-filter: blur(4px); animation: bcs-fade .2s ease; }
.bcs-otp[hidden] { display: none !important; }
@keyframes bcs-fade { from { opacity: 0; } }
.bcs-otp__panel { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px 24px 20px; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(15,23,42,.5); animation: bcs-pop .25s var(--bcs-ease); }
@keyframes bcs-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.bcs-otp__x { all: unset; position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--bcs-muted); }
.bcs-otp__x:hover { background: var(--bcs-soft); color: var(--bcs-ink); }
.bcs-otp__title { margin: 0 32px 6px 0 !important; font-size: 20px !important; font-weight: 800 !important; color: var(--bcs-ink); }
.bcs-otp__text { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: #4b5563; }
.bcs-otp__text strong { color: var(--bcs-ink); }
.bcs-otp__steps { display: flex; gap: 6px; margin: 0 0 14px; }
.bcs-otp__steps span { flex: 1; height: 4px; border-radius: 4px; background: #e5e7eb; }
.bcs-otp__steps span.is-on { background: var(--bcs-brand); }
.bcs-otp__code { display: block; width: 100% !important; height: 58px !important; margin: 0 0 8px !important; padding: 0 12px !important; text-align: center; font-size: 26px !important; font-weight: 800 !important; letter-spacing: .45em !important; text-indent: .45em;
	color: var(--bcs-ink) !important; background: #f8fafc !important; border: 1.5px solid #d1d5db !important; border-radius: 14px !important; outline: none !important; box-shadow: none !important; }
.bcs-otp__code:focus { border-color: var(--bcs-brand) !important; background: #fff !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--bcs-brand) 12%, transparent) !important; }
.bcs-otp__code.is-bad { border-color: var(--bcs-bad) !important; animation: bcs-shake .3s; }
@keyframes bcs-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.bcs-otp__msg { min-height: 20px; margin: 0 0 10px; font-size: 13.5px; font-weight: 600; color: var(--bcs-bad); }
.bcs-otp__msg.is-ok { color: var(--bcs-ok); }
.bcs-otp__go { width: 100%; min-height: 50px; font-size: 15.5px; }
.bcs-otp__foot { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--bcs-muted); text-align: center; }
.bcs-otp__extra:empty { display: none; }
.bcs-otp__extra { margin: 0 0 12px; }

/* ---------------------------------------------------------------- login / sign-up */
.bcs-auth-wrap { max-width: 460px; margin: 28px auto 48px; padding: 0 2px; }
.bcs-auth { position: relative; background: #fff; border: 1px solid var(--bcs-line); border-radius: 22px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 28px 56px -36px rgba(30,41,90,.45); }
/* the memorable bit: a little shelf of coloured book spines */
.bcs-auth__spines { display: flex; align-items: flex-end; gap: 3px; height: 46px; padding: 0 26px; background: linear-gradient(180deg, #f3f6fc, #fff); border-bottom: 3px solid #e9edf5; }
.bcs-auth__spines i { flex: 1; display: block; border-radius: 3px 3px 0 0; background: var(--c); box-shadow: inset 0 5px 0 rgba(255,255,255,.28), inset 0 -6px 0 rgba(0,0,0,.08); }
.bcs-auth__spines i:nth-child(1) { --c: #4f46e5; height: 70%; } .bcs-auth__spines i:nth-child(2) { --c: #0d9488; height: 92%; } .bcs-auth__spines i:nth-child(3) { --c: #d97706; height: 62%; }
.bcs-auth__spines i:nth-child(4) { --c: #e11d48; height: 84%; flex: 1.4; } .bcs-auth__spines i:nth-child(5) { --c: #7c3aed; height: 74%; } .bcs-auth__spines i:nth-child(6) { --c: #0284c7; height: 96%; }
.bcs-auth__spines i:nth-child(7) { --c: #16a34a; height: 66%; flex: .8; } .bcs-auth__spines i:nth-child(8) { --c: #ea580c; height: 88%; } .bcs-auth__spines i:nth-child(9) { --c: #475569; height: 58%; transform: rotate(-8deg); transform-origin: bottom left; }
.bcs-auth__spines i:nth-child(10) { --c: #db2777; height: 80%; } .bcs-auth__spines i:nth-child(11) { --c: #2563eb; height: 68%; flex: 1.3; } .bcs-auth__spines i:nth-child(12) { --c: #ca8a04; height: 90%; }
.bcs-auth__brand { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 30px 0; text-align: center; }
.bcs-auth__logo { max-height: 42px; width: auto; height: auto; }
.bcs-auth__name { font-size: 22px; font-weight: 800; color: var(--bcs-ink); letter-spacing: -.01em; }
.bcs-auth__bn { font-size: 14px; color: var(--bcs-muted); }
.bcs-auth__main { padding: 16px 30px 26px; }
.bcs-auth__main h3 { margin: 6px 0 6px !important; font-size: 22px !important; font-weight: 800 !important; color: var(--bcs-ink); text-align: center; letter-spacing: -.01em; }
.bcs-auth__lead { margin: 0 auto 22px; max-width: 34ch; color: var(--bcs-muted); font-size: 14.5px; text-align: center; line-height: 1.5; }
.bcs-auth .bcs-input, .bcs-auth .bcs-phone { min-height: 50px; }
.bcs-auth .bcs-btn--primary { min-height: 50px; font-size: 16px; border-radius: 12px; }
.bcs-auth__perks { list-style: none !important; margin: 16px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bcs-auth__perks li { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 !important; padding: 10px 4px; text-align: center; font-size: 12px; font-weight: 600; color: #475569; line-height: 1.3; }
.bcs-auth__perks li > span { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--t); background: var(--tb); }
.bcs-auth__perks .bcs-i { width: 17px; height: 17px; }
.bcs-auth__lead { margin: 0 0 22px; color: var(--bcs-muted); font-size: 14.5px; }
.bcs-phone { display: flex; align-items: stretch; border: 1px solid #d1d5db; border-radius: 12px; overflow: hidden; transition: border-color .2s, box-shadow .2s; background: #fff; }
.bcs-phone:focus-within { border-color: var(--bcs-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bcs-brand) 12%, transparent); }
.bcs-phone__cc { display: flex; align-items: center; padding: 0 12px; font-weight: 700; color: #374151; background: var(--bcs-soft); border-right: 1px solid #e5e7eb; font-size: 15px; }
.bcs-phone .bcs-input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; letter-spacing: .04em; }
.bcs-auth__alt { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--bcs-line); font-size: 14px; }
.bcs-auth__or { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 12px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .08em; }
.bcs-auth__or::before, .bcs-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--bcs-line); }
.bcs-auth__legal { margin: 18px 0 0; font-size: 12px; color: #9ca3af; line-height: 1.5; text-align: center; }
.bcs-auth__legal a { color: inherit !important; text-decoration: underline !important; }
.bcs-auth__pw form.login, .bcs-auth__pw form.woocommerce-form-login { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.bcs-auth__pw .woocommerce-form-row, .bcs-auth__pw p.form-row { margin: 0 0 14px !important; padding: 0 !important; width: 100% !important; float: none !important; }
.bcs-auth__pw label { font-size: 13px !important; font-weight: 600 !important; color: #374151 !important; }
.bcs-auth__pw input.input-text { width: 100% !important; height: 46px !important; padding: 0 14px !important; border: 1px solid #d1d5db !important; border-radius: 12px !important; font-size: 15px !important; box-shadow: none !important; }
.bcs-auth__pw .woocommerce-form-login__rememberme { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 0 12px !important; font-weight: 500 !important; }
.bcs-auth__pw button[type="submit"] { width: 100% !important; min-height: 48px !important; border-radius: 12px !important; background: var(--bcs-brand) !important; color: #fff !important; border: 0 !important; font-weight: 700 !important; font-size: 15px !important; text-transform: none !important; }
.bcs-auth__pw .lost_password { margin: 10px 0 0 !important; text-align: center; }
.bcs-auth__pw .lost_password a { color: var(--bcs-brand) !important; font-weight: 700; }
.bcs-auth__done { text-align: center; padding: 20px 0; }
.bcs-auth__done .bcs-i { width: 54px; height: 54px; padding: 12px; border-radius: 50%; color: var(--bcs-ok); background: var(--bcs-ok-bg); margin-bottom: 8px; }
@media (max-width: 520px) {
	.bcs-auth-wrap { margin: 10px auto 30px; }
	.bcs-auth { border-radius: 18px; }
	.bcs-auth__spines { padding: 0 18px; height: 38px; }
	.bcs-auth__main { padding: 14px 18px 22px; }
	.bcs-auth__perks { grid-template-columns: repeat(2, 1fr); }
	.bcs-auth__perks li { flex-direction: row; justify-content: flex-start; text-align: left; padding: 6px 4px; }
	.bcs-input, .bcs-otp__code { font-size: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.bcs-otp, .bcs-otp__panel, .bcs-tile, .bcs-btn { animation: none !important; transition: none !important; }
}
/* Theme-proofing: some themes paint every <button>; keep suite buttons on-brand. */
.bcs-acc button.bcs-link, .bcs-auth button.bcs-link, .bcs-otp button.bcs-link, .bcs-co button.bcs-link { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; color: var(--bcs-brand) !important; font-weight: 600; text-decoration: none; min-height: 0; }
.bcs-acc button.bcs-link:hover, .bcs-auth button.bcs-link:hover, .bcs-otp button.bcs-link:hover { text-decoration: underline; background: none !important; }
.bcs-btn.bcs-btn--primary, button.bcs-btn.bcs-btn--primary { background: var(--bcs-brand) !important; border-color: var(--bcs-brand) !important; color: #fff !important; }
.bcs-btn.bcs-btn--primary:hover { filter: brightness(.94); }

/* A thin shelf of colours across the top of every code dialog, matching the login card. */
.bcs-otp__panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 22px 22px 0 0; background: linear-gradient(90deg, #4f46e5 0 12%, #0d9488 12% 24%, #d97706 24% 36%, #e11d48 36% 48%, #7c3aed 48% 60%, #0284c7 60% 72%, #16a34a 72% 84%, #ea580c 84% 100%); }
/* Address book */
.bcs-book { margin-top: 26px; }
.bcs-book__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; }
.bcs-book__head .bcs-h2 { margin-bottom: 4px !important; }
.bcs-book__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.bcs-book__card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px 18px; background: #fff; border: 1px solid var(--bcs-line); border-left: 4px solid var(--t); border-radius: var(--bcs-r-sm); box-shadow: var(--bcs-shadow); }
.bcs-book__tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--t); background: var(--tb); }
.bcs-book__card .bcs-addr { font-style: normal; font-size: 14px; line-height: 1.55; color: var(--bcs-text); margin: 0; }
.bcs-book__actions { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 10px; border-top: 1px dashed var(--bcs-line); }
.bcs-book__actions .bcs-link { font-size: 13px !important; }
.bcs-book__sp { flex: 1; }
.bcs-acc button.bcs-link.bcs-link--danger { color: #e11d48 !important; }
.bcs-book__empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 18px; border: 1px dashed #cdd5e1; border-radius: var(--bcs-r-sm); color: var(--bcs-muted); }
.bcs-book__empty .bcs-i { width: 28px; height: 28px; color: #0d9488; }
.bcs-book__empty p { margin: 0; font-size: 14px !important; line-height: 1.5; }
.bcs-book__form { margin-top: 16px; }
.bcs-book__labels { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bcs-book__chip { position: relative; cursor: pointer; }
.bcs-book__chip input { position: absolute; opacity: 0; pointer-events: none; }
.bcs-book__chip span { display: inline-flex; padding: 7px 14px; border-radius: 999px; border: 1px solid #d6dbe4; font-size: 13.5px; font-weight: 600; color: #374151; transition: all .15s; }
.bcs-book__chip input:checked + span { color: var(--t); background: var(--tb); border-color: var(--t); }
.bcs-book__chip input:focus-visible + span { outline: 2px solid var(--t); outline-offset: 2px; }
.bcs-book__custom { max-width: 220px; min-height: 38px !important; }
