/* Header scrolls with the page (not fixed — avoids stacking issues with modals/overlays) */
header.header {
    position: relative;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header__primary-wrap {
    position: relative;
}

.body_wrap {
    padding-top: 0;
}

/* Mobile search bar */
.header__mobile-search-wrap .header__search-box {
    display: flex !important;
    width: 100%;
    max-width: 100%;
}

/* Mobile search: icon-only category picker */
.header__search-box--mobile .mobile-cat-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 100%;
    border-right: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: .9rem;
}
.header__search-box--mobile .mobile-cat-wrap select {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    font-size: 1rem; /* prevents iOS zoom */
}
.header__search-box--mobile input[type="text"] {
    flex: 1;
    min-width: 0;
}

/* Override: show header on mobile (main.css hides it by default) */
@media (max-width: 767px) {
    .header__middle {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
    }
    .header__middle .hamburger_menu {
        order: 0;
        margin-right: 8px;
    }
    .header__middle .hamburger_menu .icon {
        color: var(--color-heading);
    }
    .header__middle .header__category {
        display: none;
    }
    .header__middle .header__search-box {
        display: none;
    }
    .header__middle .header__logo {
        order: 1;
        flex: 1;
        display: flex;
        justify-content: center;
    }
    .header__middle .header__icons {
        order: 2;
    }
}

/* Shop: 2-column product grid (Bootstrap) */
.shop-section .products-row .product {
    border: 1px solid var(--color-border);
    padding: 30px;
    height: 100%;
}

/* Password toggle button */
.password-input-wrapper {
    position: relative;
}
.password-input-wrapper input {
    padding-right: 42px;
}
.password-input-wrapper .password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #888;
}
.password-input-wrapper .password-toggle-btn:hover {
    color: var(--color-heading);
}

/* Products row - horizontal overflow with infinite-style scroll */
.rd-product__products-row-wrap {
    position: relative;
}
.rd-product__products-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 20px;
}
.rd-product__products-row::-webkit-scrollbar {
    height: 6px;
}
.rd-product__products-row::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.rd-product__products-row::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
.rd-product__products-row::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
.rd-product__products-row .tab-product__item {
    flex: 0 0 220px;
    min-width: 220px;
    margin: 0;
}
@media (max-width: 769px) {
    .rd-product__products-row .tab-product__item {
        flex: 0 0 180px;
        min-width: 180px;
    }
}
@media (max-width: 480px) {
    .rd-product__products-row .tab-product__item {
        flex: 0 0 160px;
        min-width: 160px;
    }
}
.rd-product__products-row-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    color: #374151;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s;
}
.rd-product__products-row-nav:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.rd-product__products-row-nav--prev {
    left: -20px;
}
.rd-product__products-row-nav--next {
    right: -20px;
}
@media (max-width: 991px) {
    .rd-product__products-row-nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .rd-product__products-row-nav--prev { left: -10px; }
    .rd-product__products-row-nav--next { right: -10px; }
}

/* Was / Now discounted price */
.price__was {
    display: inline-block;
    font-size: .82em;
    color: #9ca3af;
    text-decoration: line-through;
    margin-right: 4px;
}

.cart-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    color: #666666;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.cart-btn:hover,
.cart-btn:active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Shop sidebar filter form */
.sf-price-range { display:flex; align-items:center; gap:8px; }
.sf-price-range input { flex:1; min-width:0; height:36px; border:1px solid #d1d5db; border-radius:6px; padding:0 8px; font-size:.85rem; color:#111827; background:#fff; outline:none; }
.sf-price-range input:focus { border-color:var(--color-primary); }
.sf-price-sep { color:#9ca3af; flex-shrink:0; }
.sf-select { width:100%; height:38px; border:1px solid #d1d5db; border-radius:6px; padding:0 10px; font-size:.875rem; color:#111827; background:#fff; outline:none; }
.sf-select:focus { border-color:var(--color-primary); }
.sf-apply-btn { width:100%; justify-content:center; padding:10px 0; }
.sf-actions { display:flex; flex-direction:column; align-items:center; gap:10px; margin-top:4px; }
.sf-clear-link { font-size:.82rem; color:#6b7280; text-decoration:underline; }
.sf-clear-link:hover { color:var(--color-primary); }

/* Product stock status badge */
.product-stock-status {
    margin-bottom: 12px;
}
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}
.stock-badge--in  { background: #dcfce7; color: #166534; }
.stock-badge--low { background: #fef3c7; color: #92400e; }
.stock-badge--out { background: #fee2e2; color: #991b1b; }

/* ============================================================
   Shared orders table — used on admin orders & rider dashboard
   ============================================================ */
.orders-list-page { --orders-radius: 8px; }

.orders-empty {
    text-align: center;
    padding: 48px 24px;
    background: #f8f9fa;
    border-radius: var(--orders-radius);
}
.orders-empty__icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #d1d5db; font-size: 2rem;
}
.orders-empty__title  { font-size: 1.2rem; font-weight: 600; color: #374151; margin: 0 0 8px; }
.orders-empty__subtitle { color: #6b7280; margin: 0; font-size: .95rem; }

.orders-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: var(--orders-radius);
    border: 1px solid #eee;
    -webkit-overflow-scrolling: touch;
}
.orders-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.orders-table th,
.orders-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #eee; }
.orders-table th {
    font-weight: 600; font-size: .75rem;
    text-transform: uppercase; letter-spacing: .5px;
    color: #6b7280; background: #f8f9fa;
}
.orders-table th:first-child,
.orders-table td:first-child { padding-left: 16px; }
.orders-table tbody tr:hover { background: #fafafa; }
.orders-table tbody tr:last-child td { border-bottom: none; }

.orders-table__number { font-weight: 700; color: #1a1a1a; }
.orders-table__date   { color: #6b7280; }
.orders-table__customer { color: #6b7280; max-width: 140px; }
.orders-table__total-col { font-weight: 600; color: var(--color-primary, #ff8717); }

.orders-table__badge {
    display: inline-block; padding: 3px 8px;
    font-size: .7rem; font-weight: 600;
    border-radius: 4px; text-transform: capitalize; white-space: nowrap;
}
.orders-table__badge--success   { background: #dcfce7; color: #166534; }
.orders-table__badge--warning   { background: #fef3c7; color: #92400e; }
.orders-table__badge--danger    { background: #fee2e2; color: #991b1b; }
.orders-table__badge--secondary { background: #f3f4f6; color: #4b5563; }
.orders-table__badge--info      { background: #dbeafe; color: #1e40af; }

.orders-table__action-col { width: 1%; white-space: nowrap; }
.orders-table__action {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    color: var(--color-primary, #ff8717);
    text-decoration: none; border-radius: 4px;
    transition: background .2s;
    background: none; border: none; cursor: pointer; padding: 0;
}
.orders-table__action:hover { background: rgba(255,135,23,.1); color: var(--color-primary, #ff8717); }
.orders-table__action--delete { color: #dc2626; }
.orders-table__action--delete:hover { background: #fee2e2; color: #991b1b; }

@media (max-width: 767px) {
    .orders-table th, .orders-table td { padding: 8px 10px; font-size: .8rem; }
    .orders-table th { font-size: .65rem; }
    .orders-table__number { font-size: .85rem; }
    .orders-table__total-col { font-size: .85rem; }
    .orders-table__badge { padding: 2px 6px; font-size: .65rem; }
    .orders-table__customer { max-width: 100px; }
    .orders-table__action { width: 28px; height: 28px; font-size: .75rem; }
}
@media (max-width: 575px) {
    .orders-table th, .orders-table td { padding: 6px 8px; font-size: .75rem; }
    .orders-table th { font-size: .6rem; }
    .orders-table__number { font-size: .8rem; }
    .orders-table__badge { padding: 2px 5px; font-size: .6rem; }
    .orders-empty { padding: 32px 16px; }
    .orders-empty__icon { width: 64px; height: 64px; font-size: 1.5rem; }
    .orders-empty__title { font-size: 1.1rem; }
}

/* ============================================================
   Shared orders filter bar — admin orders & rider deliveries
   ============================================================ */
.orders-filter-form {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
}
.orders-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.orders-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 160px;
}
.orders-filter-field label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6b7280;
}
.orders-filter-field input,
.orders-filter-field select {
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0 10px;
    font-size: .875rem;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color .15s;
}
.orders-filter-field input:focus,
.orders-filter-field select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(192,57,43,.1);
}
.orders-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}
.orders-filter-btn {
    height: 38px;
    padding: 0 16px;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    white-space: nowrap;
}
.orders-filter-btn--primary { background: var(--color-primary); color: #fff; }
.orders-filter-btn--primary:hover { opacity: .9; color: #fff; }
.orders-filter-btn--secondary { background: #f3f4f6; color: #374151; }
.orders-filter-btn--secondary:hover { background: #e5e7eb; color: #374151; }

@media (max-width: 767px) {
    .orders-filter-field { min-width: calc(50% - 6px); }
    .orders-filter-actions { width: 100%; }
    .orders-filter-btn { flex: 1; justify-content: center; }
}
@media (max-width: 480px) {
    .orders-filter-field { min-width: 100%; }
}

/* ============================================================
   Chat bubble (Livewire component — ⚡chat-bubble)
   ============================================================ */

/* ── Floating button ──────────────────────────────── */
.cb-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .22);
    transition: transform .2s;
}
.cb-fab:hover { transform: scale(1.08); }
.cb-fab__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 99px;
    background: #ef4444;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #fff;
}

/* ── Panel ────────────────────────────────────────── */
.cb-panel {
    position: fixed;
    bottom: 96px;
    right: 28px;
    z-index: 9998;
    width: 300px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .18);
    display: flex;
    flex-direction: column;
    overflow: visible;
    animation: cb-slide-up .2s ease;
}
@keyframes cb-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 420px) {
    .cb-panel { width: calc(100vw - 24px); right: 12px; bottom: 88px; }
}

/* ── Header ───────────────────────────────────────── */
.cb-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 14px 14px 0 0;
}
.cb-header-left { display: flex; align-items: center; gap: 10px; }
.cb-header-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.cb-header-title { font-weight: 700; font-size: .95rem; margin: 0; color: white; }
.cb-header-sub   { font-size: .72rem; opacity: .85; margin: 0; color: white; }
.cb-header-close {
    background: rgba(255,255,255,.15);
    border: none; color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: .8rem; flex-shrink: 0;
    transition: background .15s;
}
.cb-header-close:hover { background: rgba(255,255,255,.3); }

/* ── Messages ─────────────────────────────────────── */
.cb-messages {
    flex: 1; overflow-y: auto;
    padding: 10px 10px 6px;
    min-height: 180px; max-height: 240px;
    display: flex; flex-direction: column; gap: 10px;
    background: #f9fafb;
}
.cb-empty {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    flex: 1; text-align: center;
    color: #6b7280; font-size: .875rem;
    padding: 20px; gap: 8px;
}
.cb-empty__icon { font-size: 2rem; color: #d1d5db; }
.cb-msg { display: flex; flex-direction: column; max-width: 85%; }
.cb-msg--out { align-self: flex-end; align-items: flex-end; }
.cb-msg--in  { align-self: flex-start; align-items: flex-start; }
.cb-msg__bubble {
    padding: 7px 10px; border-radius: 12px;
    font-size: .82rem; line-height: 1.5;
    word-break: break-word; white-space: pre-wrap;
}
.cb-msg--out .cb-msg__bubble {
    background: var(--color-primary); color: #fff;
    border-bottom-right-radius: 4px;
}
.cb-msg--in .cb-msg__bubble {
    background: #fff; color: #111827;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}
.cb-msg__time { font-size: .68rem; color: #9ca3af; margin-top: 3px; }

/* ── Edit ─────────────────────────────────────────── */
.cb-edit-wrap { width: 100%; }
.cb-edit-input {
    width: 100%; resize: none;
    border: 1px solid var(--color-primary);
    border-radius: 10px; padding: 8px 10px;
    font-size: .875rem; font-family: inherit;
    line-height: 1.4; outline: none;
}
.cb-edit-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 4px; }
.cb-edit-cancel,
.cb-edit-save {
    font-size: .75rem; font-weight: 600;
    padding: 4px 10px; border-radius: 6px;
    border: none; cursor: pointer;
}
.cb-edit-cancel { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.cb-edit-save   { background: var(--color-primary); color: #fff; }
.cb-edit-btn {
    background: none; border: none; cursor: pointer;
    font-size: .68rem; color: #9ca3af;
    padding: 1px 3px;
    display: inline-flex; align-items: center; gap: 3px;
    transition: color .15s; margin-top: 2px;
}
.cb-edit-btn:hover { color: var(--color-primary); }

/* ── Product card ─────────────────────────────────── */
.cb-inline-card { margin-top: 6px; }
.cb-product-card {
    display: flex; gap: 10px;
    padding: 10px 12px; background: #fff;
    border: 1px solid #e5e7eb; border-radius: 12px;
    border-bottom-left-radius: 4px; max-width: 240px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.cb-msg--out .cb-product-card { border-bottom-left-radius: 12px; border-bottom-right-radius: 4px; }
.cb-card-img { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.cb-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cb-card-name { font-size: .78rem; font-weight: 700; color: #111827; margin: 0; line-height: 1.3; }
.cb-card-price { font-size: .82rem; font-weight: 700; color: var(--color-primary); margin: 2px 0 4px; }
.cb-card-link {
    font-size: .72rem; font-weight: 600;
    color: #2563eb; text-decoration: none;
    display: inline-flex; align-items: center;
}
.cb-card-link:hover { text-decoration: underline; }

/* ── Order card ───────────────────────────────────── */
.cb-order-card {
    background: #fff; border: 1px solid #e5e7eb;
    border-radius: 12px; border-bottom-right-radius: 4px;
    padding: 10px 12px; max-width: 260px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.cb-msg--in .cb-order-card { border-bottom-right-radius: 12px; border-bottom-left-radius: 4px; }
.cb-order-card__header {
    display: flex; align-items: center; gap: 5px;
    font-size: .78rem; font-weight: 700; color: #111827; margin-bottom: 6px;
}
.cb-order-card__date { font-size: .68rem; color: #9ca3af; margin-left: auto; font-weight: 400; }
.cb-order-card__badges { display: flex; gap: 5px; margin-bottom: 7px; flex-wrap: wrap; }
.cb-badge {
    font-size: .65rem; font-weight: 700;
    padding: 2px 7px; border-radius: 99px;
}
.cb-badge--status { background: #eff6ff; color: #1d4ed8; }
.cb-badge--pay    { background: #f0fdf4; color: #166534; }
.cb-order-card__items {
    list-style: none; padding: 0; margin: 0 0 6px;
    font-size: .75rem; color: #374151;
    display: flex; flex-direction: column; gap: 2px;
}
.cb-order-item-qty { color: #9ca3af; }
.cb-order-card__total {
    font-size: .78rem; color: #374151; margin: 0;
    border-top: 1px solid #f3f4f6; padding-top: 6px;
}

/* ── Payment card ─────────────────────────────────── */
.cb-payment-card {
    display: flex; gap: 10px;
    padding: 10px 13px; background: #fffbeb;
    border: 1px solid #fde68a; border-radius: 12px;
    border-bottom-left-radius: 4px; max-width: 220px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.cb-payment-card__icon {
    width: 34px; height: 34px; background: #fef3c7;
    border-radius: 7px; display: flex;
    align-items: center; justify-content: center;
    color: #d97706; font-size: .9rem; flex-shrink: 0;
}
.cb-payment-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cb-payment-card__label  { font-size: .75rem; font-weight: 700; color: #92400e; margin: 0; }
.cb-payment-card__detail { font-size: .68rem; color: #78350f; margin: 0; }
.cb-payment-card__btn {
    margin-top: 5px; display: inline-flex; align-items: center; gap: 4px;
    background: #d97706; color: #fff; font-size: .72rem; font-weight: 700;
    padding: 4px 10px; border-radius: 6px;
    text-decoration: none; transition: opacity .15s;
}
.cb-payment-card__btn:hover { opacity: .88; color: #fff; }

/* ── Preview panel ────────────────────────────────── */
.cb-preview-panel {
    background: #f0f7ff; border: 1px solid #bfdbfe;
    border-radius: 10px; padding: 10px 12px; margin-bottom: 6px;
}
.cb-preview-panel__label {
    font-size: .68rem; font-weight: 700; color: #1d4ed8;
    text-transform: uppercase; letter-spacing: .04em;
    margin-bottom: 8px;
    display: flex; align-items: center;
}
.cb-preview-panel__actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.cb-preview-cancel,
.cb-preview-confirm {
    font-size: .78rem; font-weight: 600;
    padding: 5px 12px; border-radius: 7px;
    border: none; cursor: pointer;
}
.cb-preview-cancel  { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.cb-preview-confirm { background: var(--color-primary); color: #fff; }
.cb-preview-confirm:disabled { opacity: .5; cursor: not-allowed; }

/* ── Input wrap ───────────────────────────────────── */
.cb-input-wrap {
    position: relative; background: #fff;
    border-top: 1px solid #f3f4f6;
    border-radius: 0 0 16px 16px;
    padding: 8px 12px 12px;
}
.cb-flagged-notice {
    background: #fef2f2; color: #991b1b;
    border-top: 1px solid #fecaca;
    padding: 12px 14px; font-size: .8rem;
    font-weight: 500; text-align: center;
}
.cb-cmd-error {
    background: #fef2f2; color: #991b1b;
    border: 1px solid #fecaca; border-radius: 6px;
    padding: 6px 10px; font-size: .75rem; margin-bottom: 6px;
}
.cb-input-row { display: flex; align-items: flex-end; gap: 7px; }
.cb-cmd-btn {
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    background: #f3f4f6; color: #6b7280;
    border: 1px solid #e5e7eb;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: .78rem;
    transition: background .15s, color .15s; margin-bottom: 1px;
}
.cb-cmd-btn:hover { background: #e5e7eb; color: #111827; }
.cb-input {
    flex: 1; resize: none;
    border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 9px 11px; font-size: .875rem;
    font-family: inherit; line-height: 1.4;
    outline: none; transition: border-color .15s;
}
.cb-input:focus { border-color: var(--color-primary); }
.cb-send-btn {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: var(--color-primary); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: .85rem; transition: opacity .15s;
}
.cb-send-btn:hover    { opacity: .88; }
.cb-send-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Commands popup ───────────────────────────────── */
.cb-cmd-popup {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 12px; background: #fff;
    border: 1px solid #e5e7eb; border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.14);
    padding: 10px; min-width: 260px; z-index: 10;
}
.cb-cmd-popup__title {
    font-size: .68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    color: #9ca3af; margin: 0 0 8px; padding: 0 2px;
}
.cb-cmd-popup__item {
    display: flex; flex-direction: column; gap: 2px;
    width: 100%; text-align: left;
    background: none; border: none;
    padding: 8px 10px; border-radius: 8px;
    cursor: pointer; transition: background .12s;
}
.cb-cmd-popup__item:hover { background: #f9fafb; }
.cb-cmd-popup__item code {
    font-size: .8rem; font-weight: 700; color: #111827;
    background: #f3f4f6; padding: 1px 5px;
    border-radius: 4px; font-family: monospace;
}
.cb-cmd-popup__item span { font-size: .75rem; color: #6b7280; }

[x-cloak] { display: none !important; }
