/* Alert Component */

.c-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--ds-space-s);
    padding: var(--ds-space-m);
    border-radius: var(--ds-radius-m);
    font-size: var(--ds-font-size-s);
    margin-bottom: var(--ds-space-m);
    position: relative;
}

.c-alert--success {
    background: var(--ds-color-status-success-weak);
    color: var(--ds-color-text-success);
    border: 1px solid var(--ds-color-border-success);
}

.c-alert--error,
.c-alert--danger {
    background: var(--ds-color-status-danger-weak);
    color: var(--ds-color-text-danger);
    border: 1px solid var(--ds-color-border-danger);
}

.c-alert--warning {
    background: var(--ds-color-status-warning-weak);
    color: var(--ds-color-text-warning);
    border: 1px solid var(--ds-color-border-warning);
}

.c-alert--info {
    background: var(--ds-color-status-info-weak);
    color: var(--ds-color-text-info);
    border: 1px solid var(--ds-color-border-info);
}

/* Alert icon */
.c-alert__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.125rem;
}

.c-alert__icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
}

/* Alert content wrapper */
.c-alert__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-xs);
}

/* Alert title */
.c-alert__title {
    margin: 0;
    font-weight: var(--ds-font-weight-semibold);
    font-size: var(--ds-font-size-s);
    line-height: 1.4;
}

/* Alert message */
.c-alert__message {
    margin: 0;
    font-size: var(--ds-font-size-s);
    line-height: 1.4;
}

/* Alert close button */
.c-alert__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    border-radius: var(--ds-radius-s);
    transition: all var(--ds-duration-fast) var(--ds-ease-out);
    margin-top: 0.125rem;
}

.c-alert__close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.c-alert__close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.c-alert__close svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
}

/* Dismissible variant */
.c-alert--dismissible {
    /* Already has close button styling */
}

