.wses-notice {
    display: none;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.wses-notice.is-visible {
    display: flex;
}

.wses-notice.is-dismissing {
    opacity: 0;
}

.wses-notice__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.wses-notice__icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.wses-notice__body {
    flex: 1;
    margin: 0;
}

/* Checking — orange */
.wses-notice--checking {
    color: #663c00;
    background-color: #fff3e0;
    border-color: #ffcc80;
}

.wses-notice--checking .wses-spinner {
    border-color: #e65100;
    border-top-color: transparent;
}

.wses-spinner {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 2px solid #e65100;
    border-top-color: transparent;
    border-radius: 50%;
    animation: wses-spin 0.8s linear infinite;
}

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

/* Success — green */
.wses-notice--success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

/* Error — red */
.wses-notice--error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f1aeb5;
}

/* Typo suggestion — amber (distinct from checking/error/success) */
.wses-notice--suggestion {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffe69c;
}

.wses-suggestion-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
}

.wses-suggestion-text {
    margin: 0;
    flex: 1 1 auto;
}

.wses-suggestion-email {
    font-weight: 600;
}

.wses-replace-suggestion {
    flex-shrink: 0;
    margin: 0;
    padding: 6px 14px;
    border: 1px solid #664d03;
    border-radius: 4px;
    background-color: #664d03;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}

.wses-replace-suggestion:hover,
.wses-replace-suggestion:focus {
    background-color: #453404;
    border-color: #453404;
    color: #fff;
}

.wses-replace-suggestion:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.wses-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (prefers-contrast: more) {
    .wses-notice {
        border-width: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wses-notice {
        transition: none;
    }

    .wses-spinner {
        animation: none;
        border-top-color: #e65100;
        opacity: 0.75;
    }
}

@media (max-width: 768px) {
    .wses-notice {
        font-size: 16px;
    }

    .wses-replace-suggestion {
        min-height: 44px;
        padding: 10px 16px;
    }
}
