.web-avisos-root {
    position: fixed;
    inset: 0;
    z-index: 10850;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(7, 36, 76, 0.5);
    backdrop-filter: blur(3px);
}

.web-avisos-root[hidden] {
    display: none !important;
}

.web-avisos-card {
    display: flex;
    flex-direction: column;
    width: min(520px, calc(100vw - 32px));
    min-width: min(280px, calc(100vw - 32px));
    height: auto;
    max-height: calc(100vh - 48px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(7, 36, 76, 0.22);
    border: 1px solid rgba(9, 45, 73, 0.1);
    overflow: hidden;
    animation: webAvisosIn 0.28s ease;
}

.web-avisos-card--compact {
    width: auto;
    max-width: min(520px, calc(100vw - 32px));
}

.web-avisos-card--info { border-top: 4px solid #1aa0c7; }
.web-avisos-card--aviso { border-top: 4px solid #f0ad4e; }
.web-avisos-card--promo { border-top: 4px solid #5cb85c; }

.web-avisos-card__head {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 10px;
    border-bottom: 1px solid rgba(9, 45, 73, 0.06);
}

.web-avisos-card__kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1aa0c7;
}

.web-avisos-card--aviso .web-avisos-card__kicker { color: #d58512; }
.web-avisos-card--promo .web-avisos-card__kicker { color: #449d44; }

.web-avisos-card__title {
    margin: 4px 0 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0c2740;
    line-height: 1.3;
}

.web-avisos-card__close {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #5d7386;
    font-size: 22px;
    line-height: 1;
    padding: 0 2px;
    cursor: pointer;
}

.web-avisos-card__body {
    flex: 0 1 auto;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 14px 18px;
    color: #243848;
    font-size: 0.98rem;
    line-height: 1.55;
}

.web-avisos-card__body.is-scrollable {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.web-avisos-card__body--rich {
    white-space: normal;
}

.web-avisos-card__body--rich p {
    margin: 0 0 0.65rem;
}

.web-avisos-card__body--rich p:last-child {
    margin-bottom: 0;
}

.web-avisos-card__body--rich img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.65rem auto 0;
    border-radius: 8px;
}

.web-avisos-card__body--rich ul,
.web-avisos-card__body--rich ol {
    margin: 0 0 0.65rem 1.1rem;
    padding: 0;
}

.web-avisos-card__footer {
    flex: 0 0 auto;
    padding: 10px 18px 14px;
    background: #f8fbfd;
    border-top: 1px solid rgba(9, 45, 73, 0.08);
}

.web-avisos-card__timer-row.is-manual .web-avisos-card__progress {
    display: none;
}

.web-avisos-card__timer-row.is-manual .web-avisos-card__timer-label {
    flex: 1 1 auto;
    text-align: center;
    color: #0c2740;
}

.web-avisos-card__timer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.web-avisos-card__timer-label {
    font-size: 12px;
    font-weight: 600;
    color: #5d7386;
    white-space: nowrap;
}

.web-avisos-card__progress {
    flex: 1 1 auto;
    height: 6px;
    background: rgba(9, 45, 73, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.web-avisos-card__progress > span {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #1aa0c7, #0a2f57);
    transform-origin: left center;
    transform: scaleX(1);
    transition: transform 0.08s linear;
}

.web-avisos-card--aviso .web-avisos-card__progress > span {
    background: linear-gradient(90deg, #f0ad4e, #d58512);
}

.web-avisos-card--promo .web-avisos-card__progress > span {
    background: linear-gradient(90deg, #5cb85c, #3d8b3d);
}

.web-avisos-card__actions {
    display: flex;
    justify-content: flex-end;
}

.web-avisos-card__actions button {
    border: 0;
    border-radius: 999px;
    background: #0a2f57;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 9px 18px;
    cursor: pointer;
}

@keyframes webAvisosIn {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 575px) {
    .web-avisos-root {
        padding: 16px 12px;
    }

    .web-avisos-card,
    .web-avisos-card--compact {
        width: calc(100vw - 24px);
        min-width: 0;
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 32px);
        border-radius: 14px;
    }
}
