/* Optional measurement preferences; no external resources or font requests. */
#tvs-consent-panel {
    box-sizing: border-box;
    position: fixed;
    z-index: 100002;
    left: 24px;
    bottom: 76px;
    width: min(620px, calc(100% - 48px));
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid #d7c4c9;
    border-top: 4px solid #792b40;
    border-radius: 14px;
    background: #fff;
    color: #30242a;
    box-shadow: 0 12px 48px rgba(48, 25, 34, .18);
    font-family: inherit;
    text-align: left;
    line-height: 1.6;
    isolation: isolate;
}

#tvs-consent-panel[hidden] {
    display: none !important;
}

#tvs-consent-panel .tvs-consent-title {
    margin: 0 58px 14px 0;
    padding: 0;
    color: #40202b;
    font-family: inherit;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.02em;
}

#tvs-consent-panel p {
    margin: 0 0 12px;
    padding: 0;
    color: #493c42;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;
}

#tvs-consent-panel .tvs-consent-detail,
#tvs-consent-panel .tvs-consent-status {
    font-size: 12px;
    line-height: 1.65;
}

#tvs-consent-panel .tvs-consent-status {
    margin-bottom: 18px;
    color: #40202b;
    font-weight: 600;
}

#tvs-consent-panel .tvs-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#tvs-consent-panel .tvs-consent-action {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    width: 100%;
    margin: 0;
    padding: 11px 16px;
    border: 1px solid #792b40;
    border-radius: 7px;
    background: #792b40;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

#tvs-consent-panel .tvs-consent-action:hover {
    background: #572033;
    border-color: #572033;
}

#tvs-consent-close {
    box-sizing: border-box;
    position: absolute;
    top: 14px;
    right: 14px;
    min-height: 36px;
    margin: 0;
    padding: 6px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #68263a;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

#tvs-consent-preferences {
    box-sizing: border-box;
    position: fixed;
    z-index: 100001;
    left: 20px;
    bottom: 18px;
    min-height: 40px;
    max-width: calc(100% - 40px);
    margin: 0;
    padding: 9px 14px;
    border: 1px solid #bda3ac;
    border-radius: 7px;
    background: #fff;
    color: #68263a;
    box-shadow: 0 3px 14px rgba(48, 25, 34, .12);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

#tvs-consent-preferences:hover,
#tvs-consent-close:hover {
    background: #f7eef1;
}

#tvs-consent-panel:focus,
#tvs-consent-panel button:focus-visible,
#tvs-consent-preferences:focus-visible {
    outline: 3px solid #245e96;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    #tvs-consent-panel {
        left: 12px;
        bottom: calc(136px + env(safe-area-inset-bottom, 0px));
        width: calc(100% - 24px);
        max-height: calc(100vh - 164px);
        padding: 22px 18px 18px;
        border-radius: 11px;
    }

    #tvs-consent-panel .tvs-consent-title {
        margin-right: 48px;
        font-size: 19px;
    }

    #tvs-consent-panel .tvs-consent-actions {
        gap: 10px;
    }

    #tvs-consent-panel .tvs-consent-action {
        padding: 11px 8px;
        font-size: 13px;
    }

    #tvs-consent-preferences {
        left: 12px;
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 340px) {
    #tvs-consent-panel .tvs-consent-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    #tvs-consent-panel,
    #tvs-consent-panel *,
    #tvs-consent-preferences {
        scroll-behavior: auto;
        transition: none;
    }
}
