/**
 * GrandLiga self-hosted cookie consent v1.2.0
 * Desktop banner + mobile bottom sheet. No external assets.
 */

.glc-root {
    --glc-navy: #19374e;
    --glc-dark: #12273a;
    --glc-teal: #238174;
    --glc-teal-dark: #196960;
    --glc-muted: #677584;
    --glc-line: #d8e0e8;
    --glc-soft: #f6f9fb;
    --glc-card: #ffffff;
    --glc-focus: #84c8bd;
    --glc-visual-height: 100dvh;
    --glc-visual-top: 0px;
    position: relative;
    z-index: 2147483000;
    color: var(--glc-dark);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
}

.glc-root[hidden],
.glc-root [hidden] {
    display: none !important;
}

.glc-root,
.glc-root *,
.glc-root *::before,
.glc-root *::after {
    box-sizing: border-box;
}

.glc-banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    left: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    width: min(1180px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 24px 26px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(216, 224, 232, 0.96);
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(18, 39, 58, 0.20), 0 5px 18px rgba(18, 39, 58, 0.09);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    isolation: isolate;
}

.glc-banner::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--glc-teal), var(--glc-navy));
    content: "";
}

.glc-banner__copy {
    min-width: 0;
}

.glc-eyebrow {
    margin: 0 0 5px !important;
    color: var(--glc-teal-dark) !important;
    font: inherit;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.glc-title,
.glc-modal__title {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--glc-navy) !important;
    font: inherit;
    font-size: clamp(20px, 1.6vw, 25px) !important;
    font-weight: 700 !important;
    line-height: 1.22 !important;
    letter-spacing: -0.015em;
    text-align: left !important;
    text-transform: none !important;
}

.glc-message {
    max-width: 760px;
    margin: 9px 0 0 !important;
    padding: 0 !important;
    color: #526474 !important;
    font: inherit;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    text-align: left !important;
}

.glc-policy-link {
    display: inline-flex;
    align-items: center;
    margin-top: 9px;
    color: var(--glc-teal-dark) !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.4 !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(25, 105, 96, 0.42) !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px;
}

.glc-policy-link:hover {
    color: var(--glc-navy) !important;
}

.glc-banner__actions,
.glc-modal__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.glc-button {
    appearance: none;
    min-height: 46px;
    margin: 0 !important;
    padding: 11px 18px !important;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center;
    text-decoration: none;
    text-transform: none !important;
    white-space: nowrap;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.glc-button:hover {
    transform: translateY(-1px);
}

.glc-button--primary {
    color: #ffffff !important;
    background: var(--glc-teal) !important;
    border-color: var(--glc-teal) !important;
    box-shadow: 0 8px 20px rgba(35, 129, 116, 0.22);
}

.glc-button--primary:hover {
    background: var(--glc-teal-dark) !important;
    border-color: var(--glc-teal-dark) !important;
    box-shadow: 0 10px 24px rgba(25, 105, 96, 0.25);
}

.glc-button--secondary {
    color: var(--glc-navy) !important;
    background: #ffffff !important;
    border-color: #bfcdd7 !important;
}

.glc-button--secondary:hover {
    background: var(--glc-soft) !important;
    border-color: #91a6b5 !important;
}

.glc-button--plain {
    color: var(--glc-teal-dark) !important;
    background: transparent !important;
    border-color: transparent !important;
}

.glc-button--plain:hover {
    background: #eef8f6 !important;
}

.glc-button:focus-visible,
.glc-close:focus-visible,
.glc-revisit:focus-visible,
.glc-switch input:focus-visible + .glc-switch__track,
.glc-policy-link:focus-visible {
    outline: 3px solid var(--glc-focus) !important;
    outline-offset: 3px;
}

.glc-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: auto;
    background: rgba(9, 23, 34, 0.56);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.glc-modal {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(670px, 100%);
    max-height: min(780px, calc(100dvh - 48px));
    overflow: hidden;
    background: var(--glc-card);
    border: 1px solid rgba(216, 224, 232, 0.96);
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(9, 23, 34, 0.30);
}

.glc-modal__header {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 25px 27px 20px;
    border-bottom: 1px solid var(--glc-line);
}

.glc-modal__title {
    font-size: 25px !important;
}

.glc-close {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0 !important;
    padding: 0 !important;
    appearance: none;
    background: var(--glc-soft) !important;
    border: 1px solid var(--glc-line) !important;
    border-radius: 50%;
    cursor: pointer;
}

.glc-close span::before,
.glc-close span::after {
    position: absolute;
    top: 20px;
    left: 12px;
    width: 17px;
    height: 2px;
    background: var(--glc-navy);
    border-radius: 2px;
    content: "";
}

.glc-close span::before {
    transform: rotate(45deg);
}

.glc-close span::after {
    transform: rotate(-45deg);
}

.glc-modal__body {
    min-height: 0;
    padding: 22px 27px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.glc-modal__intro {
    margin: 0 0 18px !important;
    color: #526474 !important;
    font: inherit;
    font-size: 14px !important;
    line-height: 1.58 !important;
}

.glc-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    margin-top: 11px;
    padding: 18px 19px;
    background: #ffffff;
    border: 1px solid var(--glc-line);
    border-radius: 18px;
}

.glc-category--locked {
    background: #f7fcfb;
    border-color: #cbe1dd;
}

.glc-category__copy h3,
.glc-category__copy label {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--glc-navy) !important;
    font: inherit;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}

.glc-category__copy p {
    margin: 5px 0 0 !important;
    padding: 0 !important;
    color: var(--glc-muted) !important;
    font: inherit;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.glc-always-active {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    color: var(--glc-teal-dark);
    background: #e7f4f1;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.glc-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    cursor: pointer;
}

.glc-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
    white-space: nowrap;
}

.glc-switch__track {
    position: relative;
    display: block;
    width: 50px;
    height: 29px;
    background: #aebbc5;
    border-radius: 999px;
    transition: background-color 0.18s ease;
}

.glc-switch__track span {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 21px;
    height: 21px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(18, 39, 58, 0.22);
    transition: transform 0.18s ease;
}

.glc-switch input:checked + .glc-switch__track {
    background: var(--glc-teal);
}

.glc-switch input:checked + .glc-switch__track span {
    transform: translateX(21px);
}

.glc-policy-link--modal {
    margin-top: 18px;
}

.glc-modal__footer {
    position: relative;
    z-index: 2;
    padding: 18px 27px 22px;
    background: var(--glc-soft);
    border-top: 1px solid var(--glc-line);
}

.glc-revisit {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff;
    background: var(--glc-navy) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    border-radius: 50%;
    box-shadow: 0 9px 24px rgba(18, 39, 58, 0.26);
    cursor: pointer;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.glc-revisit:hover {
    background: var(--glc-teal-dark) !important;
    box-shadow: 0 11px 28px rgba(18, 39, 58, 0.30);
    transform: translateY(-1px);
}

.glc-revisit svg {
    width: 26px;
    height: 26px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
}

body.glc-modal-open {
    overflow: hidden !important;
}

@media (max-width: 980px) {
    .glc-banner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .glc-banner__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .glc-root {
        font-size: 15px;
    }

    .glc-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
        display: block;
        width: auto;
        max-height: calc(100dvh - 20px);
        margin: 0;
        padding: 21px 19px 18px;
        overflow-y: auto;
        border-radius: 22px;
        box-shadow: 0 22px 60px rgba(18, 39, 58, 0.24), 0 4px 14px rgba(18, 39, 58, 0.10);
    }

    .glc-banner::before {
        right: 0;
        bottom: auto;
        width: auto;
        height: 4px;
        background: linear-gradient(90deg, var(--glc-teal), var(--glc-navy));
    }

    .glc-eyebrow {
        font-size: 11px !important;
    }

    .glc-title {
        font-size: 21px !important;
    }

    .glc-message {
        margin-top: 8px !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .glc-policy-link {
        margin-top: 8px;
        font-size: 12px !important;
    }

    .glc-banner__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 17px;
    }

    .glc-banner__actions .glc-button--primary {
        grid-row: 1;
    }

    .glc-banner__actions .glc-button--secondary {
        grid-row: 2;
    }

    .glc-banner__actions .glc-button--plain {
        grid-row: 3;
    }

    .glc-button {
        width: 100%;
        min-height: 46px;
        padding: 11px 15px !important;
    }

    .glc-overlay {
        inset: auto 0 auto;
        top: var(--glc-visual-top, 0px);
        width: 100%;
        height: var(--glc-visual-height, 100dvh);
        align-items: end;
        padding: 8px 8px calc(12px + env(safe-area-inset-bottom));
        overflow: hidden;
    }

    .glc-modal {
        width: 100%;
        height: calc(var(--glc-visual-height, 100dvh) - 20px - env(safe-area-inset-bottom));
        max-height: calc(var(--glc-visual-height, 100dvh) - 20px - env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 24px 24px 0 0;
    }

    .glc-modal__header {
        padding: 21px 18px 17px;
    }

    .glc-modal__title {
        font-size: 22px !important;
    }

    .glc-close {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .glc-close span::before,
    .glc-close span::after {
        top: 19px;
        left: 11px;
    }

    .glc-modal__body {
        min-height: 0;
        max-height: none;
        padding: 18px 16px 20px;
    }

    .glc-modal__intro {
        margin-bottom: 14px !important;
        font-size: 13px !important;
    }

    .glc-category {
        gap: 13px;
        padding: 15px;
        border-radius: 16px;
    }

    .glc-category__copy p {
        font-size: 12px !important;
    }

    .glc-always-active {
        max-width: 88px;
        white-space: normal;
    }

    .glc-modal__footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    }

    .glc-modal__footer .glc-button--primary {
        grid-row: 1;
    }

    .glc-modal__footer .glc-button--secondary {
        grid-row: 2;
    }

    .glc-revisit {
        bottom: calc(14px + env(safe-area-inset-bottom));
        left: 14px;
        width: 44px;
        height: 44px;
    }

    .glc-revisit svg {
        width: 24px;
        height: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .glc-root *,
    .glc-root *::before,
    .glc-root *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}


/* GrandLiga 2026-08-28: cookie preferences remain available in the side menu.
   Hide only the persistent floating revisit shield on desktop and mobile. */
.glc-revisit {
    display: none !important;
}
