/* Reusable survey entry */

.clawbot-survey-entry {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    width: min(340px, calc(100vw - 32px));
    padding: 16px 16px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(circle at 0% 0%, rgba(0, 229, 204, 0.2), transparent 55%),
        linear-gradient(145deg, #0f1729, #19243a);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.36),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    color: #f0f4ff;
    animation: clawbotSurveyFadeIn 220ms ease-out;
}

.clawbot-survey-entry.is-hidden {
    animation: clawbotSurveyFadeOut 220ms ease-in forwards;
}

.clawbot-survey-entry__title {
    margin: 0 24px 12px 0;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    color: #f0f4ff;
}

.clawbot-survey-entry__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(240, 244, 255, 0.28);
    background: linear-gradient(135deg, #334155, #475569);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.clawbot-survey-entry__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
    border-color: rgba(240, 244, 255, 0.36);
}

.clawbot-survey-entry__button:active {
    transform: translateY(0);
    opacity: 0.9;
}

.clawbot-survey-entry__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.clawbot-survey-entry__close:hover {
    background: rgba(255, 255, 255, 0.24);
}

@keyframes clawbotSurveyFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes clawbotSurveyFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(8px);
    }
}

@media (max-width: 1023px) {
    .clawbot-survey-entry {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        padding: 14px 14px 12px;
        border-radius: 0;
    }

    .clawbot-survey-entry__title {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .clawbot-survey-entry__button {
        min-height: 38px;
        font-size: 12px;
    }
}
