/**
 * Notification Bar Styles
 *
 * Styles for the site-wide notification bar
 */

.medisera-notification-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    padding: 12px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.medisera-notification-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.medisera-notification-bar__content {
    flex: 1;
    line-height: 1.5;
    text-align: center;
}

.medisera-notification-bar__content p {
    margin: 0;
    padding: 0;
}

.medisera-notification-bar__content a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.medisera-notification-bar__content a:hover {
    opacity: 0.8;
}

.medisera-notification-bar__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.medisera-notification-bar__close:hover {
    opacity: 0.8;
}

.medisera-notification-bar__close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.medisera-notification-bar__close svg {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .medisera-notification-bar {
        padding: 10px 15px;
    }

    .medisera-notification-bar__inner {
        gap: 10px;
    }

    .medisera-notification-bar__content {
        font-size: 14px;
    }

    .medisera-notification-bar__close {
        width: 28px;
        height: 28px;
    }
}

/* Add space to body when notification bar is present */
body.has-notification-bar {
    padding-top: 0;
}

body.has-notification-bar .header {
    top: 0;
}

/* Adjust for sticky header if needed */
body.has-notification-bar .header.sticky {
    top: 0;
}
