/* === Custom Alert Box Patterns === */

/* Basic Alert Box - RTL Support */
.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
    background-color: #fef3cd;
    border: 1px solid #ffeaa7;
    border-right: 4px solid #f39c12;
    border-radius: 0.5rem;
    font-family: inherit;
    line-height: 1.8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    direction: rtl;
    text-align: right;
}

/*
 * The order property places the icon on the right side in an RTL layout.
 */
.alert-box__icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.125rem;
    order: 1; /* This places the icon first (on the right) */
}

/*
 * The order property places the text content to the left of the icon.
 */
.alert-box__content {
    flex: 1;
    color: #856404;
    font-size: 1rem;
    order: 2; /* This places the content second (on the left) */
}

.alert-box__content p {
    margin: 0 0 0.75rem 0;
}

.alert-box__content p:last-child {
    margin-bottom: 0;
}

.alert-box__content strong {
    font-weight: 600;
}

/* Info Alert Box - RTL Support */
.alert-box--info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    border-right-color: #17a2b8;
}

.alert-box--info .alert-box__content {
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    .alert-box {
        padding: 1rem;
        gap: 0.75rem;
        margin: 1rem 0;
    }
    
    .alert-box__icon {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .alert-box__content {
        font-size: 0.95rem;
    }
}