.feedback-modal {
    width: min(440px, calc(100vw - 32px));
    max-width: 100%;
    margin: auto;
    padding: 28px;
    border: 1px solid #e7ebe6;
    border-radius: 20px;
    background: #fff;
    color: #202322;
    box-shadow: 0 24px 70px rgba(24, 39, 29, .22);
    font-family: 'DM Sans', system-ui, sans-serif;
}

.feedback-modal[open] {
    position: fixed;
    inset: 0;
}

.feedback-modal[open]:not([data-native-modal]) {
    box-shadow: 0 0 0 100vmax rgba(14, 21, 17, .56), 0 24px 70px rgba(24, 39, 29, .22);
}

.feedback-modal::backdrop {
    background: rgba(14, 21, 17, .56);
    backdrop-filter: blur(3px);
}

.feedback-modal__heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feedback-modal__icon {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: #fff0ef;
    color: #b42318;
    font: 800 26px/1 system-ui, sans-serif;
}

.feedback-modal--success .feedback-modal__icon {
    background: #e8f5ed;
    color: #217346;
}

.feedback-modal--warning .feedback-modal__icon {
    background: #fff4db;
    color: #9a6700;
}

.feedback-modal--info .feedback-modal__icon {
    background: #eaf2ff;
    color: #245bb2;
}

.feedback-modal__title {
    margin: 0;
    color: #202322;
    font: 700 clamp(18px, 4vw, 22px)/1.3 Manrope, 'DM Sans', system-ui, sans-serif;
}

.feedback-modal__message {
    margin: 20px 0 24px;
    color: #58615b;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.feedback-modal__actions {
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

.feedback-modal__button {
    min-width: 92px;
    min-height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: #285941;
    color: #fff;
    font: 700 14px 'DM Sans', system-ui, sans-serif;
    cursor: pointer;
}

.feedback-modal__button:hover { background: #194a39; }
.feedback-modal__button:focus-visible { outline: 3px solid #91b8a0; outline-offset: 3px; }

.checkout-fields [aria-invalid="true"] {
    border-color: #b42318 !important;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .12) !important;
}

@media (max-width: 480px) {
    .feedback-modal { padding: 23px 20px; border-radius: 16px; }
    .feedback-modal__icon { flex-basis: 42px; width: 42px; height: 42px; font-size: 23px; }
    .feedback-modal__message { font-size: 14px; }
}

@media (prefers-reduced-motion: no-preference) {
    .feedback-modal[open] { animation: feedback-modal-in .16s ease-out; }
    @keyframes feedback-modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
}
