.feedback-panel {
    box-sizing: border-box;
    min-width: 0;
    padding: 24px;
    border: 3px solid #f5f5f5;
    border-radius: 16px;
    color: #424242;
    background: #ffffff;
    font-size: 16px;
    line-height: 24px;
}

.feedback-panel [hidden] {
    display: none !important;
}

.feedback-panel__title {
    margin: 0 0 12px;
    color: #000000;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
}

.feedback-panel__description {
    margin: 0 0 24px;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    margin: 0;
}

.feedback-field {
    min-width: 0;
}

.feedback-field label {
    display: block;
    margin: 0 0 4px;
    color: #757575;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.feedback-field input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 32px;
    margin: 0;
    padding: 5px 11px;
    border: 1px solid #c4c4c4;
    border-radius: 16px;
    outline: none;
    color: #424242;
    background: #ffffff;
    font: inherit;
    font-size: 14px;
    line-height: 20px;
    appearance: none;
    -webkit-appearance: none;
    transition:
            border-color 160ms ease-out,
            box-shadow 160ms ease-out;
}

.feedback-field input::placeholder {
    color: #9e9e9e;
    opacity: 1;
}

.feedback-field input:focus {
    border-color: #0093ee;
    box-shadow: 0 0 0 2px #e8f6ff;
}

.feedback-field input[aria-invalid="true"] {
    border-color: #d7373f;
}

.feedback-field input[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 2px rgb(215 55 63 / 12%);
}

.feedback-field input[readonly] {
    cursor: progress;
}

.feedback-field__error {
    margin: 4px 0 0;
    color: #d7373f;
    font-size: 12px;
    line-height: 16px;
}

.feedback-form__message {
    margin: 0;
    overflow-wrap: anywhere;
    color: #d7373f;
    font-size: 14px;
    line-height: 20px;
    animation: feedback-message-in 180ms ease-out;
}

.feedback-form__message.is-success {
    padding: 12px;
    border-radius: 12px;
    color: #0082a7;
    background: #e8f6ff;
}

.feedback-submit {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 8px 16px;
    border: 0;
    border-radius: 18px;
    color: #ffffff;
    background: #0093ee;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    cursor: pointer;
    transition:
            background-color 180ms ease-out,
            opacity 180ms ease-out;
}

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

.feedback-submit[aria-busy="true"] {
    cursor: progress;
}

.feedback-submit[aria-busy="true"]::before {
    content: "";
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    border: 2px solid rgb(255 255 255 / 40%);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: feedback-spin 700ms linear infinite;
}

.feedback-submit:focus-visible,
.feedback-success__close:focus-visible {
    outline: 2px solid #0093ee;
    outline-offset: 3px;
}

.feedback-success {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 330px;
    max-width: calc(100% - 32px);
    height: fit-content;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 27px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 3px solid #f5f5f5;
    border-radius: 16px;
    color: #424242;
    background: #ffffff;
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
}

.feedback-success:not([open]) {
    display: none;
}

.feedback-success::backdrop {
    background: rgb(0 0 0 / 50%);
    animation: feedback-backdrop-in 180ms ease-out;
}

.feedback-success.is-closing::backdrop {
    animation: feedback-backdrop-out 160ms ease-out forwards;
}

.feedback-success__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    align-items: center;
    gap: 12px;
    min-height: 32px;
    margin-bottom: 20px;
}

.feedback-success__header h2 {
    min-width: 0;
    margin: 0;
    color: #000000;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    overflow-wrap: anywhere;
}

.feedback-success__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 4px;
    border: 0;
    color: #000000;
    background: transparent;
    cursor: pointer;
    transition: color 180ms ease-out;
}

.feedback-success__close > svg {
    display: block;
    flex: 0 0 24px;
}

.feedback-success__message {
    margin: 0 0 20px;
    color: #424242;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    overflow-wrap: anywhere;
}

@media (hover: hover) {
    .feedback-submit:not(:disabled):hover {
        background: #ee6a00;
    }

    .feedback-success__close:hover {
        color: #ee6a00;
    }
}

.feedback-submit:not(:disabled):active {
    background: #0082a7;
}

.feedback-success__close:active {
    color: #0082a7;
}

@keyframes feedback-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes feedback-message-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes feedback-backdrop-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes feedback-backdrop-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feedback-form__message,
    .feedback-success::backdrop,
    .feedback-success.is-closing::backdrop {
        animation: none;
    }

    .feedback-field input,
    .feedback-submit,
    .feedback-success__close {
        transition: none;
    }

    .feedback-submit[aria-busy="true"]::before {
        animation: none;
    }
}