html.tgdent-disclaimer-locked,
body.tgdent-disclaimer-locked {
    overflow: hidden !important;
}

.tgdent-disclaimer-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
}

.tgdent-disclaimer-overlay.is-visible {
    display: flex;
}

.tgdent-disclaimer-modal {
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 30px;
    border-radius: 12px;
    background: #ffffff;
    color: #1d2327;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.tgdent-disclaimer-modal h2 {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1.2;
}

.tgdent-disclaimer-modal p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.6;
}

#tgdent-disclaimer-agree {
    display: inline-block;
    width: 100%;
    margin-top: 8px;
    padding: 14px 20px;
    border: 0;
    border-radius: 7px;
    background: #1668b2;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}

#tgdent-disclaimer-agree:hover,
#tgdent-disclaimer-agree:focus {
    background: #0f4f89;
    outline: 3px solid rgba(22, 104, 178, 0.25);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .tgdent-disclaimer-modal {
        padding: 24px 20px;
    }

    .tgdent-disclaimer-modal h2 {
        font-size: 24px;
    }
}
