.nwa_modal {
    padding: 0 !important;
	bottom: auto !important;
    z-index: 20000!important;
    /*height: 100%!important;*/
}

.nwa_modal .modal-dialog {
    /* position: absolute!important;
    top: 20px!important;
    left: 0!important;
    right: 0!important; */
    width: fit-content !important;
    display: flex !important;
    justify-content: center !important;
    margin-left: auto;
    margin-right: auto;
    max-width: 100% !important;
}

.nwa_modal .modal-content {
    width: auto!important;
    overflow: unset !important;
}

button.nwa_close-modal {
    outline: none;
    position: absolute;
    top: -7px;
    right: -7px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: 1px solid #e5e5e5;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 10;
}

button.nwa_close-modal > svg {
    position: relative;
    width: 13px;
    height: 13px;
    vertical-align: sub;
    color: currentColor;
    fill: currentColor;
}

.nwa_modal .modal-body {
    min-height: auto!important;
    padding: 0 !important;
}

.nwa_modal-body {
    display: flex;
    align-items: stretch;
    border-radius: 6px;
    overflow: hidden;
}

@media (max-width: 901px) {
    .nwa_modal-body {
        flex-direction: column-reverse;
    }
}

.nwa_modal-error {
    padding: 40px;
    font-size: 16px;
    color: #333;
}

/* Product */
.nwa_modal-product {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (min-width: 901px) {
    .nwa_modal-product {
        width: 260px;
        min-height: 100%;
        border-right: 1px solid #e5e5e5;
    }
}

@media (max-width: 901px) {
    .nwa_modal-product {
        width: 100%;
        border-top: 1px solid #e5e5e5;
    }
}

.nwa_modal-product-name {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #222;
    margin-bottom: 20px;
}

.nwa_modal-product-image {
    border: 1px solid #e5e5e5;
    padding: 10px;
    border-radius: 10px;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.nwa_modal-product-model,
.nwa_modal-product-price {
    font-size: 13px;
    margin-bottom: 2px;
}

/* Form */
@media (min-width: 680px) {
    .nwa_modal-form {
        width: 600px;
    }
}

@media (max-width: 680px) {
    .nwa_modal-form {
       width: 100%;
    }
}

@media (min-width: 520px) {
    .nwa_modal-form {
        padding: 40px;
    }
}

@media (max-width: 520px) {
    .nwa_modal-form {
        padding: 25px;
    }
}

.nwa_modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.nwa_modal-header-title {
    text-align: center;
    margin: 0 0 13px 0;
    font-weight: 600;
    font-size: 21px;
}

.nwa_modal-form-success .nwa_modal-header-title {
    font-size: 28px;
}

.nwa_modal-header-subtext {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.nwa_modal-form-success .nwa_modal-header-subtext {
    font-size: 16px;
    margin-bottom: 10px;
}

.nwa_modal-inner-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nwa_modal-col {
    margin-bottom: 5px;
}

@media (min-width: 520px) {
    .nwa_col-6 {
        flex: 1 0 48%;
    }
}

@media (max-width: 520px) {
    .nwa_col-6 {
        flex: 1 0 100%;
    }
}

.nwa_col-12 {
    flex: 0 0 100%;
}

.nwa_modal-field {
    position: relative;
}

.nwa_modal-field:has(#nwa-input-comment) {
    width: 100%;
    flex: 0 0 100%;
}

.nwa_modal-field label {
    display: inline-block;
    max-width: 100%;
    width: 100%!important;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: normal;
    padding: 0;
}

.nwa_modal-field .nwa_modal-form-control,
.nwa_modal-field .form-control {
    position: relative;
    display: inline-block;
    width: 100%;
    min-width: 50px;
    padding: 11px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #4B5675FF;
    background-color: #F9F9F9FF;
    border: 1px dashed #C4CADAFF;
    border-radius: 5px;
    box-shadow: none;
    outline: 0;
    transition: all .15s ease-in-out;
}

.nwa_modal-field input.nwa_modal-form-control,
.nwa_modal-field input.form-control {
    height: 43px;
}

.nwa_modal-form-control:focus,
.nwa_modal-field .form-control:focus {
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
}

.nwa_modal-input-group {
    position: relative;
    display: flex;
    border-collapse: separate;
}

.nwa_modal-input-group-addon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nwa_modal-input-group-addon {
    padding: 8px 13px;
    font-size: 13px;
    font-weight: normal;
    line-height: 1;
    text-align: center;
    color: #4B5675FF;
    background-color: #F9F9F9FF;
    border: 1px dashed #C4CADAFF;
    border-radius: 3px;
    white-space: nowrap;
    vertical-align: middle;
}

.nwa_modal-input-group-addon > svg {
    position: relative;
    width: 13px;
    height: 13px;
    vertical-align: sub;
    color: currentColor;
    fill: currentColor;
}

.nwa_modal-input-group .nwa_modal-input-group-addon:first-child {
    border-bottom-right-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-right-width: 0 !important;
}

.nwa_modal-input-group-addon + input {
    flex: 1;
    border-bottom-left-radius: 0 !important;
    border-top-left-radius: 0 !important;
}

/* Настройка стилей для Капчи */
.nwa_modal-field legend {
    display: none!important;
}

.nwa_modal-field label + div {
    width: 100% !important;
}

.nwa_modal-field label + div:has(input + img) {
    display: flex;
    padding: 0;
}

.nwa_modal-field label + div input + img {
    height: 43px;
}

@media (min-width: 320px) {
    .nwa_modal-field label + div input + img {
        margin-left: 10px;
        width: 150px;
    }
}

@media (max-width: 320px) {
    .nwa_modal-field label + div:has(input + img) {
        flex-wrap: wrap;
    }

    .nwa_modal-field label + div input + img {
        margin-top: 10px;
        width: 100%;
    }
}

/* --- */
.nwa_modal-button {
    margin-top: 3px;
}

.nwa_modal-form .nwa_modal-button {
    display: flex;
    justify-content: center;
}

.nwa_modal-button-send {
    width: 100%;
    padding: 10px 16px;
}

.nwa_btn-staysubscribed {
    padding: 6px 13px;
}

.nwa_modal-button-send,
.nwa_btn-staysubscribed {
    font-size: 14px;
    color: #ffffff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    background-color: #4a9bc9;
    border: 1px solid #60aeda;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.nwa_modal-form-success .nwa_modal-button-send {
    width: 200px;
}

.nwa_modal-button-send:hover,
.nwa_btn-staysubscribed:hover {
    color: #ffffff;
    text-decoration: none;
    background-color: #54a0d8;
    border-color: #83c0df;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 4px rgba(0, 0, 0, .15);
    cursor: pointer;
}

.nwa_modal-button-send:focus,
.nwa_btn-staysubscribed:focus {
    color: #ffffff;
    text-decoration: none;
    outline: none;
    border-color: #4da1cd;
    box-shadow: 0 0 5px rgba(107, 182, 240, 0.5);
}

.nwa_modal-button-send:active,
.nwa_btn-staysubscribed:active {
    color: #ffffff;
    text-decoration: none;
    background-color: #4a9bc9;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2);
}

.nwa_btn-unsubscribe {
    padding: 6px 13px;
}

.nwa_btn-unsubscribe {
    font-size: 14px;
    color: #ffffff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    background-color: #e74c3c;
    border: 1px solid #c0392b;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.nwa_btn-unsubscribe:hover {
    color: #ffffff;
    text-decoration: none;
    background-color: #c0392b;
    border-color: #e74c3c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 4px rgba(0, 0, 0, .15);
    cursor: pointer;
}

.nwa_btn-unsubscribe:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

.nwa_btn-unsubscribe:active {
    background-color: #e74c3c;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2);
}



/* --- */
.nwa_modal-agreement {
    display: block;
    font-size: 13px;
    padding: 9px 0 3px 0;
}

.nwa_modal-agreement-text {
    margin-right: 3px;
}

.nwa_modal-checkbox[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-block !important;
    background: transparent;
    -webkit-appearance: none;
    border: 1px solid #237fff !important;
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    position: relative !important;
    margin: 0;
    vertical-align: sub;
    border-radius: 2px;
    margin-right: 3px;
    transition: .2s all;
}

.nwa_modal-checkbox[type="checkbox"]:checked {
    background: #237fff !important;
    border: 2px solid #fff !important;
    box-shadow: 0 0 0 2px rgb(156 209 255 / 65%);
}

.nwa_modal-checkbox[type="checkbox"]:focus,
.nwa_modal-checkbox[type="checkbox"]:focus-visible {
    border-color: #fff !important;
    box-shadow: 0 0 0 2px rgb(156 209 255 / 85%);
    outline: 0;
}

/* input-alert-error */
.input-alert-error {
    position: relative;
    background: #937171;
    color: #fff;
    padding: 5px 10px;
    margin-top: 8px;
    width: 100%;
    font-size: 12px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    border-radius: 3px;
}

.input-alert-error:before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    margin-left: 10px;
    border-color: transparent;
    border-style: solid;
    border-width: 0 5px 5px 5px;
    border-bottom-color: #937171;
    width: 0;
    height: 0;
}

.input-alert-error > .fa {
    margin-right: 5px;
    line-height: 1.2;
}

/* --- */
.dg_nwa_unsubscribe_order {
    max-width: 500px;
    text-align: center;
    margin: 0 auto;
    padding: 20px;
    border: 1px dashed #C4CADAFF;
}

.dg_nwa_unsubscribe_order h2 {
    font-size: 16px;
    line-height: 1.3;
    margin: 0 0 10px;
}

.dg_nwa_unsubscribe_order p {
    font-size: 14px;
    margin: 0 0 10px;
}

.dg_nwa_unsubscribe_order-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 10px;
}

body .iti--fullscreen-popup.iti--container {
    z-index: 9090 !important;
}

.btn-send-availability {
    min-width: 40px !important;
}