.selection-head,
.selection-empty,
.selection-list,
.selection-total {
    display: none;
}

.selection-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.selection-actions {
    display: flex;
    gap: 8px;
}

.details-btn {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: bold;
    color: #1a73e8;
    background: #fff;
    border: 1px solid #1a73e8;
    border-radius: 8px;
    cursor: pointer;
}

.details-btn:disabled {
    color: #9aa0a6;
    border-color: #c4c7c5;
    cursor: not-allowed;
}

.drawer-close {
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 26px;
    line-height: 1;
    color: #555;
    background: none;
    border: none;
    cursor: pointer;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 440;
    display: none;
    background: rgba(0, 0, 0, 0.4);
}

.drawer-backdrop.is-visible {
    display: block;
}

@media (max-width: 991px) {
    .stall-tip {
        display: none !important;
    }

    .bottom-bar.is-drawer-open {
        top: 0;
        left: auto;
        width: min(380px, 88vw);
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
        border-top: none;
        box-shadow: -6px 0 24px rgba(0, 0, 0, 0.2);
    }

    .bottom-bar.is-drawer-open .selection-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 18px;
        font-weight: bold;
        color: #222;
    }

    .bottom-bar.is-drawer-open .selection-list {
        display: block;
        flex: 1;
        margin: 0;
        padding: 0;
        list-style: none;
        overflow-y: auto;
        border-top: 1px solid #eee;
    }

    .bottom-bar.is-drawer-open .selection-total {
        display: flex;
        padding-top: 10px;
        border-top: 1px solid #eee;
        font-size: 15px;
    }

    .bottom-bar.is-drawer-open .selection-count,
    .bottom-bar.is-drawer-open .details-btn {
        display: none;
    }

    .bottom-bar.is-drawer-open .selection-actions,
    .bottom-bar.is-drawer-open #bookNowBtn {
        flex: 1;
    }

    .bottom-bar.is-drawer-open #bookNowBtn {
        padding: 14px;
        font-size: 16px;
    }
}

.selection-total {
    flex-direction: column;
    gap: 6px;
    color: #555;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.total-grand {
    padding-top: 8px;
    border-top: 1px dashed #ddd;
    color: #111;
    font-weight: bold;
}

.total-grand strong {
    font-size: 20px;
}

@media (min-width: 992px) {
    .details-btn,
    .drawer-close,
    .drawer-backdrop.is-visible {
        display: none;
    }

    body {
        padding-bottom: 0;
    }

    .bottom-bar {
        left: auto;
        right: 24px;
        bottom: 24px;
        width: 320px;
        max-height: calc(100vh - 180px);
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 16px;
        border: 1px solid #ddd;
        border-radius: 12px;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    }

    .selection-head {
        display: flex;
        font-size: 16px;
        font-weight: bold;
        color: #222;
    }

    .selection-empty {
        display: block;
        font-size: 13px;
        color: #777;
    }

    .bottom-bar.has-selection .selection-empty {
        display: none;
    }

    .bottom-bar.has-selection .selection-list {
        display: block;
        margin: 0;
        padding: 0;
        list-style: none;
        overflow-y: auto;
        border-top: 1px solid #eee;
    }

    .bottom-bar.has-selection .selection-total {
        display: flex;
        padding-top: 8px;
        border-top: 1px solid #eee;
        font-size: 14px;
    }

    .zoom-tools {
        right: auto;
        left: 16px;
        bottom: 24px;
    }
}

.selection-item {
    display: grid;
    grid-template-columns: 1fr auto auto 24px;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #f2f2f2;
}

.selection-item-name {
    font-weight: bold;
    color: #222;
}

.selection-item-size {
    color: #777;
}

.selection-item-price {
    color: #111;
    text-align: right;
}

.selection-item-remove {
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
}

.selection-item-remove:hover {
    color: #b30000;
}
