/**
 * DGOJ responsible-gambling warning.
 * Desktop matches the left side of the approved preview (compact, bottom-right).
 * Mobile matches the right side (same message, centred on the bottom safe area).
 */

.rg-warning {
    position: fixed;
    z-index: 1000;
    box-sizing: border-box;
    right: 12px;
    bottom: 12px;
    left: auto;
    width: 300px;
    height: auto;
    margin: 0;
    padding: 0;
    border: 2px solid #ffffff;
    background: #ffffff;
    line-height: 0;
    pointer-events: none;
}

.rg-warning__image {
    display: block;
    width: 100%;
    height: auto;
}

.rg-warning__link,
.rg-warning__link:hover,
.rg-warning__link:visited,
.rg-warning__link:active {
    display: block;
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
}

.rg-warning__link:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .rg-warning {
        right: auto;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
        left: 50%;
        width: min(250px, calc(100vw - 64px));
        max-width: 250px;
        transform: translateX(-50%);
    }

    body {
        padding-bottom: calc(200px + env(safe-area-inset-bottom, 0px));
        background-color: #121212;
    }
}

@media (min-width: 768px) {
    body {
        background-color: #121212;
    }

    .footer {
        padding-bottom: 12px;
    }
}
