/* =====================================================
   ExFood KTV Booking Popup Fix — popup.css
   Standalone styles; NOT scoped to .ex-fdlist so they
   work on list-layout pages (e.g. Encore KTV advance order)
   ===================================================== */

/* ── Overlay (full-screen dark backdrop) ── */
.exfood-ktv-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    animation: exktvFadeIn 0.3s ease;
}

.exfood-ktv-overlay.ex-hidden {
    display: none !important;
}

@keyframes exktvFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Popup card ── */
.exfood-ktv-popup {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 420px;
    margin: 16px;
    overflow: hidden;
    animation: exktvSlideUp 0.3s ease;
}

@keyframes exktvSlideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Inner padding ── */
.exfood-ktv-popup-inner {
    padding: 32px 28px 28px;
}

.exfood-ktv-popup-inner h2 {
    margin: 0 0 22px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

/* ── Fields ── */
.exfood-ktv-field {
    margin-bottom: 16px;
}

.exfood-ktv-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
}

.exfood-ktv-field input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.exfood-ktv-field input[type="text"]:focus {
    outline: none;
    border-color: #e74c3c;
}

/* ── Submit button ── */
.exfood-ktv-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.exfood-ktv-btn:hover {
    background: #c0392b;
}

.exfood-ktv-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* ── Message area ── */
.exfood-ktv-msg {
    margin-top: 12px;
    font-size: 0.88rem;
    min-height: 1.2em;
    text-align: center;
}

.exfood-ktv-msg.is-success { color: #27ae60; }
.exfood-ktv-msg.is-error   { color: #e74c3c; }
.exfood-ktv-msg.is-loading { color: #888;    }
