/* Messages */
.toast-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 0 0 20px;
}

.toast-message {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--color-surface-light);
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 22px rgba(33, 33, 33, 0.06);
    color: var(--color-text);
    line-height: 1.4;
}

.toast-message.success {
    background: #eef7ef;
    border-color: rgba(47, 91, 53, 0.18);
    color: #2f5b35;
}

.toast-message.error {
    background: #f8e7e4;
    border-color: rgba(122, 47, 40, 0.18);
    color: #7a2f28;
}

.toast-message.warning {
    background: #fff2d8;
    border-color: rgba(122, 85, 34, 0.2);
    color: #7a5522;
}

.toast-message.is-hidden {
    display: none;
}

.toast-message-text {
    flex: 1;
    min-width: 0;
    font-weight: 600;
}

.toast-message-close {
    width: auto;
    min-width: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: currentColor;
    font-size: 22px;
    line-height: 1;
    opacity: 0.62;
    cursor: pointer;
}

.toast-message-close:hover {
    opacity: 1;
}

/* Form alerts */
.form-alert {
    margin: 0 0 18px;
    padding: 13px 15px;
    border-radius: 18px;
    background: var(--color-surface-light);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    line-height: 1.4;
    font-size: 15px;
}

.form-alert p {
    margin: 0;
}

.form-alert p + p {
    margin-top: 8px;
}

.form-alert-error {
    background: #f8e7e4;
    border-color: #e4b9b2;
    color: #7a2f28;
}

.form-alert-success {
    background: #e7f1e7;
    border-color: rgba(47, 91, 53, 0.18);
    color: #2f5b35;
}

.form-alert-warning {
    background: #fff2d8;
    border-color: rgba(255, 201, 49, 0.36);
    color: #7a5522;
}

/* Field errors */
.errorlist {
    margin: 7px 0 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #8a3a32;
    list-style: none;
    line-height: 1.35;
    font-size: 14px;
}

.errorlist ul,
.errorlist li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.field-error {
    margin-top: 6px;
    color: #8a3a32;
    font-size: 14px;
    line-height: 1.35;
}

@media (max-width: 640px) {
    .toast-messages {
        max-width: none;
        margin-bottom: 14px;
    }

    .toast-message {
        padding: 13px 14px;
        border-radius: 16px;
    }

    .toast-message-close {
        width: auto;
    }

    .form-alert {
        padding: 12px 14px;
        border-radius: 16px;
    }
}