﻿.survey-btn {
    position: fixed;
    top: 80%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9997;
    padding: 16px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: hsl(from var(--bs-primary) h s calc(l * 0.9));
    border: none;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: inherit;
    font-weight: 400;
    transition: all ease-in-out 0.5ms;
}

    .survey-btn:hover {
/*        right: 2px;*/
        background: hsl(from var(--bs-primary) h s calc(l * 0.7));
        transition: all ease-in-out 0.5ms;
    }

.survey-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
    z-index: 9998;
}

    .survey-overlay.open {
        opacity: 1;
        visibility: visible;
    }

.survey-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 420px;
    max-width: 100%;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,.2);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

    .survey-panel.open {
        transform: translateX(0);
    }

.survey-close {
    align-self: flex-end;
    margin: 8px 12px;
    font-size: 28px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}
