.tjpp-dialog:not([open]) { display: none; }
.tjpp-dialog {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    margin: auto;
    padding: 0;
    width: min(520px, calc(100% - 32px));
    max-width: calc(100% - 32px);
    max-height: calc(100% - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #202629;
    box-shadow: 0 10px 35px rgba(0,0,0,.25);
    font-family: inherit;
    text-align: center;
    overscroll-behavior: contain;
}
.tjpp-dialog::backdrop { background: rgba(0,0,0,.55); }
.tjpp-box { position: relative; padding: 44px 28px 28px; }
.tjpp-dialog h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.3; overflow-wrap: anywhere; }
.tjpp-message { font-size: 17px; line-height: 1.6; margin-bottom: 24px; overflow-wrap: anywhere; }
.tjpp-message p { margin: 0 0 16px; }
.tjpp-message img { max-width: 100%; height: auto; }
.tjpp-dialog .tjpp-close {
    position: absolute; right: 4px; top: 2px; width: 44px; height: 44px;
    padding: 0; background: transparent; color: #202629; border: 0;
    font-size: 30px; line-height: 1; cursor: pointer;
}
.tjpp-button, .tjpp-trigger {
    background: #1f4f5f; color: #fff; border: 0; padding: 12px 26px;
    border-radius: 6px; cursor: pointer; font: inherit; line-height: 1.5;
    white-space: normal;
}
.tjpp-button:hover, .tjpp-trigger:hover { background: #163a46; color: #fff; }
.tjpp-dialog button:focus-visible, .tjpp-trigger:focus-visible { outline: 3px solid #007399; outline-offset: 3px; }
