/* Let Me Discover: every message on the tour site in one style (loaded on all tour-site pages by layouts/website/client-app).
   Old pages (agency users, billing, ...) don't load lmd-v2.css, so the colors are written out here.
   Rules (user, 2026-10-24): only the site's blues and white, white text, no red / green, no icons, calm.
   - .lmd-toasts / .lmd-toast: message cards at the top centre (replaces bootstrap-notify's pink popups)
   - .lmd-note: the same card inside a page (website/alert on the tour site)
   - .lmd-field-msg + .lmd-is-invalid: a field the browser or the phone check refused (replaces the browser bubble)
   - .swal2-*: the "Are you sure?" dialogs */
:root {
    --lmd-msg-panel: linear-gradient(160deg, #4d9ee0 0%, #3a8bd2 50%, #2a74ba 100%);
    --lmd-msg-btn: linear-gradient(90deg, #7fc4f0 0%, #55a6e0 55%, #3486cc 100%);
    --lmd-msg-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --lmd-msg-head: "Sora", "DM Sans", system-ui, sans-serif;
}

/* ───── cards at the top centre ───── */
.lmd-toasts {
    position: fixed; z-index: 2000; top: 90px; left: 50%; transform: translateX(-50%);   /* under the nav bar */
    display: flex; flex-direction: column; gap: 8px; width: min(520px, calc(100% - 32px)); pointer-events: none;
}
.lmd-toast, .lmd-note {
    display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px 13px 18px; border-radius: 16px;
    font: 500 15px/1.45 var(--lmd-msg-font); color: #fff; text-align: left;
    background: var(--lmd-msg-panel); border: 1px solid rgba(255, 255, 255, .7);
}
.lmd-toast { pointer-events: auto; box-shadow: 0 24px 50px -20px rgba(15, 45, 90, .6); animation: lmd-msg-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.lmd-toast.is-out { animation: lmd-msg-out .35s ease forwards; }
/* a small white dot: filled when all went well, a ring when something needs a look */
.lmd-toast::before, .lmd-note::before {
    content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: #fff;
}
.lmd-toast.is-bad::before, .lmd-note.is-bad::before { background: transparent; box-shadow: inset 0 0 0 1.5px #fff; }
.lmd-toast__text, .lmd-note__text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lmd-toast__text a, .lmd-note__text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lmd-toast__x {
    flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; margin: -3px -2px 0 0; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .8); cursor: pointer; transition: background .2s ease, color .2s ease;
}
.lmd-toast__x:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.lmd-toast__x svg { width: 14px; height: 14px; }
@keyframes lmd-msg-in { from { opacity: 0; transform: translateY(-12px); } }
@keyframes lmd-msg-out { to { opacity: 0; transform: translateY(-8px); } }

/* in a page */
.lmd-note { margin: 0 0 14px; }
.lmd-note + .lmd-note { margin-top: -6px; }

/* ───── a refused field: a ring and a small line under it ───── */
.lmd-is-invalid, input.error {
    border-color: #fff !important; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3a8bd2 !important;
}
.lmd-field-msg {
    display: inline-block; margin-top: 7px; padding: 3px 11px; border-radius: 999px;
    font: 600 12.5px/1.4 var(--lmd-msg-font); color: #fff; background: #2a74ba; border: 1px solid rgba(255, 255, 255, .6); white-space: nowrap;
    animation: lmd-msg-in .35s cubic-bezier(.2, .7, .2, 1) both;
}
.lmd-ac__f > .lmd-field-msg, .lmd-au__field > .lmd-field-msg { display: table; margin-bottom: 0; }   /* not the field-label style */
.lmd-field-msg.hide, #valid-msg { display: none !important; }

/* ───── "Are you sure?" dialogs (SweetAlert2) ───── */
.swal2-container.swal2-backdrop-show { background: rgba(15, 45, 90, .3) !important; }   /* a light tint, no blur */
.swal2-popup {
    padding: 26px 24px 22px !important; border-radius: 22px !important; color: #fff !important; font-family: var(--lmd-msg-font) !important;
    background: var(--lmd-msg-panel) !important; border: 1px solid rgba(255, 255, 255, .7) !important;
    box-shadow: 0 30px 60px -24px rgba(15, 45, 90, .6) !important;
}
.swal2-icon { display: none !important; }
.swal2-title { padding: 0 !important; font: 600 20px/1.35 var(--lmd-msg-head) !important; color: #fff !important; }
.swal2-html-container { margin: 10px 0 0 !important; font-size: 15px !important; color: rgba(255, 255, 255, .86) !important; }
.swal2-actions { flex-direction: row-reverse; gap: 10px; margin-top: 22px !important; }
.swal2-styled { margin: 0 !important; height: 44px; padding: 0 22px !important; border-radius: 999px !important; font: 700 14px var(--lmd-msg-font) !important; color: #fff !important; box-shadow: none !important; }
.swal2-styled.swal2-confirm { background: var(--lmd-msg-btn) !important; border: 1px solid rgba(255, 255, 255, .7) !important; }
.swal2-styled.swal2-confirm:hover { background: #1d5a96 !important; }
.swal2-styled.swal2-cancel, .swal2-styled.swal2-deny { background: transparent !important; border: 1px solid rgba(255, 255, 255, .6) !important; }
.swal2-styled.swal2-cancel:hover, .swal2-styled.swal2-deny:hover { background: rgba(255, 255, 255, .14) !important; }
.swal2-styled:focus-visible { outline: 2px solid #fff !important; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .lmd-toast, .lmd-toast.is-out, .lmd-field-msg { animation: none; }
}
