/* The basket (basket.js), in the identity: night, gold hints. Names start with bk-. */

.bk-shade { position: fixed; inset: 0; z-index: 60; background: rgba(2, 6, 8, 0.62); backdrop-filter: blur(3px); }

.bk-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 61;
    width: min(420px, 100%);
    overflow-y: auto;
    background: #0d1a21;
    color: var(--ink, #f5f7f8);
    border-right: 1px solid rgba(230, 200, 119, 0.25);
    box-shadow: 18px 0 50px rgba(0, 0, 0, 0.5);
    padding: 18px 18px calc(24px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: bk-in 0.25s ease;
}

@keyframes bk-in { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }

body.bk-open { overflow: hidden; }

.bk-head { display: flex; align-items: center; justify-content: space-between; }
.bk-head h2 { margin: 0; font-size: 22px; font-family: Alexandria, var(--font); }
.bk-close { background: transparent; border: 1px solid var(--line, #1d313c); color: inherit; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; }

.bk-empty { text-align: center; color: var(--muted, #93a4ae); padding: 40px 0; display: grid; gap: 14px; justify-items: center; }

.bk-lines { display: grid; gap: 10px; }
.bk-line { display: flex; gap: 12px; align-items: center; background: #101e26; border: 1px solid var(--line, #1d313c); border-radius: 14px; padding: 10px; }

.bk-thumb { flex: none; width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(80% 70% at 50% 40%, #15262f, #0b161c); }
.bk-thumb img { width: 78%; height: 78%; object-fit: contain; }
.bk-thumb-empty { font-size: 26px; }

.bk-info { flex: 1; display: grid; gap: 3px; min-width: 0; }
.bk-info b { font-size: 14px; line-height: 1.35; }
.bk-price { color: var(--gold, #e6c877); font-weight: 700; font-size: 14px; }

.bk-qty { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.bk-qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line, #1d313c); background: #15262f; color: inherit; cursor: pointer; font-size: 16px; }
.bk-qty span { min-width: 18px; text-align: center; font-weight: 700; }
.bk-qty .bk-remove { width: auto; border-radius: 99px; padding: 0 12px; font-size: 12px; margin-inline-start: auto; color: var(--muted, #93a4ae); }

.bk-sum { border-top: 1px solid var(--line, #1d313c); padding-top: 12px; display: grid; gap: 6px; }
.bk-sum p { margin: 0; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.bk-sum b { font-family: Alexandria, var(--font); }
.bk-month b { color: var(--gold, #e6c877); }

.bk-go { width: 100%; min-height: 50px; font-size: 16px; }
.bk-back { width: 100%; }

.bk-note { margin: 0; color: var(--muted, #93a4ae); font-size: 13px; }

.bk-form { display: grid; gap: 12px; }
.bk-field { display: grid; gap: 5px; font-size: 13px; color: var(--muted, #93a4ae); }
.bk-field input, .bk-field select {
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid var(--line, #1d313c);
    background: #101e26;
    color: var(--ink, #f5f7f8);
    padding: 0 12px;
    font-size: 15px;
}
.bk-field input:focus, .bk-field select:focus { outline: 2px solid rgba(230, 200, 119, 0.6); outline-offset: 1px; }

.bk-pay { border: 1px solid var(--line, #1d313c); border-radius: 12px; padding: 10px 12px; margin: 0; display: grid; gap: 8px; }
.bk-pay legend { padding: 0 6px; font-size: 13px; color: var(--muted, #93a4ae); }
.bk-pay label { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.bk-pay input { accent-color: #e6c877; width: 18px; height: 18px; }

.bk-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.bk-message { margin: 0; color: #fca5a5; font-size: 14px; }

.bk-done { display: grid; gap: 14px; text-align: center; padding: 10px 0; }
.bk-number { margin: 0; font-family: Alexandria, var(--font); font-size: 30px; font-weight: 700; color: var(--gold, #e6c877); direction: ltr; }

.bk-toast {
    position: fixed;
    bottom: calc(86px + env(safe-area-inset-bottom));
    left: 50%;
    z-index: 70;
    transform: translateX(-50%);
    background: #101e26;
    color: var(--gold, #e6c877);
    border: 1px solid rgba(230, 200, 119, 0.45);
    border-radius: 99px;
    padding: 10px 18px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* The panel and its shade are hidden until opened (their display would undo [hidden]) */
.bk-panel[hidden], .bk-shade[hidden] { display: none; }

/* The golden warranty in the order form (a used device in the basket) */
.bk-golden { border-color: rgba(230, 200, 119, 0.55) !important; background: rgba(230, 200, 119, 0.05); }
.bk-golden legend { color: #fbe7a6 !important; font-weight: 700; }
.bk-golden a { color: var(--gold, #e6c877); font-size: 13px; }
