/* ── MESSAGES ── */

.messages-container {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 680px;
    max-width: calc(100vw - 40px);
    pointer-events: none;
}

.develo-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    border-radius: 999px;
    border: 1.5px solid;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    animation: develo-slide-down 0.25s ease;
    pointer-events: all;
    width: 100%;
}

/* ── INFO (default / neutral) ── */
.develo-alert-info {
    background: #f8fafc;
    border-color: #002E45;
}

.develo-alert-info .develo-alert-icon {
    color: #002E45;
    font-size: 20px;
}

.develo-alert-info .develo-alert-text {
    color: #002E45;
}

.develo-alert-info .develo-alert-close {
    color: #002E45;
}

/* ── SUCCESS ── */
.develo-alert-success {
    background: #f0fff4;
    border-color: #4cde6e;
}

.develo-alert-success .develo-alert-icon {
    color: #22c55e;
    font-size: 20px;
}

.develo-alert-success .develo-alert-text {
    color: #166534;
}

.develo-alert-success .develo-alert-close {
    color: #22c55e;
}

/* ── WARNING ── */
.develo-alert-warning {
    background: #ffffff;
    border-color: #FFA630;
}

.develo-alert-warning .develo-alert-icon {
    color: #FFA630;
    font-size: 20px;
}

.develo-alert-warning .develo-alert-text {
    color: #FFA630;
}

.develo-alert-warning .develo-alert-close {
    color: #FFA630;
}

/* ── ERROR ── */
.develo-alert-error {
    background: #fdf3f3;
    border-color: #e08080;
}

.develo-alert-error .develo-alert-icon {
    color: #c0392b;
    font-size: 20px;
}

.develo-alert-error .develo-alert-text {
    color: #7b1c1c;
}

.develo-alert-error .develo-alert-close {
    color: #c0392b;
}

/* ── SHARED ELEMENTS ── */
.develo-alert-icon {
    flex-shrink: 0;
    line-height: 1;
}

.develo-alert-text {
    flex: 1;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
}

.develo-alert-close {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 2px 4px;
    font-size: 13px;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.15s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.develo-alert-close:hover {
    opacity: 1;
}

/* ── ANIMATION ── */
@keyframes develo-slide-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── MOBILE ── */
@media (max-width: 576px) {
    .messages-container {
        position: relative;  /* flows with the page instead of floating */
        top: unset;
        left: unset;
        right: unset;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 8px 12px 0 12px;
        gap: 6px;
    }

    .develo-alert {
        border-radius: 12px;
        padding: 10px 14px;
    }
}

/* ── TABLET ── */
@media (min-width: 577px) and (max-width: 992px) {
    .messages-container {
        position: relative;
        top: unset;
        left: unset;
        right: unset;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 8px 16px 0 16px;
        gap: 8px;
    }

    .develo-alert {
        border-radius: 16px;
        padding: 12px 18px;
    }
}

/* ── SMALL LAPTOP / LARGE TABLET (993px - 1280px) ── */
@media (min-width: 993px) and (max-width: 1280px) {
    .messages-container {
        position: relative;
        top: unset;
        left: unset;
        right: unset;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 8px 16px 0 16px;
        gap: 8px;
    }

    .develo-alert {
        border-radius: 999px;
        padding: 13px 20px;
    }
}