/* Moved out of resources/views/storefront/layout/app.blade.php (inline block) so browsers cache it. Edit here. */
.ei-overlay { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; padding: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ei-card { position: relative; width: 100%; max-width: 420px; overflow: hidden; border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -12px 50px -10px rgba(15, 23, 42, .45); animation: ei-sheet .45s cubic-bezier(.22, 1, .36, 1) both; padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 640px) {
    .ei-overlay { align-items: center; padding: 1rem; }
    .ei-card { border-radius: 28px; box-shadow: 0 30px 80px -15px rgba(15, 23, 42, .55); animation-name: ei-pop; }
}
@keyframes ei-sheet { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes ei-pop { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }

.ei-hero { position: relative; padding: 1.75rem 1.5rem 1.25rem; text-align: center; background: radial-gradient(120% 90% at 50% 0%, #dcfce7 0%, #f0fdf4 45%, #fff 100%); }
.ei-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(22, 163, 74, .14) 1px, transparent 1px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.ei-grabber { position: absolute; top: .55rem; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 999px; background: rgba(15, 23, 42, .15); }
@media (min-width: 640px) { .ei-grabber { display: none; } }
.ei-close { position: absolute; top: .85rem; right: .85rem; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .85); color: #64748b; cursor: pointer; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); transition: background .15s, color .15s, transform .15s; }
.ei-close:hover { background: #fff; color: #0f172a; transform: rotate(90deg); }

.ei-avatar { position: relative; display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: .85rem; border-radius: 20px; overflow: visible; background: #fff; box-shadow: 0 10px 24px -8px rgba(22, 163, 74, .45), 0 0 0 4px #fff; }
.ei-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.ei-avatar-initial { font-size: 1.5rem; font-weight: 900; color: #15803d; }
.ei-online { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border: 3px solid #fff; border-radius: 999px; background: #22c55e; }
.ei-online::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 2px solid #22c55e; animation: ei-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ei-ping { 75%, 100% { transform: scale(2); opacity: 0; } }

.ei-kicker { position: relative; display: inline-flex; align-items: center; gap: .35rem; margin: 0 0 .45rem; padding: .25rem .65rem; border-radius: 999px; background: #fff; color: #15803d; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.ei-title { position: relative; margin: 0 0 .45rem; color: #0f172a; font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; }
.ei-sub { position: relative; margin: 0 auto; max-width: 320px; color: #475569; font-size: .88rem; line-height: 1.55; }

.ei-body { padding: 0 1.5rem 1.5rem; }
.ei-field { margin-bottom: .75rem; }
.ei-label { display: block; margin: 0 0 .35rem .15rem; color: #334155; font-size: .76rem; font-weight: 700; }
.ei-input-wrap { display: flex; align-items: center; height: 50px; overflow: hidden; border: 1.5px solid #e2e8f0; border-radius: 14px; background: #f8fafc; transition: border-color .15s, box-shadow .15s, background .15s; }
.ei-input-wrap:focus-within { border-color: #22c55e; background: #fff; box-shadow: 0 0 0 4px rgba(34, 197, 94, .14); }
.ei-input-wrap.is-error { border-color: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, .14); }
.ei-icon { display: grid; place-items: center; width: 44px; height: 100%; flex-shrink: 0; color: #94a3b8; }
.ei-input-wrap:focus-within .ei-icon { color: #16a34a; }
.ei-prefix { display: flex; align-items: center; gap: .35rem; height: 100%; padding: 0 .75rem 0 .9rem; border-right: 1.5px solid #e2e8f0; color: #334155; font-size: .88rem; font-weight: 800; white-space: nowrap; }
.ei-input { flex: 1; min-width: 0; height: 100%; padding: 0 .9rem 0 0; border: 0; outline: 0; background: transparent; color: #0f172a; font-size: 16px; font-weight: 600; }
.ei-input--phone { padding-left: .8rem; letter-spacing: .04em; }
.ei-input::placeholder { color: #94a3b8; font-weight: 500; }
.ei-error { display: flex; align-items: center; gap: .35rem; margin: -.25rem 0 .75rem .15rem; color: #dc2626; font-size: .76rem; font-weight: 600; }

.ei-cta { position: relative; display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; height: 52px; margin-top: .35rem; overflow: hidden; border: 0; border-radius: 14px; background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%); color: #fff; font-size: .95rem; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(22, 163, 74, .65), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .15s, box-shadow .15s, filter .15s; }
.ei-cta::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); animation: ei-shine 3.2s ease-in-out 1s infinite; }
@keyframes ei-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.ei-cta:hover { filter: brightness(1.06); box-shadow: 0 14px 30px -8px rgba(22, 163, 74, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.ei-cta:active { transform: scale(.98); }
.ei-cta:disabled { opacity: .7; cursor: wait; }
.ei-cta svg { transition: transform .15s; }
.ei-cta:hover svg.ei-arrow { transform: translateX(3px); }
.ei-spin { animation: ei-rotate .8s linear infinite; }
@keyframes ei-rotate { to { transform: rotate(360deg); } }

.ei-skip { display: block; width: 100%; margin-top: .6rem; padding: .55rem; border: 0; background: none; color: #64748b; font-size: .82rem; font-weight: 600; cursor: pointer; transition: color .15s; }
.ei-skip:hover { color: #0f172a; }
.ei-privacy { display: flex; align-items: center; justify-content: center; gap: .35rem; margin: .4rem 0 0; color: #94a3b8; font-size: .7rem; }

.ei-thanks { padding: 2.5rem 1.75rem 2.25rem; text-align: center; background: radial-gradient(120% 80% at 50% 0%, #dcfce7 0%, #fff 70%); }
.ei-check { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 1rem; border-radius: 999px; background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; box-shadow: 0 0 0 8px rgba(34, 197, 94, .15), 0 14px 30px -8px rgba(22, 163, 74, .6); animation: ei-pop .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.ei-check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: ei-draw .45s .25s ease-out forwards; }
@keyframes ei-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
    .ei-card, .ei-check, .ei-online::after, .ei-cta::after { animation: none; }
    .ei-check path { stroke-dashoffset: 0; animation: none; }
}

