/* ─── Visitor Bubble / Cart Panel ───────────────────────────────────────── */

/* Dot trigger */
.mc-vb-dot { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9000; width: 42px; height: 42px; border-radius: 50%; background: var(--btn-bg,#f97316); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.8) translateY(8px); transition: opacity .25s, transform .25s, box-shadow .2s; pointer-events: none; }
.mc-vb-dot.mc-vb-dot--on { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.mc-vb-dot:hover, .mc-vb-dot:focus-visible { box-shadow: 0 0 0 6px rgba(249,115,22,.25), 0 4px 20px rgba(0,0,0,.4); outline: none; transform: scale(1.08) translateY(0); }
.mc-vb-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #fff; color: #f97316; font-size: .6rem; font-weight: 700; line-height: 18px; text-align: center; font-family: var(--f-mono,monospace); pointer-events: none; }

/* Slide-up panel */
.mc-vb-panel { position: fixed; bottom: 5.5rem; right: 1.5rem; z-index: 8999; width: 300px; max-height: calc(100vh - 7rem); overflow-y: auto; background: rgba(15,15,20,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(249,115,22,.15); border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.6); font-size: .8rem; opacity: 0; transform: translateY(12px) scale(.97); transition: opacity .22s, transform .22s; pointer-events: none; }
.mc-vb-panel.mc-vb-panel--open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

/* Panel header */
.mc-vb-header { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem .7rem; border-bottom: 1px solid rgba(249,115,22,.1); }
.mc-vb-title { font-family: var(--f-sans,sans-serif); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f97316; }
.mc-vb-close { background: none; border: none; cursor: pointer; color: rgba(255,255,255,.5); line-height: 0; padding: 2px; border-radius: 4px; transition: color .15s; }
.mc-vb-close:hover, .mc-vb-close:focus-visible { color: #fff; outline: none; }

/* Section label */
.mc-vb-section-label { padding: .65rem 1rem .25rem; font-family: var(--f-mono,monospace); font-size: .6rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); }

/* Empty state */
.mc-vb-empty { padding: .2rem 1rem .6rem; color: rgba(255,255,255,.3); font-size: .75rem; }

/* Identity block */
.mc-vb-identity { padding: .2rem 1rem .7rem; }
.mc-vb-ident-name { font-weight: 600; color: rgba(255,255,255,.9); margin-bottom: .2rem; }
.mc-vb-ident-row { color: rgba(255,255,255,.5); margin-top: .1rem; font-size: .75rem; }

/* Cart rows */
.mc-vb-cart { padding: .2rem 1rem .7rem; }
.mc-vb-cart-row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .2rem 0; }
.mc-vb-cart-name { color: rgba(255,255,255,.7); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-vb-cart-price { color: rgba(255,255,255,.9); font-family: var(--f-mono,monospace); font-size: .75rem; white-space: nowrap; flex-shrink: 0; }
.mc-vb-recurring { color: #f97316; }
.mc-vb-cart-total { display: flex; justify-content: space-between; padding-top: .45rem; margin-top: .35rem; border-top: 1px solid rgba(255,255,255,.08); font-weight: 600; color: rgba(255,255,255,.6); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.mc-vb-total-amt { color: #f97316; font-family: var(--f-mono,monospace); }

/* Pages visited */
.mc-vb-pages { padding: .2rem 1rem .7rem; }
.mc-vb-page-row { color: rgba(255,255,255,.55); padding: .15rem 0; }
.mc-vb-page-row::before { content: '›'; margin-right: .4rem; color: rgba(249,115,22,.5); }

/* Notes */
.mc-vb-notes { padding: .2rem 1rem .7rem; color: rgba(255,255,255,.5); font-size: .75rem; line-height: 1.5; white-space: pre-wrap; }

/* CTA block */
.mc-vb-ctas { display: flex; flex-direction: column; gap: .45rem; padding: .5rem 1rem 1rem; border-top: 1px solid rgba(249,115,22,.1); margin-top: .25rem; }
.mc-vb-cta { display: block; text-align: center; padding: .55rem .75rem; border-radius: 6px; font-size: .75rem; font-weight: 600; text-decoration: none; transition: opacity .15s, transform .15s; }
.mc-vb-cta--primary { background: linear-gradient(135deg,#f97316,#ea580c); color: #fff; }
.mc-vb-cta--primary:hover { opacity: .9; transform: translateY(-1px); }
.mc-vb-cta--ghost { border: 1px solid rgba(249,115,22,.3); color: rgba(255,255,255,.7); }
.mc-vb-cta--ghost:hover { border-color: rgba(249,115,22,.6); color: #fff; }

/* Day-mode overrides */
[data-theme="day"] .mc-vb-panel { background: rgba(255,255,255,.97); border-color: rgba(249,115,22,.2); box-shadow: 0 8px 40px rgba(0,0,0,.18); }
[data-theme="day"] .mc-vb-section-label { color: rgba(0,0,0,.35); }
[data-theme="day"] .mc-vb-empty { color: rgba(0,0,0,.3); }
[data-theme="day"] .mc-vb-ident-name { color: rgba(0,0,0,.85); }
[data-theme="day"] .mc-vb-ident-row { color: rgba(0,0,0,.5); }
[data-theme="day"] .mc-vb-cart-name { color: rgba(0,0,0,.6); }
[data-theme="day"] .mc-vb-cart-price { color: rgba(0,0,0,.8); }
[data-theme="day"] .mc-vb-cart-total { color: rgba(0,0,0,.5); border-color: rgba(0,0,0,.08); }
[data-theme="day"] .mc-vb-page-row { color: rgba(0,0,0,.5); }
[data-theme="day"] .mc-vb-notes { color: rgba(0,0,0,.5); }
[data-theme="day"] .mc-vb-header { border-color: rgba(249,115,22,.15); }
[data-theme="day"] .mc-vb-title { color: #ea580c; }
[data-theme="day"] .mc-vb-close { color: rgba(0,0,0,.35); }
[data-theme="day"] .mc-vb-close:hover { color: rgba(0,0,0,.8); }
[data-theme="day"] .mc-vb-ctas { border-color: rgba(249,115,22,.15); }
[data-theme="day"] .mc-vb-cta--ghost { color: rgba(0,0,0,.6); }
[data-theme="day"] .mc-vb-cta--ghost:hover { color: rgba(0,0,0,.9); }

@media (max-width: 420px) {
  .mc-vb-panel { right: .75rem; left: .75rem; width: auto; }
  .mc-vb-dot { bottom: 1rem; right: 1rem; }
}
