.feedback-popup {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.feedback-popup[hidden] {
    display: none;
}

.feedback-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.feedback-popup__dialog {
    position: relative;
    width: 100%;
    max-width: 612px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    box-sizing: border-box;
    padding: 28px 32px 24px;
    background: #fff;
    color: #333;
    font-family: lotsmanR, Arial, Tahoma, Verdana, sans-serif;
}

.feedback-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.feedback-popup__close:before,
.feedback-popup__close:after {
    content: "";
    position: absolute;
    top: 13px;
    left: 6px;
    width: 16px;
    height: 2px;
    background: #333;
}

.feedback-popup__close:before {
    transform: rotate(45deg);
}

.feedback-popup__close:after {
    transform: rotate(-45deg);
}

.feedback-popup__title {
    margin: 0 28px 22px 0;
    font-family: lotsmanR, Arial, Tahoma, Verdana, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
}

.feedback-form__field {
    margin: 0 0 18px;
}

.feedback-form__label {
    display: block;
    margin: 0 0 8px;
    font-family: lotsmanR, Arial, Tahoma, Verdana, sans-serif;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.3;
    text-transform: none;
}

.feedback-form input.feedback-form__input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #dbdbdb;
    background: #fff;
    color: #333;
    font-family: lotsmanR, Arial, Tahoma, Verdana, sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.3;
    height: auto;
    min-height: 40px;
}

.feedback-form input.feedback-form__input:focus {
    outline: none!important;
    border-color: #b2dea6;
}

.feedback-form select.feedback-form__input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #dbdbdb;
    background: #fff;
    color: #333;
    font-family: lotsmanR, Arial, Tahoma, Verdana, sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.3;
    height: auto;
    min-height: 40px;
}

.feedback-form select.feedback-form__input:focus {
    outline: none;
    border-color: #b2dea6;
}

.feedback-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    font-family: lotsmanR, Arial, Tahoma, Verdana, sans-serif;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.45;
    text-transform: none;
}

.feedback-form__checkbox {
    flex: 0 0 auto;
    margin: 3px 0 0;
}

.feedback-form__consent-text {
    min-width: 0;
}

.feedback-form__consent-text label {
    display: block;
    margin: 0 0 6px;
    cursor: pointer;
}

.feedback-form__consent-text p {
    margin: 0;
    padding: 0;
}

.feedback-form__consent-text a {
    color: #333;
}

.feedback-form__submit {
    display: inline-block;
    margin: 0;
    padding: 14px 18px 10px;
    border: 1px solid #d1cbe5;
    background: #b2dea6;
    color: #333;
    font-family: lotsmanU, Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.feedback-form__submit:hover {
    background: #a0e98d;
}

.feedback-form__submit:disabled {
    cursor: default;
    opacity: 0.7;
}

.feedback-form__message {
    margin: 0 0 16px;
    font-family: lotsmanR, Arial, Tahoma, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.feedback-form__message.is-error {
    color: #b00000;
}

.feedback-form__message.is-success {
    color: #2d6a1e;
}

.feedback-form input.feedback-form__input.is-invalid,
.feedback-form select.feedback-form__input.is-invalid {
    border-color: #c62828;
}

.feedback-form.is-sent .feedback-form__field,
.feedback-form.is-sent .feedback-form__consent,
.feedback-form.is-sent .feedback-form__submit {
    display: none;
}

body.feedback-popup-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .feedback-popup__dialog {
        padding: 24px 16px 18px;
    }

    .feedback-popup__title {
        font-size: 18px;
    }
}
