.la-notif-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.la-notif-container {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

/* Header */

.la-notif-header {
    position: relative;
    padding: 22px 60px 18px 24px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.la-notif-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}

.la-notif-close-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    color: #9ca3af;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.la-notif-close-x:hover {
    background-color: #f3f4f6;
    color: #374151;
}

/* Body */

.la-notif-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1 1 auto;
    color: #374151;
    font-size: 18px;
    line-height: 1.65;
    -webkit-overflow-scrolling: touch;
}

.la-notif-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

.la-notif-body p {
    margin-top: 0;
    margin-bottom: 12px;
}

.la-notif-body p:last-child {
    margin-bottom: 0;
}

.la-notif-body a {
    color: #2563eb;
    text-decoration: underline;
}

.la-notif-body a:hover {
    color: #1d4ed8;
}

/* Footer */

.la-notif-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 12px;
    flex-wrap: wrap;
}

.la-notif-btn-close {
    padding: 9px 28px;
    background-color: #4b5563;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.la-notif-btn-close:hover {
    background-color: #374151;
}

/* CTA Button */

.la-notif-btn-cta {
    padding: 9px 28px;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.la-notif-btn-cta:hover {
    background-color: #1d4ed8;
}

/* Image layout */

.la-notif-image {
    overflow: hidden;
    flex-shrink: 0;
}

.la-notif-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Desktop: image left, content right (>980px) */

@media (min-width: 981px) {
    .la-notif-container.has-image {
        flex-direction: row;
        max-width: 900px;
    }

    .la-notif-container.has-image .la-notif-image {
        width: 300px;
        border-radius: 10px 0 0 10px;
    }

    .la-notif-container.has-image .la-notif-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .la-notif-container.has-image .la-notif-body {
        flex: 1 1 auto;
    }
}

/* Mobile: image top, content below (<=980px) */

@media (max-width: 980px) {
    .la-notif-container.has-image {
        flex-direction: column;
    }

    .la-notif-container.has-image .la-notif-image {
        width: 100%;
        height: 200px;
        border-radius: 10px 10px 0 0;
    }

    .la-notif-container.has-image .la-notif-content {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .la-notif-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .la-notif-container {
        max-width: 95%;
        width: 95%;
        max-height: 92vh;
        border-radius: 12px 12px 8px 8px;
    }

    .la-notif-header {
        padding: 18px 52px 14px 16px;
    }

    .la-notif-title {
        font-size: 17px;
    }

    .la-notif-body {
        padding: 16px;
        font-size: 14px;
    }

    .la-notif-footer {
        padding: 12px 16px;
    }

    .la-notif-btn-close,
    .la-notif-btn-cta {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 11px 20px;
    }
}
