/* TELO uniform Experience component.
   Scoped to the widget only. */

html.telo-experience-ready .te-public-controls {
    display:none!important;
}

#telo-experience-toggle {
    box-sizing:border-box!important;
    position:fixed!important;
    right:18px!important;
    bottom:var(--telo-experience-bottom,24px)!important;
    width:54px!important;
    height:54px!important;
    padding:0!important;
    margin:0!important;
    border-radius:50%!important;
    display:grid!important;
    place-items:center!important;
    background:#08765e!important;
    color:#fff!important;
    border:2px solid #ffffffb0!important;
    box-shadow:0 7px 25px #003c3530;
    z-index:9000;
    cursor:pointer;
    animation:telo-experience-breathe 3s ease-in-out infinite;
}

#telo-experience-toggle svg {
    width:26px;
    height:26px;
    pointer-events:none;
}

#telo-experience-panel {
    box-sizing:border-box;
    position:fixed;
    right:16px;
    bottom:calc(var(--telo-experience-bottom,24px) + 66px);
    width:min(320px,calc(100vw - 32px));
    max-height:55vh;
    overflow:auto;
    padding:20px;
    border:1px solid #dce8e1;
    border-radius:20px;
    background:var(--dx-panel,#fff);
    color:var(--dx-ink,#153b30);
    box-shadow:0 18px 60px #001d1830;
    z-index:9001;
    font-family:system-ui,sans-serif;
    animation:telo-experience-open .3s ease-out both;
}

#telo-experience-panel[hidden] {
    display:none!important;
}

#telo-experience-panel strong {
    display:block;
    font-size:16px;
    margin-bottom:16px;
}

#telo-experience-panel label {
    display:block;
    font-size:13px;
    margin:12px 0;
}

#telo-experience-panel select {
    box-sizing:border-box;
    display:block;
    width:100%;
    padding:12px;
    margin-top:6px;
    border:1px solid var(--dx-line,#dce8e1);
    border-radius:10px;
    background:var(--dx-panel,#fff);
    color:var(--dx-ink,#153b30);
    font-size:14px;
}

#telo-experience-close {
    display:block;
    width:100%;
    border:0;
    border-radius:10px;
    padding:12px;
    margin-top:16px;
    background:#08765e;
    color:white;
    font-weight:700;
    cursor:pointer;
}

html[data-theme="emerald"] #telo-experience-panel {
    --dx-panel:#0c503e;
    --dx-ink:#effff6;
    --dx-line:#ffffff30;
}

html[data-theme="midnight"] #telo-experience-panel {
    --dx-panel:#132439;
    --dx-ink:#eff6ff;
    --dx-line:#ffffff25;
}

@keyframes telo-experience-open {
    from {opacity:0;translate:0 12px}
    to {opacity:1;translate:0 0}
}

@keyframes telo-experience-breathe {
    0%,100% {box-shadow:0 7px 25px #003c3530}
    50% {box-shadow:0 7px 25px #003c3530,0 0 0 7px #08765e20}
}

@media(max-width:1023px) {
    #telo-experience-toggle {
        width:50px!important;
        height:50px!important;
        right:12px!important;
    }

    #telo-experience-panel {
        right:12px;
        bottom:calc(var(--telo-experience-bottom,24px) + 62px);
        width:min(320px,calc(100vw - 24px));
    }
}

html[data-motion="lite"] #telo-experience-toggle,
html[data-motion="lite"] #telo-experience-panel {
    animation:none!important;
}

@media(prefers-reduced-motion:reduce) {
    #telo-experience-toggle,
    #telo-experience-panel {
        animation:none!important;
    }
}
