/* Floating "Book a demo" card (resources/views/home/layouts/demo-float.blade.php).
   Bottom-left: the chat launcher and the cookie notice sit bottom-right. */
.exposio-demo-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    /* Under the chat panel (2147483000), which goes full screen on phones. */
    z-index: 2147482000;
    font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.exposio-demo-float[hidden] { display: none; }
.exposio-demo-float.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
}
/* Steps aside while the footer is on screen, or while the cookie notice covers it (phones). */
.exposio-demo-float.is-visible.is-past,
.exposio-demo-float.is-visible.is-covered {
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}

.exposio-demo-float .edf-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 270px;
    box-sizing: border-box;
    padding: 12px 40px 12px 12px;
    background: #1c1c1c;
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}
.exposio-demo-float .edf-card:hover,
.exposio-demo-float .edf-card:focus { color: #fff; text-decoration: none; }
.exposio-demo-float .edf-card:hover { transform: translateY(-2px); }
.exposio-demo-float .edf-card:after,
.exposio-demo-float .edf-mini:after { display: none; }

.exposio-demo-float .edf-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1921d;
    display: flex;
    align-items: center;
    justify-content: center;
}
.exposio-demo-float svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #1c1c1c;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.exposio-demo-float .edf-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.exposio-demo-float .edf-title { font-size: 15px; font-weight: 600; }
.exposio-demo-float .edf-sub { font-size: 12.5px; color: #c9c9c9; margin-top: 2px; white-space: nowrap; }
.exposio-demo-float .edf-arrow {
    margin-left: auto;
    color: #f1921d;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.15s ease;
}
.exposio-demo-float .edf-card:hover .edf-arrow { transform: translateX(3px); }

.exposio-demo-float .edf-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #9a9a9a;
    font-size: 18px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
}
.exposio-demo-float .edf-close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

/* Minimized: a round button the size of the chat launcher, on the other side. */
.exposio-demo-float .edf-mini {
    display: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1c1c1c;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}
.exposio-demo-float .edf-mini svg { width: 24px; height: 24px; stroke: #f1921d; }
.exposio-demo-float .edf-mini:hover { transform: scale(1.06); }
.exposio-demo-float.is-min .edf-card,
.exposio-demo-float.is-min .edf-close { display: none; }
.exposio-demo-float.is-min .edf-mini { display: flex; }

.exposio-demo-float .edf-card:focus-visible,
.exposio-demo-float .edf-mini:focus-visible,
.exposio-demo-float .edf-close:focus-visible { outline: 3px solid #f1921d; outline-offset: 2px; }

/* Phones: a pill as tall as the chat launcher, title only. */
@media (max-width: 480px) {
    .exposio-demo-float { left: 16px; bottom: 16px; }
    .exposio-demo-float .edf-card {
        min-width: 0;
        gap: 10px;
        padding: 8px 38px 8px 8px;
        border-radius: 28px;
    }
    .exposio-demo-float .edf-icon { border-radius: 50%; }
    .exposio-demo-float .edf-sub,
    .exposio-demo-float .edf-arrow { display: none; }
    .exposio-demo-float .edf-title { font-size: 14px; }
    .exposio-demo-float .edf-close { top: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .exposio-demo-float,
    .exposio-demo-float.is-visible,
    .exposio-demo-float.is-visible.is-past,
    .exposio-demo-float.is-visible.is-covered,
    .exposio-demo-float .edf-card,
    .exposio-demo-float .edf-arrow,
    .exposio-demo-float .edf-mini { transition: none; }
}

@media print {
    .exposio-demo-float { display: none !important; }
}
