.global-alert {
    display: block;
    position: relative;
    z-index: 100;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.global-alert__content {
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
    text-align: center;
    position: relative;
    max-width: var(--width-large);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.6rem;
    padding-right: 9rem;
}

.global-alert__content p {
    margin: 0 auto;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.03em;
    max-width: 92rem;
}

.global-alert__content p a {
    color: inherit;
}

.global-alert__close {
    position: absolute;
    top: 0;
    right: 0.3rem;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    
}

.global-alert__close button {
    color: var(--color-blue);
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    display: flex;
    gap: 0.2rem;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.06em;
    align-items: center;
}

.global-alert__close button svg {
    width: 0.8rem;
    height: 0.8rem;
    color: inherit;
    margin: 0;
    padding: 0;
    position: relative;
    bottom: 1.3px;
    left: 5px;
}

.global-alert__close button svg * {
  fill: var(--color-blue);
}

.global-alert.is-hidden {
    display: none;
}

.global-alert.bg-beige-dark {
    --bg-color: var(--color-beige-dark);
    --text-color: var(--color-blue);
}

.global-alert.bg-red {
    --bg-color: var(--color-red);
    --text-color: var(--color-red-dark);
}

@media screen and (min-width: 1200px) {
    .global-alert__close {
        right: 1.5rem;
    }

    .global-alert__content {
        padding-left: 3rem;
        padding-right: 9rem;
    }
}

/* Hover */
@media (hover: hover) {
    .global-alert__content p a:hover {
        opacity: 0.9;
    }
    .global-alert__close button:hover {
        opacity: 0.9;
    }
}
