/* Responsible gambling warnings — loaded only on pages with the feature enabled.
   Styling follows the regulator (DGOJ) examples: white box, thick black border,
   bold black Arial/Helvetica, centred. */

:root {
    --vmg-rg-font: Arial, Helvetica, sans-serif;
    --vmg-rg-ink: #000000;
    --vmg-rg-paper: #ffffff;
    --vmg-rg-footer-border: #f7941d;
}

.vmg-rg-text a {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: 700;
}

.vmg-rg-main,
.vmg-rg-line {
    font-family: var(--vmg-rg-font);
    font-weight: 700;
    color: var(--vmg-rg-ink);
}

.vmg-rg-banner {
    position: fixed;
    inset: 0;
    /* Above page content and Elementor popups (9999), below the age gate (99999999). */
    z-index: 99999990;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.vmg-rg-banner.is-open {
    display: flex !important;
}

.vmg-rg-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.vmg-rg-banner__box {
    position: relative;
    box-sizing: border-box;
    width: min(90vw, max(520px, 42vw));
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: var(--vmg-rg-paper);
    color: var(--vmg-rg-ink);
    border: 12px solid var(--vmg-rg-ink);
    text-align: center;
    overflow: hidden;
    font-family: var(--vmg-rg-font);
}

.vmg-rg-banner__title {
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.vmg-rg-banner__text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vmg-rg-banner__text .vmg-rg-main {
    margin: 0 auto 18px;
    font-size: clamp(1.5rem, 6vw, 2.1rem);
    line-height: 1.25;
}

.vmg-rg-banner__text .vmg-rg-line {
    font-size: clamp(0.85rem, 3.4vw, 1rem);
    line-height: 1.9;
}

.vmg-rg-banner__x {
    position: absolute;
    top: 2px;
    right: 6px;
    background: none;
    border: 0;
    padding: 4px 8px;
    color: var(--vmg-rg-ink);
    font-family: var(--vmg-rg-font);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.vmg-rg-banner__button {
    margin-top: 18px;
    background: var(--vmg-rg-ink);
    color: var(--vmg-rg-paper);
    border: 0;
    padding: 8px 22px;
    font-family: var(--vmg-rg-font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* Auto-close countdown */
.vmg-rg-banner__progress {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 10px;
    height: 3px;
    width: auto;
    border-radius: 2px;
    background: #c8c8c8;
    transform-origin: left center;
    transform: scaleX(1);
}

.vmg-rg-banner__progress.is-running {
    animation-name: vmgRgCountdown;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes vmgRgCountdown {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

html.vmg-rg-banner-open,
html.vmg-rg-banner-open body {
    overflow: hidden;
}

/* ================= Strip / band (signup popup, offer cards) ================= */
.vmg-rg-strip {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--vmg-rg-paper);
    border: 6px solid var(--vmg-rg-ink);
    text-align: center;
    flex-shrink: 0;
}

.vmg-rg-strip .vmg-rg-main {
    max-width: 100%;
    font-size: 20px;
    line-height: 1.2;
}

.vmg-rg-strip .vmg-rg-line {
    font-size: 13px;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .vmg-rg-strip .vmg-rg-main {
        font-size: 16px;
    }

    .vmg-rg-strip .vmg-rg-line {
        font-size: 11px;
    }
}

.vmg-rg-offer {
    margin: 10px 0 -12px;
    padding: 2px 10px;
    gap: 0;
    border-width: 3px;
}

.vmg-rg-offer .vmg-rg-main {
    font-size: 13px;
    line-height: 1.15;
}

.vmg-rg-offer .vmg-rg-line {
    font-size: 10px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .vmg-rg-offer {
        margin-bottom: -16px;
    }

    .vmg-rg-offer .vmg-rg-main {
        font-size: 15px;
    }

    .vmg-rg-offer .vmg-rg-line {
        font-size: 11px;
    }
}

.vmg-rg-footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 32px;
    padding: 0 16px;
}

.vmg-rg-footer-box {
    box-sizing: border-box;
    max-width: 280px;
    padding: 6px 12px;
    background: var(--vmg-rg-paper);
    border: 4px solid var(--vmg-rg-footer-border);
    text-align: center;
}

.vmg-rg-footer-box .vmg-rg-main {
    font-size: 13px;
    line-height: 1.25;
}

.vmg-rg-footer-box .vmg-rg-line {
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.3;
}

.vmg-rg-footer-logo img {
    display: block;
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.vmg-rg-footer-link {
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline !important;
}
