/* ── Overlay & Popup ── */
#mrzee-lp-overlay {
    position: fixed; inset: 0; z-index: 999999;
    background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center;
}
#mrzee-lp-popup {
    width: 92%; max-width: 420px; border-radius: 18px; padding: 30px 36px 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15); text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    animation: mrzee-lp-fadeIn 0.3s ease;
    max-height: 92vh; overflow-y: auto;
}
@keyframes mrzee-lp-fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
#mrzee-lp-close-btn {
    position: absolute; top: 12px; right: 14px;
    background: none; border: none; font-size: 22px; line-height: 1;
    color: #999; cursor: pointer; padding: 0; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: all 0.2s;
}
#mrzee-lp-close-btn:hover { color: #333; background: #f0f0f0; }
.mrzee-lp-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
.mrzee-lp-logo img {
    max-height: 50px;
    display: block;
}
.mrzee-lp-logo h2 {
    margin: 0 0 14px;
    font-size: 26px;
    line-height: 1.1;
}
.mrzee-lp-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #222;
}

/* ── Order type buttons ── */
.mrzee-lp-order-types { display: flex; justify-content: center; gap: 14px; margin-bottom: 14px; }
.mrzee-lp-type-btn {
    min-width: 130px; padding: 8px 26px; border-radius: 999px; border: 1.5px solid #ddd;
    font-size: 12px; font-weight: 700; cursor: pointer; background: #fff; color: #333;
    transition: all 0.2s;
}
.mrzee-lp-type-btn.active { border-color: transparent; }
.mrzee-lp-type-btn:not(.active):hover { border-color: #999; background: #fafafa; color: #111; }

/* ── Subtitle + Use Location ── */
.mrzee-lp-subtitle { font-size: 13px; font-weight: 600; color: #333; margin: 0 0 12px; }
#mrzee-lp-use-location {
    display: flex; align-items: center; justify-content: center;
    width: 100%; max-width: 100%; padding: 8px 18px; margin: 0 auto 16px;
    background: #fff; border: 1.5px solid #ddd; border-radius: 999px;
    font-size: 14px; font-weight: 600; color: #333; cursor: pointer;
    transition: all 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
#mrzee-lp-use-location svg { width: 16px; height: 16px; margin-right: 8px; }
#mrzee-lp-use-location:hover { border-color: #ccc; background: #fafafa; color: #111; }
#mrzee-lp-use-location.loading { opacity: 0.6; cursor: wait; }
#mrzee-lp-geo-status {
    text-align: center; font-size: 12px; margin: 0 0 12px; padding: 6px 8px;
    border-radius: 4px;
}
#mrzee-lp-geo-status.success { background: #e8f5e9; color: #2e7d32; }
#mrzee-lp-geo-status.error { background: #fce4ec; color: #c62828; }
#mrzee-lp-geo-status.loading { background: #fff8e1; color: #f57f17; }

/* ── Form fields ── */
.mrzee-lp-field { text-align: left; margin-bottom: 16px; }
.mrzee-lp-field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: #333; }
.mrzee-lp-field select {
    width: 100%; min-height: 36px; padding: 8px 14px; border: 1.5px solid #ddd; border-radius: 12px;
    font-size: 14px; color: #333; background: #fff; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
    transition: all 0.2s;
}
.mrzee-lp-field select:hover { border-color: #ccc; }
.mrzee-lp-field select:focus { outline: none; border-color: #999; }
.mrzee-lp-field select:disabled { background-color: #f5f5f5; color: #aaa; }

/* ── Branch info card ── */
.mrzee-lp-branch-card {
    display: flex; flex-direction: column; gap: 6px;
    background: #f8f9fa; border: 1px solid #e2e2e2; border-radius: 10px;
    padding: 12px 14px; text-align: left; margin-bottom: 12px;
}
.mrzee-lp-branch-card strong { font-size: 13px; color: #222; font-weight: 600; }
.mrzee-lp-branch-card span { font-size: 12px; color: #666; }

/* ── Select button ── */
#mrzee-lp-select-btn {
    width: 100%; padding: 11px; border: none; border-radius: 6px;
    font-size: 14px; font-weight: 700; cursor: pointer; margin-top: 4px;
    transition: opacity 0.2s;
}
#mrzee-lp-select-btn:disabled { opacity: 0.5; cursor: not-allowed; }
#mrzee-lp-select-btn:not(:disabled):hover { opacity: 0.85; }

/* ── Change Location shortcode link ── */
.mrzee-lp-change-loc {
    display: inline-flex; align-items: center;
    font-size: 13px; font-weight: 500; color: #0073aa; cursor: pointer;
    text-decoration: underline; transition: color 0.2s;
}
.mrzee-lp-change-loc:hover { color: #005177; }
.mrzee-lp-change-loc svg { flex-shrink: 0; }
.mrzee-lp-change-loc-btn {
    text-decoration: none; padding: 5px 14px;
    background: #f5f5f5; border: 1px solid #ddd; border-radius: 20px;
    color: #333; font-weight: 600;
}
.mrzee-lp-change-loc-btn:hover { background: #eee; border-color: #ccc; color: #111; }

/* ── WooCommerce checkout summary card ── */
#mrzee-lp-checkout-summary {
    display: flex; flex-direction: column; gap: 4px;
    background: #f0f6fc; border: 1px solid #c3ddf6; border-radius: 8px;
    padding: 14px 18px; margin-bottom: 20px;
}
#mrzee-lp-checkout-summary strong { font-size: 15px; color: #0073aa; }
#mrzee-lp-checkout-summary span { font-size: 13px; color: #444; }
#mrzee-lp-checkout-change {
    display: inline-block; margin-top: 6px; font-size: 13px;
    color: #0073aa; cursor: pointer; text-decoration: underline;
}
