/* Riftak "water drop" pop-up (used by /everly and /delivery) */
.rd-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
    background: rgba(7, 26, 47, 0.62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: rd-fade .25s ease-out both;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.rd-overlay.rd-closing { animation: rd-fade .22s ease-in reverse both; }
@keyframes rd-fade { from { opacity: 0; } to { opacity: 1; } }

.rd-drop {
    --dw: min(78vw, 300px, 54vh);
    position: relative;
    flex: none;
    width: var(--dw);
    aspect-ratio: 200 / 268;
    height: calc(var(--dw) * 1.34);
    font-size: calc(var(--dw) * 0.053);
    color: #fff;
    text-align: center;
    filter: drop-shadow(0 24px 30px rgba(2, 12, 27, .45));
    animation: rd-fall .75s cubic-bezier(.3, 1.35, .5, 1) both;
    transform-origin: 50% 100%;
}
@keyframes rd-fall {
    0%   { transform: translateY(-55vh) scale(.55, .8); opacity: 0; }
    55%  { transform: translateY(0) scale(1.07, .9); opacity: 1; }
    75%  { transform: translateY(0) scale(.97, 1.04); }
    100% { transform: translateY(0) scale(1, 1); }
}
.rd-drop svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rd-drop .rd-wobble { animation: rd-wobble 4s ease-in-out .9s infinite; transform-origin: 50% 70%; }
@keyframes rd-wobble {
    0%, 100% { transform: scale(1, 1); }
    50% { transform: scale(1.015, .99); }
}

.rd-content {
    position: absolute;
    left: 15%;
    right: 15%;
    top: 36%;
    bottom: 9%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45em;
}
.rd-icon {
    width: 2.9em;
    height: 2.9em;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1em;
    background: rgba(255, 255, 255, .2);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45);
    animation: rd-pop .5s .55s cubic-bezier(.3, 1.6, .5, 1) both;
}
.rd-icon i { font-size: 1.35em; }
@keyframes rd-pop { from { transform: scale(0); } to { transform: scale(1); } }
.rd-title {
    margin: .15em 0 0;
    font-size: 1.28em;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.rd-text {
    margin: 0;
    font-size: .86em;
    line-height: 1.38;
    font-weight: 500;
    opacity: .96;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.rd-text strong { font-weight: 800; }

/* Ripples where the drop "lands" */
.rd-ripple {
    position: absolute;
    left: 50%;
    bottom: -4%;
    width: 70%;
    height: 9%;
    border-radius: 50%;
    border: 2px solid rgba(186, 230, 253, .55);
    transform: translateX(-50%) scale(.3);
    opacity: 0;
    animation: rd-ripple 1.6s .45s ease-out 2;
    pointer-events: none;
}
.rd-ripple.r2 { animation-delay: .75s; }
@keyframes rd-ripple {
    0% { transform: translateX(-50%) scale(.3); opacity: .9; }
    100% { transform: translateX(-50%) scale(1.5); opacity: 0; }
}

.rd-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(86vw, 320px);
    animation: rd-rise .45s .5s ease-out both;
}
@keyframes rd-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rd-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 22px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s ease, filter .15s ease;
}
.rd-btn:active { transform: scale(.97); }
.rd-btn-primary { background: #fff; color: #0b3d66; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .55); }
.rd-btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.rd-btn:focus-visible { outline: 3px solid #7dd3fc; outline-offset: 3px; }

html.rd-lock, html.rd-lock body { overflow: hidden !important; }

@media (prefers-reduced-motion: reduce) {
    .rd-overlay, .rd-drop, .rd-drop .rd-wobble, .rd-icon, .rd-actions, .rd-ripple { animation: none !important; }
    .rd-ripple { display: none; }
}
