.hpac-pdf-guard-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.hpac-pdf-guard-modal.is-open {
    display: block;
}

.hpac-pdf-guard-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 21, 43, 0.8);
}

.hpac-pdf-guard-panel {
    position: relative;
    width: min(92vw, 720px);
    height: min(88vh, 760px);
    margin: 4vh auto;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
}

.hpac-pdf-guard-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #102f5a;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.hpac-pdf-guard-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

html.hpac-pdf-guard-modal-open {
    overflow: hidden;
}

a.hpac-pdf-guard-link {
    display: block;
    background: #fdc91d;
    color: white;
    font-weight: bold;
    font-family: inherit;
    padding: 1rem 1.5rem;
    font-family: 'Source Sans Pro', Helvetica, Arial, Lucida, sans-serif;
    font-size: 1.9em;
    text-align: right;
    width: fit-content;
    margin-left: auto;
    margin-top: -8rem;
}

.hpac-pdf-guard-form-page {
    margin: 0;
    background: #f1f5f9;
    font-family: Arial, sans-serif;
}

.hpac-pdf-guard-form-wrap {
    box-sizing: border-box;
    max-width: 740px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    padding: 28px;
}

.hpac-pdf-guard-form-wrap h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.hpac-pdf-guard-form-wrap p {
    margin-bottom: 20px;
}

.hpac-pdf-guard-embed .hpac-pdf-guard-form-wrap {
    margin: 0;
    border-radius: 0;
    border: 0;
    max-width: none;
    min-height: 100vh;
}
