/* Giesbus Campagnes: bar and inline block. Colours come from the campaign via custom properties. */
.gbc-bar {
    position: relative;
    z-index: 9999;
    background: var(--gbc-bg, #0b3d2e);
    color: var(--gbc-fg, #fff);
    font-size: 15px;
    line-height: 1.4;
}

.gbc-bar--bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .15);
}

.gbc-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    text-align: center;
}

.gbc-bar__inner--closable {
    padding-right: 52px;
}

.gbc-bar__text {
    color: inherit;
}

.gbc-bar__btn,
.gbc-inline__btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    background: var(--gbc-btn-bg, #fff);
    color: var(--gbc-btn-fg, #0b3d2e);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.gbc-bar__btn:hover,
.gbc-inline__btn:hover {
    text-decoration: underline;
}

.gbc-bar__close {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.gbc-bar__btn:focus-visible,
.gbc-bar__close:focus-visible,
.gbc-inline a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.gbc-inline {
    margin: 1.5em 0;
    padding: 16px 20px;
    border-radius: 6px;
    background: var(--gbc-bg, #0b3d2e);
    color: var(--gbc-fg, #fff);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
}

.gbc-inline[hidden] {
    display: none;
}

.gbc-inline__text {
    margin: 0;
    color: inherit;
}

.gbc-inline__image {
    display: block;
    width: 100%;
}

.gbc-inline__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.gbc-inline:has(.gbc-inline__image) {
    padding: 0;
    background: none;
}

@media print {
    .gbc-bar {
        display: none;
    }
}
