.praxis-alerts-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto 2rem auto; /* Top margin reduced to 0 to bring it closer to the banner */
    max-width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.praxis-alerts-container *, .praxis-alerts-container *::before, .praxis-alerts-container *::after {
    box-sizing: inherit;
}

@media (min-width: 768px) {
    .praxis-alerts-container {
        max-width: 70%;
    }
}


.praxis-alert-item {
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: transparent;
}

.praxis-alert-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.praxis-alert-header {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    font-family: inherit;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
    gap: 1rem;
}

.praxis-alert-header:focus {
    outline: 2px solid rgba(0,0,0,0.2);
    outline-offset: 2px;
}

.praxis-alert-title-wrap {
    display: flex;
    align-items: flex-end; /* Aligns the bottom edge of icon and text */
    gap: 1rem;
    flex: 1 1 auto;
    min-width: 0;
}

.praxis-alert-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.praxis-alert-title {
    margin: 0;
    font-size: 1.35rem; /* Increased size */
    font-weight: 600;
    line-height: 1.4;
}

.praxis-alert-chevron {
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.praxis-alert-header[aria-expanded="true"] .praxis-alert-chevron {
    transform: rotate(180deg);
}

.praxis-alert-content-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}

.praxis-alert-item[data-expanded="true"] .praxis-alert-content-wrap {
    grid-template-rows: 1fr;
}

.praxis-alert-content {
    overflow: hidden;
    padding: 0 1.5rem;
    color: inherit; /* Inherits the title color so it matches the dark background */
    background-color: transparent; /* Lets the background image/color show through */
    font-size: 1rem;
    line-height: 1.6;
}

.praxis-alert-item.has-icon .praxis-alert-content {
    padding-left: calc(1.5rem + 32px + 1rem); /* Aligns with text instead of icon */
}

.praxis-alert-item[data-expanded="true"] .praxis-alert-content {
    padding-bottom: 1.5rem;
    /* optional: add top padding if you want spacing from title */
    /* padding-top: 1rem; */
}

/* Rich Text formatting within the content */
.praxis-alert-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

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

.praxis-alert-content strong,
.praxis-alert-content b {
    font-weight: bold;
}

.praxis-alert-content a {
    color: inherit;
    text-decoration: underline;
    white-space: nowrap; /* Prevents links from breaking */
}

.praxis-alert-content ul, 
.praxis-alert-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
