/* =========================================================
   TVO PORTAL – COOKIE CONSENT
   Center modal + sløret baggrund
========================================================= */

.tvo-cookie {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
    box-sizing: border-box;
}

.tvo-cookie[hidden] {
    display: none !important;
}

.tvo-cookie__panel {
    width: min(100%, 680px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.2rem 1.25rem;
    border: 1px solid rgba(210, 215, 217, 0.95);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.20);
    pointer-events: auto;
    box-sizing: border-box;
}

.tvo-cookie__header {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.tvo-cookie__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 2.6rem;
    border-radius: 14px;
    background: rgba(245, 106, 106, 0.12);
    color: #f56a6a;
    font-size: 1.05rem;
}

.tvo-cookie__label {
    margin: 0 0 0.12rem 0 !important;
    color: #f56a6a !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.tvo-cookie h2 {
    margin: 0;
    color: #3d4449;
    font-size: 1.25rem;
    line-height: 1.2;
}

.tvo-cookie__body p {
    margin: 0 0 1rem 0;
    color: #6b7280;
    font-size: 0.98rem;
    line-height: 1.55;
}

.tvo-cookie__settings {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.95rem;
}

.tvo-cookie__option {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.85rem 0.95rem;
    margin: 0;
    border: 1px solid rgba(210, 215, 217, 0.9);
    border-radius: 14px;
    background: #f8fafc;
    cursor: pointer;
    user-select: none;
}

.tvo-cookie__option:hover {
    border-color: rgba(245, 106, 106, 0.45);
    background: #ffffff;
}

.tvo-cookie__option--required,
.tvo-cookie__option--required:hover {
    opacity: 0.75;
    cursor: not-allowed;
    border-color: rgba(210, 215, 217, 0.9);
    background: #f8fafc;
}

.tvo-cookie .tvo-cookie__option input[type="checkbox"] {
    position: static !important;
    display: inline-block !important;
    float: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0.18rem 0 0 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    z-index: auto !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    cursor: pointer !important;
}

.tvo-cookie .tvo-cookie__option input[type="checkbox"]:disabled {
    cursor: not-allowed !important;
}

.tvo-cookie__option strong {
    display: block;
    color: #3d4449;
    font-size: 1rem;
    line-height: 1.2;
}

.tvo-cookie__option small {
    display: block;
    margin-top: 0.12rem;
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.35;
}

.tvo-cookie__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.tvo-cookie .tvo-cookie__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    min-width: 135px;
    padding: 0 1.1rem;
    margin: 0;
    border: 0 !important;
    border-radius: 999px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    text-indent: 0 !important;
    overflow: visible !important;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: none;
}

.tvo-cookie .tvo-cookie__btn:hover {
    transform: translateY(-1px);
}

.tvo-cookie .tvo-cookie__btn--primary,
.tvo-cookie .tvo-cookie__btn--primary:hover,
.tvo-cookie .tvo-cookie__btn--primary:focus {
    background: #f56a6a !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(245, 106, 106, 0.24) !important;
}

.tvo-cookie .tvo-cookie__btn--primary:hover {
    background: #f67878 !important;
}

.tvo-cookie .tvo-cookie__btn--secondary,
.tvo-cookie .tvo-cookie__btn--secondary:hover,
.tvo-cookie .tvo-cookie__btn--secondary:focus {
    background: #3d4449 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.tvo-cookie .tvo-cookie__btn--secondary:hover {
    background: #50585f !important;
}

.tvo-cookie .tvo-cookie__btn--ghost,
.tvo-cookie .tvo-cookie__btn--ghost:hover,
.tvo-cookie .tvo-cookie__btn--ghost:focus {
    background: #ffffff !important;
    color: #3d4449 !important;
    box-shadow: inset 0 0 0 2px rgba(210, 215, 217, 0.95) !important;
}

.tvo-cookie .tvo-cookie__btn--ghost:hover {
    background: #f8fafc !important;
}

.tvo-cookie__footer {
    margin: 1rem 0 0 0 !important;
    color: #8a9399;
    font-size: 0.82rem;
    line-height: 1.45;
}

.tvo-cookie__footer a {
    color: #f56a6a;
}

/* =========================================================
   FOOTER COOKIE LINK
   Skal ligne tekstlink – ikke global button
========================================================= */

.tvo-cookie-settings-link {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

#footer .tvo-cookie-settings-link {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: inherit !important;
    font: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: normal !important;
    line-height: inherit !important;
    text-transform: none !important;
    cursor: pointer;
    text-decoration: underline;
}

#footer .tvo-cookie-settings-link:hover {
    color: #f56a6a !important;
}

/* =========================================================
   MOBIL
========================================================= */

@media screen and (max-width: 736px) {
    .tvo-cookie {
        padding: 0.75rem;
        align-items: center;
        justify-content: center;
    }

    .tvo-cookie__panel {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 1.5rem);
        padding: 1rem;
        border-radius: 16px;
    }

    .tvo-cookie__header {
        gap: 0.7rem;
        margin-bottom: 0.65rem;
    }

    .tvo-cookie__icon {
        width: 2.2rem;
        height: 2.2rem;
        flex-basis: 2.2rem;
        font-size: 0.95rem;
    }

    .tvo-cookie h2 {
        font-size: 1.08rem;
    }

    .tvo-cookie__body p {
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .tvo-cookie__settings {
        gap: 0.6rem;
        margin-top: 0.8rem;
    }

    .tvo-cookie__option {
        padding: 0.75rem 0.8rem;
    }

    .tvo-cookie__option strong {
        font-size: 0.95rem;
    }

    .tvo-cookie__option small {
        font-size: 0.84rem;
    }

    .tvo-cookie__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .tvo-cookie .tvo-cookie__btn {
        width: 100%;
        min-width: 0;
        min-height: 2.6rem;
    }

    .tvo-cookie__footer {
        font-size: 0.78rem;
    }
}