/* Elegant Engage — lyst & minimalistisk */
:root {
    --ee-accent: #E1602A;
    --ee-text: #0f172a;
    --ee-muted: #64748b;
    --ee-bg: #ffffff;
    --ee-border: #e5e9f0;
    --ee-shadow: 0 20px 45px -15px rgba(15, 23, 42, .25);
    --ee-radius: 18px;
}

/* Hidden because the current screen width does not match the "Show on" setting. */
.ee-device-hidden {
	display: none !important;
}

.ee-hidden { display: none !important; }

/* ---------- Chatboble ---------- */
.ee-chat {
    position: fixed;
    bottom: 24px;
    z-index: 99998;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ee-text);
}
.ee-chat--right { right: 24px; }
.ee-chat--left  { left: 24px; }

/* Launcher-knap */
.ee-launcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ee-bg);
    border: 1px solid var(--ee-border);
    border-radius: 999px;
    padding: 10px 18px 10px 12px;
    box-shadow: var(--ee-shadow);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.ee-launcher:hover { transform: translateY(-2px); }
.ee-launcher__icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--ee-accent);
    display: grid; place-items: center;
    flex: 0 0 auto;
}
.ee-launcher__icon svg { width: 20px; height: 20px; fill: #fff; }
.ee-launcher__text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.ee-launcher__label { font-weight: 600; font-size: 14px; }
.ee-launcher__status {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--ee-muted);
}
.ee-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e; position: relative;
}
.ee-dot::after {
    content: ""; position: absolute; inset: -4px;
    border-radius: 50%; background: #22c55e; opacity: .35;
    animation: ee-pulse 1.8s ease-out infinite;
}
@keyframes ee-pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }

/* Panel */
.ee-panel {
    position: absolute;
    bottom: 72px;
    width: 340px;
    max-width: calc(100vw - 48px);
    background: var(--ee-bg);
    border: 1px solid var(--ee-border);
    border-radius: var(--ee-radius);
    box-shadow: var(--ee-shadow);
    overflow: hidden;
    transform: translateY(12px) scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
}
.ee-chat--right .ee-panel { right: 0; }
.ee-chat--left  .ee-panel { left: 0; }
.ee-panel.ee-open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }

.ee-panel__head {
    background: var(--ee-accent);
    color: #fff;
    padding: 18px 20px;
}
.ee-panel__logo {
    display: block;
    max-height: 34px;
    max-width: 160px;
    width: auto;
    margin: 0 0 12px;
}
.ee-panel__title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.ee-panel__status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: .95; }
.ee-panel__status .ee-dot { background: #86efac; }
.ee-panel__status .ee-dot::after { background: #86efac; }
.ee-panel__close {
    position: absolute; top: 14px; right: 14px;
    background: rgba(255,255,255,.2); border: 0; color: #fff;
    width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
    font-size: 16px; line-height: 1; display: grid; place-items: center;
}
.ee-chat--left .ee-panel__close { right: 14px; }

.ee-panel__body { padding: 18px 20px 20px; }
.ee-intro { font-size: 14px; color: var(--ee-muted); margin: 0 0 14px; line-height: 1.5; }

.ee-field { margin-bottom: 10px; }
.ee-field input,
.ee-field textarea {
    width: 100%; box-sizing: border-box;
    border: 1px solid var(--ee-border); border-radius: 12px;
    padding: 11px 13px; font-size: 14px; font-family: inherit;
    color: var(--ee-text); background: #fbfcfe;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ee-field textarea { resize: vertical; min-height: 84px; }
.ee-field input:focus,
.ee-field textarea:focus {
    outline: none; border-color: var(--ee-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ee-accent) 18%, transparent);
    background: #fff;
}

.ee-submit {
    width: 100%; border: 0; border-radius: 12px;
    background: var(--ee-accent); color: #fff;
    padding: 12px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: filter .15s ease, transform .1s ease;
}
.ee-submit:hover { filter: brightness(1.05); }
.ee-submit:active { transform: translateY(1px); }
.ee-submit:disabled { opacity: .6; cursor: default; }

.ee-feedback { font-size: 13px; margin-top: 10px; line-height: 1.5; }
.ee-feedback.ee-error { color: #dc2626; }
.ee-feedback.ee-ok { color: #16a34a; }

.ee-success {
    text-align: center; padding: 18px 6px;
}
.ee-success__icon {
    width: 52px; height: 52px; margin: 0 auto 12px;
    border-radius: 50%; background: #dcfce7; color: #16a34a;
    display: grid; place-items: center; font-size: 26px;
}
.ee-success p { font-size: 14px; color: var(--ee-text); margin: 0; line-height: 1.5; }

.ee-branding { text-align: center; font-size: 11px; color: #cbd5e1; padding: 0 0 12px; }

/* ---------- Pop-up ---------- */
.ee-popup-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.ee-popup-overlay.ee-open { opacity: 1; pointer-events: auto; }

.ee-popup {
    background: var(--ee-bg);
    border-radius: 22px;
    max-width: 440px; width: 100%;
    box-shadow: var(--ee-shadow);
    overflow: hidden;
    transform: translateY(16px) scale(.96);
    transition: transform .28s cubic-bezier(.16,1,.3,1);
}
.ee-popup-overlay.ee-open .ee-popup { transform: translateY(0) scale(1); }

.ee-popup__image { width: 100%; height: 170px; object-fit: cover; display: block; }
.ee-popup__logo { display: block; max-height: 46px; max-width: 190px; width: auto; margin: 4px auto 18px; }
.ee-popup__inner { padding: 30px 32px 34px; text-align: center; position: relative; }
.ee-popup__title { font-size: 24px; font-weight: 700; color: var(--ee-text); margin: 0 0 10px; }
.ee-popup__text { font-size: 15px; color: var(--ee-muted); line-height: 1.55; margin: 0 0 22px; }
.ee-popup__btn {
    display: inline-block; text-decoration: none;
    background: var(--ee-accent); color: #fff;
    padding: 13px 34px; border-radius: 12px;
    font-size: 15px; font-weight: 600;
    transition: filter .15s ease, transform .1s ease;
}
.ee-popup__btn:hover { filter: brightness(1.05); }
.ee-popup__btn:active { transform: translateY(1px); }
.ee-popup__close {
    position: absolute; top: 14px; right: 16px;
    background: #f1f5f9; border: 0; color: #64748b;
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    font-size: 18px; line-height: 1; display: grid; place-items: center;
    transition: background .15s ease;
}
.ee-popup__close:hover { background: #e2e8f0; }

@media (max-width: 480px) {
    .ee-panel { width: calc(100vw - 48px); }
    .ee-popup__inner { padding: 26px 22px 28px; }
    .ee-popup__title { font-size: 21px; }
}
