/**
 * C4L Geo Banner Styles
 *
 * Styles for the geo-targeted banner, including base, responsive,
 * and accessibility states.
 */

/* Main banner container */
.c4l-geo-banner {
    position: sticky;
    top: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background-color: #1e3a6e; /* Brand dark blue */
    color: #ffffff;
    gap: 15px;
    flex-wrap: wrap;
}

/* Animation class added by JavaScript */
.c4l-geo-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Text inside the banner */
.c4l-geo-banner__text {
    margin: 0;
    padding: 0;
    font-size: 13px;
}

/* Short text version, hidden by default */
.c4l-geo-banner__text > span.c4l-geo-banner__short-text {
	display: none;
}

/* Call-to-action button */
.c4l-geo-banner-button {
    display: inline-block;
    padding: 5px 16px;
    background-color: #00a1c5; /* Brand light blue */
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

/* Button hover state */
.c4l-geo-banner-button:hover {
    background-color: #bd144f; /* Brand magenta */
    color: #ffffff;
}

/* Close icon button */
.c4l-geo-banner-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    opacity: 0.7;
    cursor: pointer;
    padding: 0 8px; /* Improves click/tap target size */
}

/* Close icon hover state */
.c4l-geo-banner-close:hover {
    opacity: 1;
}

/* Responsive styles for smaller screens (tablets/mobile) */
@media only screen and (max-width: 810px) {
    /* Show the short text */
    .c4l-geo-banner__text > span.c4l-geo-banner__short-text {
        display: inline;
    }

    /* Hide the long text */
    .c4l-geo-banner__text > span.c4l-geo-banner__long-text {
        display: none;
    }

    /* Adjust button padding */
    .c4l-geo-banner-button {
        padding: 3px 16px;
    }
}