/* BOORAN order tray + cart fab */

.bn-cart-fab.flr-cart-fab {
    position: fixed;
    inset-inline-end: 1rem;
    bottom: calc(var(--bn-nav-h) + var(--bn-safe-bottom) + 14px);
    z-index: 95;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--bn-burgundy-deep);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 42%),
        linear-gradient(160deg, var(--bn-burgundy-soft), var(--bn-burgundy-deep));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
    box-shadow: 0 10px 24px var(--bn-burgundy-glow);
}

.bn-cart-fab[hidden] {
    display: none !important;
}

.bn-cart-fab__mark {
    width: 10px;
    height: 10px;
    background: var(--bn-gold-bright);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.bn-cart-fab__count {
    min-width: 1.4rem;
    padding: 0.1rem 0.35rem;
    background: rgba(0, 0, 0, 0.22);
    font-size: 0.78rem;
    text-align: center;
    clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
}

.bn-tray.flr-order-drawer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--bn-transition), visibility var(--bn-transition);
}

.bn-tray.flr-order-drawer.is-open,
.bn-tray.flr-order-drawer[aria-hidden="false"] {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.bn-tray__veil {
    position: absolute;
    inset: 0;
    background: rgba(20, 24, 30, 0.58);
    border: none;
    cursor: pointer;
}

.bn-tray__panel {
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    bottom: 0;
    width: min(440px, 100%);
    display: flex;
    flex-direction: column;
    background: var(--bn-surface-plate);
    border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -16px 0 45px rgba(0, 0, 0, 0.7);
    color: #FFFFFF;
    transform: translateX(24px);
    transition: transform var(--bn-transition);
}

[dir="rtl"] .bn-tray__panel {
    transform: translateX(-24px);
}

.bn-tray[aria-hidden="false"] .bn-tray__panel,
.bn-tray.is-open .bn-tray__panel {
    transform: none;
}

.bn-tray__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.1rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bn-surface-metal);
}

.bn-tray__head h2 {
    margin: 0.25rem 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
}

.bn-tray__close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--bn-surface-metal);
    color: #FFFFFF;
    font-size: 1.2rem;
    cursor: pointer;
    clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
    transition: border-color var(--bn-transition-fast), background var(--bn-transition-fast);
}

.bn-tray__close:hover {
    border-color: var(--bn-crimson-vibrant);
    background: linear-gradient(135deg, rgba(120, 20, 36, 0.6), rgba(20, 24, 32, 0.9));
}

.bn-tray__body {
    flex: 1;
    overflow: auto;
    padding: 1rem 1.1rem 1.4rem;
}

.bn-tray__empty {
    text-align: center;
    color: #94A3B8;
    padding: 1.5rem 0;
}

.bn-tray__total {
    display: grid;
    gap: 0.55rem;
    margin: 1.1rem 0;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--bn-surface-card);
    box-shadow: var(--bn-bevel);
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}

.bn-tray__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    color: #CBD5E1;
}

.bn-tray__row strong {
    font-variant-numeric: tabular-nums;
    color: #F1F5F9;
}

.bn-tray__row--discount strong {
    color: var(--bn-crimson-vibrant);
}

.bn-tray__row--payable {
    padding-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    font-size: 1rem;
    color: #FFFFFF;
}

.bn-tray__row--payable strong {
    color: var(--bn-gold);
    font-size: 1.1rem;
}

.bn-field {
    margin-bottom: 0.95rem;
}

.bn-field label,
.bn-field .flr-field__label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #CBD5E1;
}

.bn-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.bn-mode {
    margin: 0;
    cursor: pointer;
}

.bn-mode .flr-order-type__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bn-mode__face {
    display: grid;
    place-items: center;
    min-height: 42px;
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--bn-surface-metal);
    font-size: 0.85rem;
    font-weight: 600;
    color: #94A3B8;
    clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
    box-shadow: var(--bn-bevel);
    transition: border-color var(--bn-transition-fast), color var(--bn-transition-fast), background var(--bn-transition-fast);
}

.bn-mode:hover .bn-mode__face {
    border-color: rgba(255, 255, 255, 0.28);
    color: #FFFFFF;
    background: linear-gradient(135deg, #252b38, #181c24);
}

.bn-mode .flr-order-type__input:checked + .bn-mode__face {
    border-color: var(--bn-crimson-vibrant);
    color: #FFFFFF;
    background: linear-gradient(135deg, rgba(120, 20, 36, 0.75), rgba(66, 11, 20, 0.92));
    box-shadow: 0 4px 14px var(--bn-burgundy-glow);
}

.bn-tables__label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.55rem 0 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #FFFFFF;
}

.bn-tables__hint {
    margin: 0 0 0.45rem;
    font-size: 0.75rem;
    color: #94A3B8;
}

.bn-tables__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
}

.bn-table-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    min-height: 52px;
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--bn-surface-metal);
    color: #FFFFFF;
    cursor: pointer;
    clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
    box-shadow: var(--bn-bevel);
    transition: border-color var(--bn-transition-fast), background var(--bn-transition-fast), transform var(--bn-transition-fast);
}

.bn-table-chip strong {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
}

.bn-table-chip small {
    font-size: 0.68rem;
    color: var(--bn-gold);
}

.bn-table-chip:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: linear-gradient(135deg, #252b38, #181c24);
    transform: translateY(-1px);
}

.bn-table-chip.is-selected {
    border-color: var(--bn-crimson-vibrant);
    background: linear-gradient(135deg, rgba(120, 20, 36, 0.75), rgba(66, 11, 20, 0.92));
    color: #FFFFFF;
    box-shadow: 0 4px 14px var(--bn-burgundy-glow);
}

.bn-table-chip.is-selected small {
    color: #FFFFFF;
}

.bn-table-chip.is-busy {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.3);
}

.bn-table-chip.is-reserved {
    border-style: dashed;
    border-color: var(--bn-gold);
}

.bn-tables__empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0.75rem;
    font-size: 0.85rem;
    color: #94A3B8;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    text-align: center;
}

.bn-captcha {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
}

/* Form inputs inside order drawer */
.bn-tray__form .np-input,
.bn-tray__form input[type="text"],
.bn-tray__form input[type="tel"],
.bn-tray__form input[type="number"],
.bn-tray__form textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    background: #141822 !important;
    color: #FFFFFF !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45) !important;
    border-radius: 0 !important;
    clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}

.bn-tray__form .np-input:focus,
.bn-tray__form input:focus,
.bn-tray__form textarea:focus {
    outline: none !important;
    border-color: var(--bn-crimson-vibrant) !important;
    background: #191f2c !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 0 2px rgba(186, 38, 64, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.45) !important;
}

.bn-tray__form .np-input::placeholder,
.bn-tray__form input::placeholder,
.bn-tray__form textarea::placeholder {
    color: #64748B !important;
}

#refreshCaptcha {
    min-width: 44px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--bn-surface-metal);
    color: #FFFFFF;
}

.bn-tray__note {
    margin: 0.45rem 0 0.85rem;
    font-size: 0.78rem;
    color: #94A3B8;
}

.bn-note {
    margin-bottom: 0.85rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(186, 38, 64, 0.4);
    background: linear-gradient(135deg, rgba(120, 20, 36, 0.35), rgba(20, 24, 32, 0.9));
    color: #F1F5F9;
    font-size: 0.85rem;
    clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}

/* Cart line items (flr hooks) */
.flr-order-items {
    display: grid;
    gap: 0.55rem;
}

.flr-order-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--bn-surface-card);
    box-shadow: var(--bn-bevel);
    clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
}

.flr-order-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.flr-order-item__title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #FFFFFF;
}

.flr-order-item__meta {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: var(--bn-gold);
}

.flr-order-item .flr-qty {
    display: inline-grid;
    grid-template-columns: 28px 30px 28px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(135deg, #252b37 0%, #161a22 100%);
    clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
    box-shadow: var(--bn-bevel);
    overflow: hidden;
}

.flr-order-item .flr-qty__btn {
    height: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF !important;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background var(--bn-transition-fast), color var(--bn-transition-fast);
}

.flr-order-item .flr-qty__btn:hover {
    background: linear-gradient(135deg, var(--bn-crimson-vibrant), var(--bn-burgundy));
    color: #FFFFFF !important;
}

.flr-order-item .flr-qty__value {
    text-align: center;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-size: 0.85rem;
    color: var(--bn-gold-bright) !important;
    border-inline: 1px solid rgba(255, 255, 255, 0.12);
    line-height: 30px;
    background: rgba(0, 0, 0, 0.35);
}

.flr-order-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 0.85rem;
    border: 1px solid var(--bn-crimson-vibrant);
    background: linear-gradient(160deg, var(--bn-burgundy-soft), var(--bn-burgundy-deep));
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--bn-burgundy-glow);
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
    transition: background var(--bn-transition), transform var(--bn-transition-fast), box-shadow var(--bn-transition);
}

.flr-order-submit:hover {
    background: linear-gradient(160deg, var(--bn-crimson-vibrant), var(--bn-burgundy));
    box-shadow: 0 8px 26px rgba(186, 38, 64, 0.55);
    transform: translateY(-1px);
}

@media (min-width: 900px) {
    .bn-cart-fab.flr-cart-fab {
        bottom: 1.25rem;
    }
}
