body.bridge-download-gate-open {
    overflow: hidden;
}

.bridge-download-gate[hidden],
.bridge-download-frame {
    display: none !important;
}

.bridge-download-gate {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.bridge-download-gate__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
}

.bridge-download-gate__dialog {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 36px;
    border-radius: 8px;
    background: #fff;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.28);
}

.bridge-download-gate__close {
    position: absolute;
    top: 10px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.bridge-download-gate__close:hover,
.bridge-download-gate__close:focus-visible {
    color: #000;
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.bridge-download-gate__title {
    margin: 0 44px 24px 0;
    font-size: clamp(22px,
            4vw,
            30px);
    line-height: 1.25;
}

.bridge-download-gate__form .wpcf7-form {
    margin: 0;
}

.bridge-download-gate__form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.bridge-download-gate__form select,
.bridge-download-gate__form textarea {
    box-sizing: border-box;
    width: 100%;
}

.bridge-download-gate__status {
    margin: 16px 0 0;
}

.bridge-download-gate__form .wpcf7-form-control-wrap input {
    border-style: solid !important;
    border-width: 1px !important;
    border-color: #8a8a8a !important;
}

.bridge-download-gate__form input.wpcf7-form-control.wpcf7-submit.has-spinner {
    font-size: 14px;
    text-transform: uppercase;
}

.bridge-download-gate__form .wpcf7-response-output {
    display: none;
}

input.wpcf7-form-control.wpcf7-submit.has-spinner {
    margin-top: 20px;
}

@media (max-width: 600px) {
    .bridge-download-gate {
        padding: 12px;
    }

    .bridge-download-gate__dialog {
        max-height:
            calc(100vh - 24px);
        padding:
            28px 20px 20px;
    }
}