.wnet-feedback[hidden],
.wnet-feedback-tab[hidden] {
    display: none !important;
}

.wnet-feedback {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
    background: rgba(0, 0, 0, .12);
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
}

.wnet-feedback__box {
    position: relative;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 18px 24px 22px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .22);
}

.wnet-feedback__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.wnet-feedback__back,
.wnet-feedback__close {
    border: 0;
    background: transparent;
    color: #555;
    font-size: 25px;
    cursor: pointer;
}

.wnet-feedback__back:disabled {
    visibility: hidden;
}

.wnet-feedback__close {
    font-size: 30px;
}

.wnet-feedback__progress {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 12px;
}

.wnet-feedback__bar {
    width: 70px;
    height: 6px;
    border-radius: 5px;
    background: #ddd;
}

.wnet-feedback__bar.is-active {
    background: #159c98;
}

.wnet-feedback__page h2,
.wnet-feedback__thanks h2 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.3;
}

.wnet-feedback__explanation {
    margin: 0 0 24px;
    color: #555;
    font-style: italic;
    line-height: 1.5;
}

.wnet-feedback fieldset {
    min-width: 0;
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}

.wnet-feedback legend {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.4;
}

.wnet-feedback__faces,
.wnet-feedback__scale {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wnet-feedback__faces label,
.wnet-feedback__scale label {
    cursor: pointer;
}

.wnet-feedback__faces input,
.wnet-feedback__scale input {
    position: absolute;
    opacity: 0;
}

.wnet-feedback__faces span,
.wnet-feedback__scale span {
    display: grid;
    min-width: 48px;
    min-height: 48px;
    place-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 19px;
}

.wnet-feedback__faces span {
    width: 62px;
    height: 62px;
    min-width: 62px;
    min-height: 62px;
    border: 2px solid transparent;
    border-radius: 50%;
    font-size: 34px;
}

.wnet-feedback__faces label:nth-child(1) span {
    background: #ed4545;
}

.wnet-feedback__faces label:nth-child(2) span {
    background: #f28c28;
}

.wnet-feedback__faces label:nth-child(3) span {
    background: #f5c842;
}

.wnet-feedback__faces label:nth-child(4) span {
    background: #a9c93b;
}

.wnet-feedback__faces label:nth-child(5) span {
    background: #35ae55;
}

.wnet-feedback__faces input:checked + span {
    outline: 3px solid #333;
    outline-offset: 3px;
}

.wnet-feedback__scale input:checked + span {
    border: 2px solid #159c98;
    background: #e9f7f6;
}

.wnet-feedback__faces input:focus-visible + span,
.wnet-feedback__scale input:focus-visible + span {
    outline: 3px solid #70c9c5;
    outline-offset: 2px;
}

.wnet-feedback__footer {
    margin-top: 24px;
}

.wnet-feedback__next {
    width: 100%;
    padding: 13px 18px;
    border: 0;
    border-radius: 9px;
    background: #159c98;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.wnet-feedback__next:hover,
.wnet-feedback-tab:hover {
    background: #117d79;
}

.wnet-feedback__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.wnet-feedback-tab {
    position: fixed;
    top: 42%;
    right: 0;
    z-index: 99998;
    padding: 14px 11px;
    border: 0;
    border-radius: 8px 0 0 8px;
    background: #159c98;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
    writing-mode: vertical-rl;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .2);
}

@media (max-width: 600px) {
    .wnet-feedback {
        align-items: flex-end;
        justify-content: center;
        padding: 8px;
    }

    .wnet-feedback__box {
        max-height: 92vh;
        padding: 16px;
    }

    .wnet-feedback__page h2 {
        font-size: 21px;
    }

    .wnet-feedback__faces {
        justify-content: space-between;
        gap: 4px;
    }

    .wnet-feedback__faces span {
        width: 48px;
        height: 52px;
        min-width: 48px;
        min-height: 52px;
        font-size: 29px;
    }
}