/* ============================================ */
/*   ОБЩИЕ СТИЛИ МОДАЛЬНЫХ ОКОН                 */
/* ============================================ */

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    outline: 0;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000000;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.5 !important;
}
.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.fade.show {
    opacity: 1;
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

.modal-dialog {
    position: relative;
    width: auto;
    pointer-events: none;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #ffffff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
}

.modal-header {
    text-align: center;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

.modal-header .close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
}

.modal-title {
    margin: 0;
    line-height: 1.5;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    gap: 15px;
}

.close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000000;
    text-shadow: 0 1px 0 #ffffff;
    opacity: .5;
}

.close:not(:disabled):not(.disabled) {
    cursor: pointer;
}

button.close {
    padding: 0;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
}

/* ============================================ */
/*   ФОРМЫ В МОДАЛКАХ                           */
/* ============================================ */

.form-group {
    padding: 10px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #ffffff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form__input,
.inputtextarea {
    width: 100%;
}

.text-muted {
    color: #6c757d !important;
}

/* ============================================ */
/*   ТОВАР В МОДАЛКЕ                            */
/* ============================================ */

.product-image-block img {
    width: 100%;
    height: auto;
}

.product-properti-block {
    padding-left: 15px !important;
}

.catalog-detail__prop-price_base {
    font-size: 40px;
    font-weight: 300;
    color: #79b715;
    padding-top: 10px;
}

.catalog-detail__prop-price_base span {
    font-size: 22px;
    color: #555;
}

/* ============================================ */
/*   СПИННЕРЫ (НОВЫЕ КНОПКИ +/-)                */
/* ============================================ */

.spinner-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.spinner-group input {
    flex: 1;
    text-align: center;
    border: 1px solid #ced4da;
    padding: 8px 4px;
    font-size: 16px;
    min-width: 30px;
    border-left: none;
    border-right: none;
}

.spinner-group .spinner-btns {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.spinner-group .spinner-btns button {
    flex: 1;
    border: 1px solid #ced4da;
    background: #f8f9fa;
    cursor: pointer;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1;
    color: #333;
    min-height: 20px;
}

.spinner-group .spinner-btns button:hover {
    background: #e2e6ea;
}

.spinner-group .spinner-btns button:first-child {
    border-bottom: none;
    border-radius: 0 4px 0 0;
}

.spinner-group .spinner-btns button:last-child {
    border-radius: 0 0 4px 0;
}

.spinner-group .spinner-label {
    display: flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 4px 0 0 4px;
    background: #e9ecef;
    font-size: 12px;
    white-space: nowrap;
    color: #555;
}

/* ============================================ */
/*   КНОПКИ                                    */
/* ============================================ */

.btn-order {
    background: #79b715 !important;
    border-color: #79b715 !important;
    color: #fff !important;
    font-weight: bold;
    padding: 10px 24px;
    font-size: 16px;
}

.btn-order:hover {
    background: #68a012 !important;
    border-color: #68a012 !important;
}

.modal-footer-ajax > .button_compare > a {
    color: #fff;
}

/* ============================================ */
/*   ФОРМА РАСЧЁТА (КОРЗИНА)                   */
/* ============================================ */

#ww-add_bask {
    max-width: 400px;
    margin: 0 auto;
}

.form-calc {
    margin-top: 20px;
    padding: 34px 32px;
    box-shadow: 0 5px 20px #e3e3ec;
}

.form-calc__title {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 10px;
    color: #2f2f32;
}

.form-calc__square > div {
    background: url("https://profparket.ru/local/templates/profparket_10.2019/scss/../images/calc_s.png") no-repeat left center;
    padding-left: 0 !important;
}

.form-calc__square span {
    line-height: 34px;
    height: 34px;
    width: 28px;
}

.form-calc__square span:before {
    opacity: .7;
    display: inline-block;
    content: "";
    width: 30px;
    height: 30px;
    background: url("https://profparket.ru/local/templates/profparket_10.2019/scss/../images/svg/al.svg") -21px -191px no-repeat;
    vertical-align: middle;
}

.form-calc__square span.minus,
.form-calc__square span.plus {
    font-size: 0;
    line-height: 28px;
    height: 30px;
    width: 30px;
    display: inline-block;
    cursor: pointer;
    vertical-align: top;
    position: relative;
    z-index: 1;
    border: 1px solid #d7d7d7;
}

.form-calc__square span.minus:before {
    background-position: -81px -191px;
}

.form-calc__square span.plus:before {
    background-position: -50px -191px;
}

.form-calc__square input[type=text] {
    margin: 0;
    height: 30px;
    font-size: 13px;
    border-left: none !important;
    border-right: none !important;
}

.form-calc__square-border {
    background: none !important;
    display: inline-block;
    font-size: 0;
    width: 100%;
}

.form-calc__square-border input,
.my_form_calc_icon input {
    border: 1px solid #CCC !important;
}

.form-calc__box > div {
    min-height: 22px;
    background: url("https://profparket.ru/local/templates/profparket_10.2019/scss/../images/calc_b.png") no-repeat left center;
}

.form-calc label,
.form-calc .label {
    display: block;
}

.form-calc label > div,
.form-calc .label > div {
    margin-bottom: 5px;
    padding-left: 30px;
    line-height: 30px;
}

.form-calc label input[type=text],
.form-calc .label input[type=text] {
    border: 1px solid #d7d7d7;
    background-color: #f8f8f9;
    padding: 5px 10px;
    width: 100%;
    line-height: 1.4em;
}

.form-calc__itog {
    font-weight: 700;
    font-size: 15px;
    color: #2f2f32;
    margin-top: 15px;
    padding-top: 5px;
    padding-bottom: 15px;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
}

.form-calc__itog-summ {
    display: inline-block;
    font-size: 28px;
    font-weight: 400;
    text-align: center;
    color: #000;
    margin-left: 10px;
}

.form-calc__itog div.form-calc__box {
    display: inline-block;
    padding-left: 0;
    font-weight: normal;
}

.form-calc__itog div.form-calc__box div {
    min-height: 22px;
    padding-left: 30px;
    background-size: contain;
}

.form-calc__itog div.form-calc__box i {
    font-style: normal;
}

.form-calc__box {
    padding-left: 15px;
    padding-top: 5px;
}

.form-calc__submit {
    padding-top: 10px;
}

.form-calc__submit .btn-buy {
    display: inline-block;
    padding: 0 18px;
}

.form-calc__submit .btn-buy:last-child {
    margin-left: 14px;
}

.form-calc__podrez label {
    display: inline-block;
    margin: 0;
}

.form-calc__podrez label input {
    margin: 0 4px 0 2px;
    position: relative;
    top: 2px;
}

.my_form_calc_icon {
    padding-top: 5px;
}

.my_form_calc_icon > div {
    padding-left: 30px;
    margin-bottom: 10px;
    height: 25px;
}

.my-js-item-count {
    width: 100%;
    height: 30px;
}

.my_modal_container {
    padding: 0 15px;
}

/* ============================================ */
/*   АДАПТИВ                                   */
/* ============================================ */

@media (max-width: 768px) {
    .form-calc__itog div.form-calc__box {
        margin-left: 0;
        padding-top: 10px;
    }

    .form-calc__itog div.form-calc__box div {
        padding-left: 60px;
    }

    .form-calc__submit .btn-buy {
        padding: 0 13px;
    }

    .form-calc__submit .btn-buy:last-child {
        margin-left: 8px;
    }
}