/* ABOUTME: Cooltix ticket purchase popup for the 2027 "Pipacs" pages */
/* ABOUTME: Overlay + dialog box styled to match the site; the Cooltix widget itself loads inside the iframe */

.jp-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(30, 43, 56, .78);          /* Pala, áttetsző */
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .2s ease;
}
.jp-overlay[hidden] { display: none; }
.jp-overlay.jp-open { opacity: 1; }

.jp-box {
    display: flex;
    flex-direction: column;
    width: min(760px, 100%);
    height: min(820px, 100%);
    background: #1E2B38;                          /* Pala */
    color: #F2E8D8;                               /* Papír */
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    transform: translateY(14px);
    transition: transform .2s ease;
}
.jp-open .jp-box { transform: none; }

.jp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 18px;
    border-bottom: 4px solid #E03A22;             /* Pipacs csík */
}
.jp-title {
    margin: 0;
    font-family: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 1;
    text-transform: uppercase;
    color: #F2E8D8;
}
.jp-sub {
    margin: 6px 0 0;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.3;
    color: rgba(242, 232, 216, .72);
}
.jp-nw { white-space: nowrap; }
.jp-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #F2E8D8;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.jp-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #1E2B38;
    stroke-width: 2.6;
    stroke-linecap: round;
}
.jp-close:hover { background: #F0B23A; transform: rotate(90deg); }   /* Napraforgó */
.jp-close:focus-visible { outline: 3px solid #F0B23A; outline-offset: 3px; }

.jp-body {
    position: relative;
    flex: 1;
    min-height: 0;
}
.jp-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin: 0;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 16px;
    color: rgba(242, 232, 216, .6);
}
.jp-ready .jp-loading { display: none; }
.jp-frame {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
}

.jp-foot {
    margin: 0;
    padding: 12px 24px 14px;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 14px;
    color: rgba(242, 232, 216, .65);
    border-top: 1px solid rgba(242, 232, 216, .12);
}
.jp-foot a {
    color: #F2E8D8;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.jp-foot a:hover { color: #F0B23A; }

/* Amíg nyitva van, az oldal nem görög alatta */
.jp-lock, .jp-lock body { overflow: hidden; }

/* Telefonon teljes képernyő */
@media (max-width: 600px) {
    .jp-overlay { padding: 0; }
    .jp-box {
        width: 100%;
        height: 100%;
        height: 100dvh;
        border-radius: 0;
    }
    .jp-head { padding: 16px 16px 14px; }
    .jp-title { font-size: 26px; }
    .jp-sub { font-size: 14px; }
    .jp-foot { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    .jp-overlay, .jp-box, .jp-close { transition: none; }
}
