.qwalls-pattern-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none
}

.qwalls-pattern-modal.is-open {
    display: block
}

.qwalls-pattern-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65)
}

.qwalls-pattern-modal__panel {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1200px, calc(100vw - 40px));
    min-height: 467px;
    height: auto;
    padding: 60px 40px;
    background: rgba(0, 0, 0, .70);
    border: 2px solid rgba(255, 255, 255, .25);
    box-shadow: 18px 49px 56.3px rgba(0, 0, 0, .25);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px)
}

.qwalls-pattern-modal__close {
    position: absolute;
    width: 14px;
    height: 14px;
    right: 24px;
    top: 24px;
    opacity: .6;
    display: block;
    z-index: 3
}

.qwalls-pattern-modal__close:before,
.qwalls-pattern-modal__close:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 1px;
    background: #fff;
    transform-origin: center
}

.qwalls-pattern-modal__close:before {
    transform: translate(-50%, -50%) rotate(45deg)
}

.qwalls-pattern-modal__close:after {
    transform: translate(-50%, -50%) rotate(-45deg)
}

.qwalls-pattern-modal__left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    width: 347px;
    flex: 0 0 347px
}

.qwalls-pattern-modal__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%
}

.qwalls-pattern-modal__title,
.qwalls-pattern-modal__subtitle {
    width: 100%;
    font-family: 'Golos Text', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 26px;
    line-height: 120%;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #fff
}

.qwalls-pattern-modal__image {
    width: 254px;
    height: 262px;
    margin: 0 auto;
    overflow: hidden
}

.qwalls-pattern-modal__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.qwalls-pattern-modal__right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    flex: 1;
    min-width: 0
}

.qwalls-pattern-modal__form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px
}

.qwalls-pattern-modal__field {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px
}

.qwalls-pattern-modal__input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Golos Text', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: #fff;
    opacity: .85;
    padding: 0;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.qwalls-pattern-modal__input::placeholder {
    color: #fff;
    opacity: .6
}

.qwalls-pattern-modal__input:-webkit-autofill,
.qwalls-pattern-modal__input:-webkit-autofill:hover,
.qwalls-pattern-modal__input:-webkit-autofill:focus,
.qwalls-pattern-modal__input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    box-shadow: 0 0 0 1000px transparent inset;
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    transition: background-color 9999s ease-out 0s;
}

.qwalls-pattern-modal__line {
    width: 100%;
    height: 0;
    opacity: .2;
    border-top: 1px solid #fff;
    display: block
}

.qwalls-pattern-modal__checks {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    margin-top: 20px
}

.qwalls-pattern-modal__check {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    flex: 1;
    min-width: 0;
    position: relative
}

.qwalls-pattern-modal__check input {
    position: absolute;
    opacity: 0;
    pointer-events: auto
}

.qwalls-pattern-modal__box {
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .6);
    flex: 0 0 14px;
    margin-top: 2px;
    position: relative;
    background: transparent
}

.qwalls-pattern-modal__check input:checked + .qwalls-pattern-modal__box {
    background: #fff
}

.qwalls-pattern-modal__check-text {
    font-family: 'Manrope', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 10px;
    line-height: 120%;
    color: #fff;
    opacity: .6;
    max-width: 420px
}

.qwalls-pattern-modal__submit {
    width: 100%;
    height: 51px;
    border: none;
    background: #fff;
    font-family: 'Golos Text', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    text-align: center;
    text-transform: uppercase;
    color: #000;
    cursor: pointer;
    margin-top: 20px
}

@media (max-width: 1024px) {
    .qwalls-pattern-modal__panel {
        padding: 40px 24px;
        gap: 24px;
        min-height: unset
    }

    .qwalls-pattern-modal__left {
        width: 320px;
        flex: 0 0 320px
    }

    .qwalls-pattern-modal__image {
        width: 220px;
        height: 226px
    }

    .qwalls-pattern-modal__title,
    .qwalls-pattern-modal__subtitle {
        font-size: 22px
    }

    .qwalls-pattern-modal__checks {
        flex-direction: column;
        gap: 12px
    }

    .qwalls-pattern-modal__check-text {
        max-width: none
    }
}

@media (max-width: 640px) {
    .qwalls-pattern-modal__panel {
        width: calc(100vw - 24px);
        padding: 24px 16px;
        gap: 20px;
        max-height: calc(100vh - 24px);
        overflow: auto
    }

    .qwalls-pattern-modal__close {
        right: 16px;
        top: 16px
    }

    .qwalls-pattern-modal__panel {
        flex-direction: column
    }

    .qwalls-pattern-modal__left {
        width: 100%;
        flex: none;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px
    }

    .qwalls-pattern-modal__head {
        flex: 1;
        min-width: 0;
        padding-right: 28px
    }

    .qwalls-pattern-modal__title,
    .qwalls-pattern-modal__subtitle {
        font-size: 20px
    }

    .qwalls-pattern-modal__image {
        width: 96px;
        height: 96px;
        margin: 28px 0 0 0;
        flex: 0 0 96px
    }

    .qwalls-pattern-modal__right {
        width: 100%;
        gap: 20px
    }

    .qwalls-pattern-modal__checks {
        flex-direction: column;
        gap: 12px;
        margin-top: 8px
    }

    .qwalls-pattern-modal__submit {
        margin-top: 8px
    }
}
