.epf-root {
--epf-accent: #2563eb;
--epf-text: #1c1f24;
--epf-muted: #5c6370;
--epf-border: #dfe2e7;
--epf-bg: #ffffff;
position: fixed;
inset: 0;
z-index: 2147483000;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 16px;
line-height: 1.4;
color: var(--epf-text);
-webkit-text-size-adjust: 100%;
}
.epf-root[hidden],
.epf-root [hidden] { display: none !important; }
.epf-root *,
.epf-root *::before,
.epf-root *::after { box-sizing: border-box; }
html.epf-lock,
html.epf-lock body { overflow: hidden !important; } .epf-overlay {
position: absolute;
inset: 0;
background: rgba(15, 18, 24, 0.55);
opacity: 0;
transition: opacity 0.25s ease;
}
.epf-root.is-open .epf-overlay { opacity: 1; } .epf-panel {
position: absolute;
background: var(--epf-bg);
box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
overflow-y: auto;
-webkit-overflow-scrolling: touch;
overscroll-behavior: contain;
outline: none;
} .epf-desktop .epf-panel {
top: 50%;
left: 50%;
width: calc(100% - 32px);
max-width: 500px;
max-height: calc(100vh - 48px);
padding: 36px 32px 28px;
border-radius: 16px;
opacity: 0;
transform: translate(-50%, -46%) scale(0.97);
transition: transform 0.25s ease, opacity 0.25s ease;
}
.epf-desktop.is-open .epf-panel {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
} .epf-mobile .epf-panel {
left: 0;
right: 0;
bottom: 0;
width: 100%;
max-height: 85vh;
max-height: 85dvh;
padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px));
border-radius: 20px 20px 0 0;
transform: translateY(100%);
transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.epf-mobile.is-open .epf-panel { transform: translateY(0); }
.epf-handle {
width: 40px;
height: 5px;
margin: 0 auto 16px;
border-radius: 3px;
background: #d3d6db;
} .epf-root button {
-webkit-appearance: none;
appearance: none;
margin: 0;
font: inherit;
line-height: 1.35;
letter-spacing: normal;
text-transform: none;
text-shadow: none;
box-shadow: none;
cursor: pointer;
min-height: 0;
width: auto;
} .epf-root .epf-close {
position: absolute;
top: 10px;
right: 10px;
width: 40px;
height: 40px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
border: 0;
border-radius: 50%;
background: transparent;
color: var(--epf-muted);
font-size: 28px;
line-height: 1;
}
.epf-root .epf-close:hover { background: #f0f2f4; color: var(--epf-text); }
.epf-mobile .epf-close { top: 8px; right: 8px; } .epf-root .epf-title {
margin: 0 36px 8px 0;
padding: 0;
font-family: inherit;
font-size: 22px;
font-weight: 700;
line-height: 1.25;
letter-spacing: -0.01em;
text-transform: none;
color: var(--epf-text);
}
.epf-mobile .epf-title { font-size: 20px; }
.epf-root .epf-subtitle {
margin: 0 0 20px;
font-size: 15px;
color: var(--epf-muted);
} .epf-options {
display: grid;
gap: 10px;
}
.epf-root .epf-option {
display: block;
width: 100%;
min-height: 50px;
padding: 13px 16px;
text-align: left;
font-size: 16px;
font-weight: 500;
color: var(--epf-text);
background: #fff;
border: 1.5px solid var(--epf-border);
border-radius: 10px;
transition: border-color 0.15s ease, background-color 0.15s ease;
}
@media (hover: hover) {
.epf-root .epf-option:hover {
border-color: var(--epf-accent);
background: #f7f8fa;
background: color-mix(in srgb, var(--epf-accent) 6%, #fff);
}
}
.epf-root .epf-option.is-selected {
border-color: var(--epf-accent);
background: #f2f5fb;
background: color-mix(in srgb, var(--epf-accent) 10%, #fff);
}
.epf-root .epf-option:focus-visible,
.epf-root .epf-send:focus-visible,
.epf-root .epf-close:focus-visible {
outline: 2px solid var(--epf-accent);
outline-offset: 2px;
} .epf-other { margin-top: 12px; }
.epf-root .epf-other-text {
display: block;
width: 100%;
min-height: 90px;
margin: 0;
padding: 12px 14px;
font: inherit;
font-size: 16px; color: var(--epf-text);
background: #fff;
border: 1.5px solid var(--epf-border);
border-radius: 10px;
resize: vertical;
box-shadow: none;
}
.epf-root .epf-other-text:focus {
outline: none;
border-color: var(--epf-accent);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--epf-accent) 20%, transparent);
}
.epf-root .epf-send {
display: block;
width: 100%;
margin-top: 10px;
padding: 14px 16px;
font-size: 16px;
font-weight: 600;
color: #fff;
background: var(--epf-accent);
border: 0;
border-radius: 10px;
}
.epf-root .epf-send:hover { filter: brightness(0.94); } .epf-thanks { padding: 28px 8px 16px; text-align: center; }
.epf-root .epf-thanks-text {
margin: 0;
font-size: 20px;
font-weight: 600;
color: var(--epf-text);
}
@media (prefers-reduced-motion: reduce) {
.epf-overlay,
.epf-panel { transition: none !important; }
}