/* ═══════════════════════════════════════════════════════
   WAP Booking Pro — Frontend CSS v1.0
   ALL colors use CSS variables injected by PHP from admin settings
   ═══════════════════════════════════════════════════════ */

/* PHP injects :root overrides via wp_add_inline_style — these are FALLBACKS only */
:root {
    --mbp-primary:       #c0a35f;
    --mbp-primary-dark:  #a8893d;
    --mbp-primary-light: rgba(192,163,95,0.15);
    --mbp-form-border:   rgba(255,255,255,0.3);
    --mbp-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mbp-dark-bg:   rgba(13,17,23,0.82);
    --mbp-card-bg:   rgba(22,27,34,0.92);
    --mbp-sep-color: rgba(255,255,255,0.1);
    --mbp-text:      #e6edf3;
    --mbp-muted:     rgba(255,255,255,0.45);
}

/* ════════════════════════════════════════════════════
   1. HERO FORM
   ════════════════════════════════════════════════════ */
#mbp-hero-form {
    width: 100%;
    font-family: var(--mbp-font);
    box-sizing: border-box;
}

/* ── Tabs ─────────────────────────────────────────── */
.mbp-hero-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 0;
}
.mbp-hero-tab {
    border: 2px solid rgba(255,255,255,0.35);
    background: transparent;
    color: rgba(255,255,255,0.65);
    padding: 11px 36px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    font-family: var(--mbp-font);
    line-height: 1;
    letter-spacing: .3px;
    outline: none;
}
.mbp-hero-tab:first-child { border-radius: 50px 0 0 50px; }
.mbp-hero-tab:last-child  { border-radius: 0 50px 50px 0; border-left: none; }
.mbp-hero-tab.active {
    background: var(--mbp-primary) !important;
    border-color: var(--mbp-primary) !important;
    color: #fff !important;
}
.mbp-hero-tab:not(.active):hover {
    background: var(--mbp-primary-light);
    color: #fff;
    border-color: var(--mbp-primary);
}

/* ── Bar ──────────────────────────────────────────── */
.mbp-hero-bar {
    display: flex;
    align-items: stretch;
    background: rgba(10,14,22,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid var(--mbp-form-border);
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible; /* CRITICAL: must be visible for autocomplete dropdown */
    position: relative;
    z-index: 10;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    padding: 6px;
    gap: 4px;
}
.mbp-hero-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 16px;
    position: relative;
    min-width: 0;
    box-sizing: border-box;
    z-index: 10;
    background: rgba(255,255,255,0.10);
    border: 1.5px solid rgba(192,163,95,0.45);
    border-radius: 10px;
    transition: background .18s, border-color .18s;
    cursor: pointer;
}
.mbp-hero-field:hover,
.mbp-hero-field:focus-within {
    background: rgba(255,255,255,0.16);
    border-color: var(--mbp-primary);
    box-shadow: 0 0 0 2px rgba(192,163,95,0.2);
}
.mbp-hf-grow  { flex: 1 1 0; }
.mbp-hf-fixed { flex: 0 0 150px; }
.mbp-hf-dur   { flex: 0 0 200px; }

.mbp-hero-field label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--mbp-primary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
    white-space: nowrap;
    opacity: 1;
}
.mbp-hero-field input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    padding: 0 !important;
    box-sizing: border-box;
    font-family: var(--mbp-font);
    caret-color: var(--mbp-primary);
}
.mbp-hero-field input::placeholder { color: rgba(255,255,255,0.55); }
.mbp-hero-field input[type=date]::-webkit-calendar-picker-indicator,
.mbp-hero-field input[type=time]::-webkit-calendar-picker-indicator {
    filter: invert(0.7); cursor: pointer;
}

/* Duration select — full custom styling so dropdown text is visible */
.mbp-hero-field select {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 500;
    width: 100%;
    padding: 0 !important;
    box-sizing: border-box;
    font-family: var(--mbp-font);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
/* Option items must have explicit dark bg so they're readable in browser native dropdown */
.mbp-hero-field select option {
    background-color: #1a2035 !important;
    color: #ffffff !important;
    padding: 8px 12px;
    font-size: 14px;
}

.mbp-hero-sep {
    width: 1px;
    background: rgba(255,255,255,0.08);
    align-self: center;
    height: 60%;
    flex-shrink: 0;
    margin: 0 2px;
}
.mbp-hero-cta {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.mbp-hero-cta button {
    background: var(--mbp-primary) !important;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 13px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s, transform .1s;
    font-family: var(--mbp-font);
    letter-spacing: .3px;
    line-height: 1;
    outline: none;
}
.mbp-hero-cta button:hover  { background: var(--mbp-primary-dark) !important; }
.mbp-hero-cta button:active { transform: scale(.97); }

/* ── Visibility helpers ─────────────────────────── */
.mbp-hidden { display: none !important; }
.mbp-hero-panel { display: block; width: 100%; }

/* Google autocomplete dropdown styling lives in wp_head injection (mbp_inject_css_vars)
   to guarantee it loads last and isn't overridden by theme/Elementor CSS. */

/* ════════════════════════════════════════════════════
   2. RESULT INFO / DISTANCE LABEL
   ════════════════════════════════════════════════════ */
.mbp-result-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, rgba(192,163,95,0.18), rgba(192,163,95,0.08));
    border: 1.5px solid var(--mbp-primary);
    border-radius: 50px;
    padding: 10px 24px;
    margin: 20px 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: .3px;
    box-sizing: border-box;
}
.mbp-result-info strong {
    color: var(--mbp-primary);
    font-size: 16px;
    font-weight: 800;
}

/* ════════════════════════════════════════════════════
   3. VEHICLE CARDS
   ════════════════════════════════════════════════════ */
.mbp-cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}
.mbp-car-card {
    background: var(--mbp-card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    backdrop-filter: blur(8px);
}
.mbp-car-card:hover {
    border-color: var(--mbp-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.mbp-car-img {
    width: 100%; aspect-ratio: 16/9;
    object-fit: cover; display: block; background: #0d1117;
}
.mbp-car-img-ph {
    width: 100%; aspect-ratio: 16/9;
    background: linear-gradient(135deg,#1a1f2e,#0d1117);
    display: flex; align-items: center; justify-content: center; font-size: 48px;
}
.mbp-car-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mbp-car-name { font-size: 16px; font-weight: 700; color: var(--mbp-primary) !important; text-align: center; }
.mbp-car-specs {
    display: flex; justify-content: center; gap: 14px;
    font-size: 12px; color: rgba(255,255,255,0.45);
}
.mbp-car-price { font-size: 26px; font-weight: 800; color: #fff; text-align: center; margin: 4px 0 2px; }
.mbp-car-price .mbp-hst { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.5); }
.mbp-car-km { font-size: 12px; color: rgba(255,255,255,0.4); text-align: center; }
.mbp-car-feature {
    font-size: 12px;
    font-weight: 600;
    color: var(--mbp-primary);
    text-align: center;
    background: rgba(192,163,95,0.12);
    border: 1px solid rgba(192,163,95,0.35);
    border-radius: 20px;
    padding: 4px 12px;
    margin: 2px auto 4px;
    display: inline-block;
    max-width: 90%;
}
.mbp-car-btn {
    display: block;
    background: var(--mbp-primary) !important;
    color: #fff !important;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px; font-weight: 700;
    text-decoration: none !important;
    transition: background .18s;
    margin-top: 6px;
    cursor: pointer; border: none;
    font-family: var(--mbp-font);
    box-sizing: border-box; width: 100%;
}
.mbp-car-btn:hover { background: var(--mbp-primary-dark) !important; }

/* Loading & error */
.mbp-loading {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 28px;
    color: rgba(255,255,255,0.6); font-size: 14px;
}
.mbp-loading::before {
    content: ''; width: 24px; height: 24px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: var(--mbp-primary);
    border-radius: 50%;
    animation: mbpSpin .7s linear infinite; flex-shrink: 0;
}
@keyframes mbpSpin { to { transform: rotate(360deg); } }
.mbp-error-msg {
    text-align: center; color: #fca5a5; font-size: 14px;
    padding: 16px; background: rgba(239,68,68,.1); border-radius: 8px; margin-top: 16px;
}

/* ════════════════════════════════════════════════════
   4. RESERVATION FORM
   ════════════════════════════════════════════════════ */
.mbp-res-wrap {
    max-width: 860px; margin: 0 auto;
    padding: 0 16px 48px; font-family: var(--mbp-font);
}
.mbp-res-title {
    text-align: center; font-size: 26px; font-weight: 800;
    margin: 0 0 24px; color: inherit;
    text-transform: uppercase; letter-spacing: 0.5px;
}
/* Full-width tabs */
.mbp-res-tabs {
    display: flex; gap: 0; margin-bottom: 28px;
    border-radius: 10px; overflow: hidden;
    border: 2px solid var(--mbp-primary) !important;
}
.mbp-res-tab {
    flex: 1; background: transparent; border: none;
    color: var(--mbp-primary) !important;
    padding: 14px 20px; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all .18s;
    font-family: var(--mbp-font); letter-spacing: .3px; text-align: center; outline: none;
}
.mbp-res-tab.active { background: var(--mbp-primary) !important; color: #fff !important; }
.mbp-res-tab:not(.active):hover { background: var(--mbp-primary-light); }

.mbp-section-hdr {
    font-size: 11px; font-weight: 700; color: var(--mbp-primary) !important;
    text-transform: uppercase; letter-spacing: 1.2px;
    border-bottom: 1.5px solid #e5e7eb; padding-bottom: 6px; margin: 26px 0 16px;
}
.mbp-frow { display: flex; gap: 16px; margin-bottom: 16px; }
.mbp-fcol { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mbp-fcol label {
    font-size: 12px; font-weight: 700; color: #374151; margin-bottom: 6px;
}
.mbp-fcol label em { color: #ef4444; font-style: normal; margin-left: 2px; }
.mbp-fcol input, .mbp-fcol select, .mbp-fcol textarea {
    padding: 10px 13px; border: 1.5px solid #d1d5db; border-radius: 8px;
    font-size: 14px; background: #fff; color: #111;
    width: 100%; box-sizing: border-box; font-family: var(--mbp-font);
    outline: none; transition: border-color .18s, box-shadow .18s;
    -webkit-appearance: none; appearance: none;
}
.mbp-fcol input:focus, .mbp-fcol select:focus, .mbp-fcol textarea:focus {
    border-color: var(--mbp-primary) !important;
    box-shadow: 0 0 0 3px var(--mbp-primary-light);
}
.mbp-fcol input[readonly] { background: #f9fafb; color: #6b7280; cursor: default; }
.mbp-fcol select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}

/* Map */
.mbp-map-box {
    width: 100%; height: 280px; border-radius: 10px;
    border: 1.5px solid #e5e7eb; margin-bottom: 16px;
    overflow: hidden; display: none;
}
.mbp-map-box.mbp-map-visible { display: block; }

/* Return toggle */
.mbp-return-toggle {
    display: flex; align-items: center; gap: 10px;
    margin: 4px 0 16px; font-size: 14px; color: #374151;
    cursor: pointer; font-weight: 600; user-select: none;
}
.mbp-return-toggle input[type=checkbox] {
    width: 18px; height: 18px;
    accent-color: var(--mbp-primary); cursor: pointer; flex-shrink: 0;
}

/* Submit */
.mbp-submit-btn {
    display: block; width: 100%;
    background: var(--mbp-primary) !important; color: #fff !important;
    border: none; border-radius: 10px; padding: 16px 24px;
    font-size: 16px; font-weight: 700; cursor: pointer; text-align: center;
    transition: background .18s, transform .1s; margin-top: 12px;
    font-family: var(--mbp-font); letter-spacing: .3px;
}
.mbp-submit-btn:hover    { background: var(--mbp-primary-dark) !important; }
.mbp-submit-btn:active   { transform: scale(.99); }
.mbp-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ════════════════════════════════════════════════════
   5. SUMMARY BOX
   ════════════════════════════════════════════════════ */
.mbp-summary-box {
    border: 1.5px solid #e5e7eb; border-radius: 14px;
    background: #fff; padding: 24px; font-family: var(--mbp-font);
}
.mbp-summary-box h3 {
    margin: 0 0 18px; font-size: 18px; font-weight: 700;
    border-bottom: 2px solid #f3f4f6; padding-bottom: 12px; color: #111;
}
.mbp-summary-box h4 {
    margin: 18px 0 8px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--mbp-primary) !important;
}
.mbp-srow {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 8px 0; font-size: 13px; border-bottom: 1px solid #f9fafb; gap: 12px;
}
.mbp-srow .lbl { color: #6b7280; flex-shrink: 0; }
.mbp-srow .val { font-weight: 600; color: #111; text-align: right; word-break: break-word; }
.mbp-srow.fare .val { color: var(--mbp-primary) !important; font-size: 16px; }
.mbp-confirm-btn {
    display: block; width: 100%;
    background: var(--mbp-primary) !important; color: #fff !important;
    text-align: center; padding: 14px 20px; border-radius: 10px;
    font-size: 15px; font-weight: 700; text-decoration: none !important;
    margin-top: 22px; transition: background .18s; box-sizing: border-box;
    font-family: var(--mbp-font);
}
.mbp-confirm-btn:hover { background: var(--mbp-primary-dark) !important; }
.mbp-pdf-btn {
    display: block; width: 100%; background: transparent;
    color: var(--mbp-primary) !important; text-align: center;
    padding: 11px 20px; border-radius: 10px; border: 2px solid var(--mbp-primary) !important;
    font-size: 14px; font-weight: 600; text-decoration: none !important;
    margin-top: 10px; transition: all .18s; box-sizing: border-box; font-family: var(--mbp-font);
}
.mbp-pdf-btn:hover { background: var(--mbp-primary) !important; color: #fff !important; }

/* ════════════════════════════════════════════════════
   6. CONFIRMATION PAGE
   ════════════════════════════════════════════════════ */
.mbp-confirmed-wrap {
    display: flex; justify-content: center; align-items: center;
    min-height: 50vh; padding: 40px 20px; font-family: var(--mbp-font);
}
.mbp-confirmed-card {
    max-width: 560px; width: 100%; border-radius: 18px; padding: 48px 40px;
    text-align: center; box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    border: 2px solid var(--mbp-primary) !important;
}
.mbp-confirmed-icon { font-size: 56px; margin-bottom: 16px; display: block; }
.mbp-confirmed-title { font-weight: 800; line-height: 1.2; margin: 0 0 16px; font-family: var(--mbp-font); }
.mbp-confirmed-msg { font-size: 16px; opacity: .75; line-height: 1.7; margin: 0 0 24px; }
.mbp-confirmed-details {
    display: flex; flex-direction: column; gap: 6px;
    background: var(--mbp-primary-light); border-radius: 10px;
    padding: 14px 18px; margin-bottom: 28px; font-size: 14px; text-align: left;
}
.mbp-confirmed-details span { display: block; }
.mbp-confirmed-home {
    display: inline-block; background: var(--mbp-primary) !important;
    color: #fff !important; padding: 13px 36px; border-radius: 50px;
    font-size: 14px; font-weight: 700; text-decoration: none !important; transition: background .18s;
}
.mbp-confirmed-home:hover { background: var(--mbp-primary-dark) !important; }

/* ════════════════════════════════════════════════════
   7. NOTICES
   ════════════════════════════════════════════════════ */
.mbp-notice { padding: 14px 18px; border-radius: 10px; font-size: 14px; margin: 12px 0; line-height: 1.6; }
.mbp-notice-success { background: #f0fdf4; border: 1.5px solid #86efac; color: #166534; }
.mbp-notice-warning { background: #fefce8; border: 1.5px solid #fde68a; color: #92400e; }
.mbp-notice-error   { background: #fef2f2; border: 1.5px solid #fca5a5; color: #991b1b; }

/* ════════════════════════════════════════════════════
   8. RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .mbp-hero-bar    { flex-direction: column; }
    .mbp-hero-sep    { width: 100%; height: 1px; }
    .mbp-hf-fixed, .mbp-hf-dur { flex: 1; }
    .mbp-hero-cta    { padding: 12px 14px; }
    .mbp-hero-cta button { width: 100%; padding: 14px; }
    .mbp-cars-grid   { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
    .mbp-cars-grid { grid-template-columns: 1fr; }
    .mbp-frow      { flex-direction: column; gap: 12px; }
    .mbp-res-tabs  { font-size: 13px; }
    .mbp-hero-tab  { padding: 10px 22px; font-size: 13px; }
    .mbp-confirmed-card { padding: 32px 24px; }
}

/* ════════════════════════════════════════════════════
   SUMMARY ACTION BUTTONS (inline)
   ════════════════════════════════════════════════════ */
.mbp-summary-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.mbp-summary-actions .mbp-confirm-btn,
.mbp-summary-actions .mbp-pdf-btn,
.mbp-summary-actions .mbp-back-btn {
    flex: 1;
    margin-top: 0 !important;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mbp-back-btn {
    background: #f3f4f6;
    color: #374151 !important;
    text-align: center;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1.5px solid #d1d5db;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all .18s;
    box-sizing: border-box;
    font-family: var(--mbp-font);
}
.mbp-back-btn:hover { background: #e5e7eb; border-color: #9ca3af; }
@media (max-width: 520px) {
    .mbp-summary-actions { flex-direction: column; }
}

/* ════════════════════════════════════════════════════
   CONFIRMATION PAGE — redesigned
   ════════════════════════════════════════════════════ */
.mbp-confirmed-wrap {
    display: flex; justify-content: center; align-items: center;
    min-height: 60vh; padding: 40px 20px; font-family: var(--mbp-font);
}
.mbp-confirmed-card {
    max-width: 600px; width: 100%; border-radius: 20px; padding: 56px 44px;
    text-align: center; box-shadow: 0 12px 50px rgba(0,0,0,0.12);
    border: 1px solid #eee; position: relative;
}
.mbp-confirmed-icon-circle {
    width: 84px; height: 84px; border-radius: 50%;
    background: linear-gradient(135deg, #34d399, #10b981);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 28px; box-shadow: 0 8px 24px rgba(16,185,129,0.35);
    animation: mbpPop .4s ease;
}
@keyframes mbpPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.12); }
    100% { transform: scale(1); }
}
.mbp-confirmed-title {
    font-weight: 800; line-height: 1.15; margin: 0 0 16px;
    font-family: var(--mbp-font); letter-spacing: -0.5px;
}
.mbp-confirmed-msg {
    font-size: 16px; opacity: .7; line-height: 1.7;
    margin: 0 auto 28px; max-width: 460px;
}
.mbp-confirmed-details {
    display: flex; flex-direction: column; gap: 8px;
    background: rgba(0,0,0,0.03); border-radius: 12px;
    padding: 18px 22px; margin-bottom: 32px; font-size: 14px; text-align: center;
}
.mbp-confirmed-details span { display: block; opacity: .85; }
.mbp-confirmed-actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.mbp-confirmed-home, .mbp-confirmed-another {
    display: inline-block; padding: 14px 32px; border-radius: 50px;
    font-size: 14px; font-weight: 700; text-decoration: none !important;
    transition: all .18s; cursor: pointer; min-width: 160px; text-align: center;
}
.mbp-confirmed-home {
    background: var(--mbp-primary); color: #fff !important;
}
.mbp-confirmed-home:hover { background: var(--mbp-primary-dark); transform: translateY(-2px); }
.mbp-confirmed-another {
    background: transparent; color: var(--mbp-primary) !important;
    border: 2px solid var(--mbp-primary);
}
.mbp-confirmed-another:hover { background: var(--mbp-primary); color: #fff !important; transform: translateY(-2px); }
@media (max-width: 520px) {
    .mbp-confirmed-actions { flex-direction: column; }
    .mbp-confirmed-card { padding: 40px 24px; }
}

/* ════════════════════════════════════════════════════
   CUSTOM DATE & TIME PICKER
   ════════════════════════════════════════════════════ */
.mbp-pick-pop {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 44px rgba(0,0,0,0.22);
    border: 1px solid #e5e7eb;
    padding: 16px;
    z-index: 2147483647;
    font-family: var(--mbp-font);
    width: 310px;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    animation: mbpPickIn .15s ease;
}
@keyframes mbpPickIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* Date picker */
.mbp-pick-head {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.mbp-pick-title { font-weight: 800; font-size: 15px; color: #111827; }
.mbp-pick-nav {
    width: 34px; height: 34px; border: 1px solid #e5e7eb; background: #fff; border-radius: 8px;
    font-size: 18px; cursor: pointer; color: #374151; line-height: 1; transition: all .15s;
    flex-shrink: 0;
}
.mbp-pick-nav:hover { background: var(--mbp-primary); color: #fff; border-color: var(--mbp-primary); }
.mbp-pick-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    width: 100%;
    box-sizing: border-box;
}
.mbp-pick-dow { text-align: center; font-size: 11px; font-weight: 700; color: #6b7280; padding: 6px 0; }
.mbp-pick-empty { aspect-ratio: 1; }
.mbp-pick-day {
    aspect-ratio: 1;
    width: 100%;
    border: none; background: transparent; border-radius: 8px;
    font-size: 13px; cursor: pointer; color: #1f2937; transition: all .12s; font-weight: 600;
    box-sizing: border-box; padding: 0;
    display: flex; align-items: center; justify-content: center;
}
.mbp-pick-day:hover:not(.dis) {
    background: var(--mbp-primary);
    color: #ffffff;
}
.mbp-pick-day.sel { background: var(--mbp-primary) !important; color: #fff !important; font-weight: 800; }
.mbp-pick-day.today:not(.sel) { color: var(--mbp-primary); font-weight: 800; box-shadow: inset 0 0 0 2px var(--mbp-primary); }
.mbp-pick-day.dis { color: #cbd5e1; cursor: not-allowed; }

/* Time picker */
.mbp-pick-time { width: 280px; }
.mbp-pick-time-title { font-weight: 700; font-size: 15px; text-align: center; margin-bottom: 12px; color: #1a1a2e; }
.mbp-time-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #9ca3af; margin: 10px 0 6px; letter-spacing: .5px; }
.mbp-time-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.mbp-time-grid.min { grid-template-columns: repeat(6, 1fr); }
.mbp-time-cell {
    padding: 8px 0; border: 1px solid #e5e7eb; background: #fff; border-radius: 8px;
    font-size: 13px; cursor: pointer; color: #374151; transition: all .12s; font-weight: 600;
}
.mbp-time-cell:hover { border-color: var(--mbp-primary); background: var(--mbp-primary-light); }
.mbp-time-cell.sel { background: var(--mbp-primary); color: #fff; border-color: var(--mbp-primary); }
.mbp-ampm { display: flex; gap: 8px; margin-top: 14px; }
.mbp-ampm-btn {
    flex: 1; padding: 10px; border: 1.5px solid #e5e7eb; background: #fff; border-radius: 10px;
    font-size: 14px; font-weight: 700; cursor: pointer; color: #374151; transition: all .15s;
}
.mbp-ampm-btn.sel { background: var(--mbp-primary); color: #fff; border-color: var(--mbp-primary); }
.mbp-time-preview {
    text-align: center; font-size: 22px; font-weight: 800; color: var(--mbp-primary);
    margin: 16px 0 12px; letter-spacing: 1px;
}
.mbp-time-ok {
    width: 100%; padding: 13px; background: var(--mbp-primary); color: #fff; border: none;
    border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.mbp-time-ok:hover { background: var(--mbp-primary-dark); }

/* ════════════════════════════════════════════════════
   PICKER — MOBILE MODAL (prevents fluctuation on phones)
   ════════════════════════════════════════════════════ */
.mbp-pick-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2147483646;
    animation: mbpFadeIn .15s ease;
}
@keyframes mbpFadeIn { from { opacity: 0; } to { opacity: 1; } }
.mbp-pick-pop.mbp-pick-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 320px !important;
    max-width: calc(100vw - 32px) !important;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2147483647 !important;
}
@media (max-width: 640px) {
    .mbp-pick-day { font-size: 15px; }
    .mbp-time-cell { padding: 11px 0; font-size: 15px; }
    .mbp-ampm-btn { padding: 13px; font-size: 16px; }
    .mbp-time-ok { padding: 15px; font-size: 16px; }
}
