/* Top4 Marketing Notification Bar Styles */

.t4m-alert-bar {
    position: relative;
    /* Use variables for colors passed from PHP */
    background-color: var(--t4m-bg, #fbc02d);
    color: var(--t4m-text, #18181b);
    width: 100%;
    z-index: 999999;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.t4m-alert-container {
    max-width: 1600px;
    margin: 0 auto;
    /* Increased right padding prevents text from overlapping the X button */
    padding: 12px 60px 12px 20px;
    position: relative;
}

.t4m-alert-content {
    display: flex;
    align-items: center;
    justify-content: center;
    /* This centers the text */
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    /* Ensures multi-line text is also centered */
    width: 100%;
}

.t4m-alert-message p {
    margin: 0;
    font-weight: 500;
}

.t4m-alert-message a {
    color: inherit;
    text-decoration: underline;
    font-weight: 700;
    opacity: 0.85;
}

.t4m-alert-message a:hover {
    opacity: 1;
    text-decoration: none;
}

/* Position the button absolutely to the right */
.t4m-close-trigger {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 10;
}

.t4m-close-trigger:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    .t4m-alert-container {
        padding: 12px 40px 12px 20px;
        /* Less padding on small screens */
    }

    .t4m-alert-message {
        font-size: 14px;
        text-align: left;
        /* On mobile, left-align usually looks better for long text */
    }

    .t4m-alert-content {
        justify-content: flex-start;
    }
}