/**
 * BevlyPOS Delivery Pickup — Checkout Styles
 * Version 7.0.0
 */

/* ── Order type wrapper ────────────────────────────────────────────────────── */
.bevly-order-type-wrapper {
    background: #f0f6ff;
    border: 2px solid #2563eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 0 0 28px;
    text-align: center;
}

.bevly-order-type-label {
    font-size: 16px;
    font-weight: 700;
    color: #1a2e4a;
    margin-bottom: 16px;
}

.bevly-order-type-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Order type buttons ────────────────────────────────────────────────────── */
.bevly-type-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    transition: all 0.18s ease;
    min-width: 140px;
    line-height: 1.2;
}

.bevly-type-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.bevly-type-btn.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.bevly-type-icon {
    font-size: 24px;
    line-height: 1;
}

/* ── Window selectors ──────────────────────────────────────────────────────── */
.bevly-window-row th,
.bevly-window-row td {
    padding-top: 10px;
    padding-bottom: 10px;
}

#bevly-window-spinner {
    display: inline-block;
    margin-left: 8px;
    font-size: 18px;
    animation: bevly-spin 1s linear infinite;
}

@keyframes bevly-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Tip row ───────────────────────────────────────────────────────────────── */
.bevly-tip-row th,
.bevly-tip-row td {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* ── ZIP notice ────────────────────────────────────────────────────────────── */
#bevly-zip-notice {
    margin-top: 8px;
    font-size: 13px;
}

/* ── Wait time bar (cart + checkout) ───────────────────────────────────────── */
.bevly-waittime-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: #f0f6ff;
    border-left: 4px solid #2563eb;
    border-radius: 0 6px 6px 0;
    padding: 10px 16px;
    margin: 0 0 20px;
    font-size: 14px;
}

.bevly-waittime-sep {
    color: #cbd5e1;
    font-size: 18px;
}

/* ── Wait time display (shortcode) ─────────────────────────────────────────── */
.bevly-waittime {
    display: inline-block;
    padding: 8px 14px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 14px;
}

.bevly-waittime-pickup {
    color: #d97706;
    font-weight: 700;
}

.bevly-waittime-delivery {
    color: #dc2626;
    font-weight: 700;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .bevly-order-type-buttons {
        flex-direction: column;
        align-items: center;
    }

    .bevly-type-btn {
        width: 100%;
        max-width: 280px;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 12px 20px;
    }
}

/* ── Minimum order blocking notice (checkout) ──────────────────────────────── */
.bevly-min-order-block {
    background: #fff7ed;
    border: 2px solid #f97316;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 0 0 20px;
    text-align: center;
}

.bevly-min-order-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 10px;
}

.bevly-min-order-message {
    font-size: 15px;
    color: #1a2e4a;
    margin: 0 0 16px;
    line-height: 1.5;
}

.bevly-continue-shopping.button {
    display: inline-block;
    background: #f97316;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease;
    cursor: pointer;
}

.bevly-continue-shopping.button:hover {
    background: #ea6c0a;
    color: #ffffff !important;
}

/* ── Minimum order cart notice ──────────────────────────────────────────────── */
.bevly-cart-min-notice {
    border-radius: 0 6px 6px 0;
    padding: 10px 16px;
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
}

.bevly-cart-min-warning {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    color: #7c2d12;
    font-weight: 600;
}

.bevly-cart-min-info {
    background: #f0f6ff;
    border-left: 4px solid #2563eb;
    color: #1e3a8a;
}

/* ── Hide payment section when min not met ──────────────────────────────────── */
/* Belt-and-suspenders: JS also hides these, but CSS ensures no flash. */
form.woocommerce-checkout.bevly-min-blocked #payment,
form.woocommerce-checkout.bevly-min-blocked #place_order {
    display: none !important;
}
