[data-tpoe-auth-content][hidden],
[data-tpoe-auth-gate][hidden],
[data-tpoe-auth-gate][aria-hidden="true"],
.tpoe-pricing-auth-prompt[hidden] {
    display: none !important;
}

.tpoe-pricing-auth-prompt {
    background: #fff8ef;
    border: 1px solid rgba(246, 147, 31, .34);
    border-radius: 12px;
    clear: both;
    grid-column: 1 / -1;
    padding: 18px;
    text-align: center;
    width: 100%;
}

.gform_wrapper .gfield.tpoe-pricing-auth-field,
.gform_wrapper .gfield:has(> .tpoe-pricing-auth-prompt) {
    grid-column: 1 / -1 !important;
    max-width: none !important;
    width: 100% !important;
}

.tpoe-pricing-auth-prompt p {
    color: #555;
    font-size: 12px;
    line-height: 1.55;
    margin: 0 0 10px;
    white-space: nowrap;
}

.tpoe-pricing-auth-open {
    background: var(--wd-primary-color, #f6931f) !important;
    border: 0 !important;
    border-radius: var(--btn-brd-radius, 8px) !important;
    box-shadow: none !important;
    color: #fff !important;
    cursor: pointer;
    display: block !important;
    font-family: inherit;
    font-weight: 800;
    max-width: none !important;
    min-height: 48px;
    padding: 10px 22px !important;
    width: 100% !important;
}

.tpoe-pricing-auth-open:hover,
.tpoe-pricing-auth-open:focus {
    color: #fff !important;
    filter: brightness(.92);
}

.tpoe-auth-pricing[data-tpoe-auth-state="guest"] .gform_footer,
.tpoe-auth-pricing[data-tpoe-auth-state="guest"] .gform_page_footer,
.tpoe-auth-pricing[data-tpoe-auth-state="guest"] .tpoe-zinc-preview {
    display: none !important;
}

.tpoe-form-auth-gate {
    align-items: center !important;
    display: flex;
    height: 100vh !important;
    height: 100dvh !important;
    inset: 0 !important;
    isolation: isolate;
    justify-content: center !important;
    margin: 0 !important;
    max-height: none !important;
    max-width: none !important;
    overflow: auto !important;
    padding: 20px !important;
    position: fixed !important;
    transform: none !important;
    width: 100vw !important;
    z-index: 2147483640 !important;
}

.tpoe-form-auth-backdrop {
    background: rgba(20, 20, 20, .66) !important;
    inset: 0 !important;
    position: fixed !important;
    transform: none !important;
    z-index: 0 !important;
}

.tpoe-form-auth-dialog {
    margin: auto !important;
    max-height: calc(100vh - 40px) !important;
    max-height: calc(100dvh - 40px) !important;
    max-width: 560px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    position: relative !important;
    transform: none !important;
    width: 100% !important;
    z-index: 1 !important;
}

.tpoe-form-auth-dialog,
.tpoe-form-auth-dialog * {
    box-sizing: border-box !important;
}

.tpoe-form-auth-dialog > .tpmo-auth {
    margin: 0 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    width: 100% !important;
}

.tpoe-form-auth-dialog .tpmo-auth-card,
.tpoe-form-auth-dialog .tpmo-tabs,
.tpoe-form-auth-dialog .tpmo-request-form,
.tpoe-form-auth-dialog .tpmo-verify-form,
.tpoe-form-auth-dialog .tpmo-field,
.tpoe-form-auth-dialog .tpmo-phone-wrap {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
}

.tpoe-form-auth-dialog input,
.tpoe-form-auth-dialog button {
    max-width: 100% !important;
}

.tpoe-form-auth-close {
    align-items: center;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    color: #333;
    cursor: pointer;
    display: flex;
    font-size: 27px;
    height: 38px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 3px;
    position: absolute;
    right: 10px;
    top: 10px;
    transform: none !important;
    width: 38px;
    z-index: 2;
}

.tpoe-form-auth-close:hover,
.tpoe-form-auth-close:focus {
    background: #fff7ed;
    color: var(--wd-primary-color, #f6931f);
    transform: none !important;
}

.tpoe-auth-modal-open {
    overflow: hidden !important;
}

.tpoe-auth-unavailable {
    background: #fff8e7;
    border: 1px solid #f1d895;
    border-radius: 10px;
    line-height: 1.9;
    padding: 16px;
    text-align: center;
}

@media (max-width: 600px) {
    .tpoe-pricing-auth-prompt p {
        font-size: 11px;
    }

    .tpoe-form-auth-gate {
        align-items: flex-start;
        padding: 10px;
    }

    .tpoe-form-auth-dialog {
        max-height: calc(100vh - 20px);
    }
}
