/* Basket and checkout. Scoped class names (.bk-*); the theme follows the site (html.dark-mode). */
:root { --bl-text: #0f172a; --bl-muted: #475569; --bl-card: #ffffff; --bl-line: rgba(15, 23, 42, .12); --bl-accent: #4a5fa0; --bl-alt: #f1f4fa; --bl-grad: linear-gradient(135deg, #5b78c4, #7c5cd6); }
html.dark-mode { --bl-text: #f1f5f9; --bl-muted: #a5b0c3; --bl-card: #151926; --bl-line: rgba(255, 255, 255, .1); --bl-accent: #8fb0ff; --bl-alt: #10131c; }
.bk { color: var(--bl-text); padding-top: 7.5rem; }
.sr-only { position: absolute; left: -9999px; }
.bk { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.bk h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .2rem 0 .3rem; letter-spacing: -.02em; }
.bk-sub { color: var(--bl-muted); margin: 0 0 1.6rem; }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.6rem; align-items: start; }
.bk-card { background: var(--bl-card); border: 1px solid var(--bl-line); border-radius: 1.1rem; padding: 1.1rem 1.2rem; }
.bk-lines { display: flex; flex-direction: column; gap: .8rem; }
.bk-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem 1rem; align-items: start; }
.bk-type { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bl-accent); font-weight: 700; }
.bk-name { font-weight: 700; font-size: 1.05rem; margin: .1rem 0; }
.bk-desc { color: var(--bl-muted); font-size: .88rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bk-period { display: inline-block; margin-top: .35rem; font-size: .76rem; padding: .15rem .6rem; border-radius: 2rem; border: 1px solid var(--bl-line); color: var(--bl-muted); }
.bk-price { text-align: right; font-weight: 700; white-space: nowrap; }
.bk-price small { display: block; font-weight: 400; color: var(--bl-muted); font-size: .78rem; }
.bk-actions { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; flex-wrap: wrap; }
.bk-actions form { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
.bk-qty { width: 4.2rem; padding: .35rem .5rem; border-radius: .6rem; border: 1px solid var(--bl-line); background: transparent; color: inherit; font: inherit; }
.bk-link { background: none; border: 0; color: var(--bl-accent); cursor: pointer; font: inherit; font-size: .85rem; text-decoration: underline; padding: 0; }
.bk-link.danger { color: #f87171; }
.bk-sum { position: sticky; top: 6.5rem; }
.bk-sum h2 { font-size: 1.05rem; margin: 0 0 .8rem; }
.bk-row { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; color: var(--bl-muted); }
.bk-row.total { color: var(--bl-text); font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--bl-line); margin-top: .5rem; padding-top: .8rem; }
.bk-row.off { color: #34d399; }
.bk-btn { display: block; width: 100%; text-align: center; padding: .85rem 1rem; border-radius: .9rem; border: 0; background: var(--bl-grad); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; margin-top: .9rem; }
.bk-btn:disabled { opacity: .5; cursor: not-allowed; }
.bk-btn.ghost { background: transparent; border: 1px solid var(--bl-line); color: var(--bl-text); }
.bk-coupon { display: flex; gap: .4rem; margin-top: .8rem; }
.bk-coupon input { flex: 1; min-width: 0; padding: .55rem .8rem; border-radius: .7rem; border: 1px solid var(--bl-line); background: transparent; color: inherit; font: inherit; text-transform: uppercase; }
.bk-coupon button { padding: .55rem .9rem; border-radius: .7rem; border: 1px solid var(--bl-line); background: transparent; color: var(--bl-text); cursor: pointer; }
.bk-alert { padding: .8rem 1rem; border-radius: .8rem; margin-bottom: 1rem; border: 1px solid; }
.bk-alert.ok { border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .1); }
.bk-alert.err { border-color: rgba(248, 113, 113, .5); background: rgba(248, 113, 113, .1); }
.bk-empty { text-align: center; padding: 3rem 1rem; }
.bk-empty i { font-size: 2.4rem; color: var(--bl-accent); margin-bottom: .8rem; }
.bk-method { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--bl-line); border-radius: .9rem; margin-bottom: .6rem; cursor: pointer; }
.bk-method input { margin-top: .3rem; }
.bk-method.is-off { opacity: .55; cursor: not-allowed; }
.bk-method b { display: block; }
.bk-method small { color: var(--bl-muted); display: block; }
.bk-textarea { width: 100%; min-height: 4.5rem; padding: .7rem .9rem; border-radius: .8rem; border: 1px solid var(--bl-line); background: transparent; color: inherit; font: inherit; resize: vertical; }
.bk-note { color: var(--bl-muted); font-size: .85rem; margin: .6rem 0 0; }
.bk-pre { white-space: pre-wrap; background: rgba(255, 255, 255, .04); border: 1px solid var(--bl-line); border-radius: .8rem; padding: .9rem 1rem; }
.bk-ship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.bk-ship-full { grid-column: 1 / -1; }
@media (max-width: 900px) { .bk-grid { grid-template-columns: minmax(0, 1fr); } .bk-sum { position: static; } }
@media (max-width: 600px) { .bk-ship-grid { grid-template-columns: minmax(0, 1fr); } .bk-ship-full { grid-column: auto; } }

.bk-btn { color: #fff; }
.bk-btn.ghost { color: var(--bl-text); }
