.rsvideofeedback {
    position: absolute;
    inset: auto 1rem 1rem 1rem;
    z-index: 5;
    display: flex;
    justify-content: center;
    color: #111827;
    pointer-events: none;
}

.rsvideofeedback__body {
    width: min(42rem, 100%);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: rgba(249, 250, 251, 0.96);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.38);
    pointer-events: auto;
}

.rsvideofeedback__title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.rsvideofeedback__scale {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    margin: 0;
    padding: 0.7rem 0 0;
    border: 0;
}

.rsvideofeedback__scale + .rsvideofeedback__scale {
    margin-top: 0.45rem;
    border-top: 1px solid rgba(17, 24, 39, 0.12);
}

.rsvideofeedback__scale legend {
    padding: 0;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.rsvideofeedback__labels {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: end;
    color: #374151;
    font-size: 0.78rem;
    line-height: 1.2;
}

.rsvideofeedback__labels span:nth-child(2) {
    color: #0f766e;
    font-weight: 700;
    text-align: center;
}

.rsvideofeedback__labels span:last-child {
    text-align: right;
}

.rsvideofeedback__range {
    width: 100%;
    accent-color: #0f766e;
}

.rsvideofeedback__message {
    min-height: 1.2em;
    margin: 0.7rem 0 0;
    color: #0f766e;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
}

.rsvideofeedback__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-top: 0.6rem;
}

.rsvideofeedback__primary,
.rsvideofeedback__secondary {
    min-height: 2.35rem;
    padding: 0.48rem 0.9rem;
    border-radius: 6px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
}

.rsvideofeedback__primary {
    color: #ffffff;
    background: #0f766e;
}

.rsvideofeedback__primary:hover,
.rsvideofeedback__primary:focus-visible {
    background: #115e59;
}

.rsvideofeedback__primary:disabled {
    cursor: wait;
    opacity: 0.7;
}

.rsvideofeedback__secondary {
    color: #111827;
    border-color: rgba(17, 24, 39, 0.18);
    background: #ffffff;
}

.rsvideofeedback__secondary:hover,
.rsvideofeedback__secondary:focus-visible {
    border-color: rgba(17, 24, 39, 0.34);
    background: #f3f4f6;
}

@media (max-width: 42rem) {
    .rsvideofeedback {
        inset: auto 0.6rem 0.6rem 0.6rem;
    }

    .rsvideofeedback__body {
        max-height: min(28rem, calc(100vh - 1.2rem));
        overflow: auto;
        padding: 0.85rem;
    }

    .rsvideofeedback__labels {
        gap: 0.4rem;
        font-size: 0.72rem;
    }
}
