/* Prelaunch quick-order and checkout fixes. */
.quick-order-phone-field,
.checkout-phone-field {
    display: flex;
    align-items: stretch;
    max-width: 100%;
}

.quick-order-phone-prefix,
.checkout-phone-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 62px;
    padding: 0 12px;
    color: #333;
    font-weight: 700;
    background: #fff;
    border: 1px solid #cfcfcf;
    border-right: 0;
    box-sizing: border-box;
}

.popup_block_main.checkout_block .tel_form input,
.checkout-phone-field input {
    color: #333;
    font-weight: 600;
    background: #fff;
    border-color: #cfcfcf;
    box-sizing: border-box;
    font-size: 16px;
}

.popup_block_main.checkout_block .tel_form input[name="fastphone"],
.checkout-phone-field input {
    width: 100%;
    max-width: none;
    margin-left: 0;
    border-left: 0;
}

.popup_block_main.checkout_block .tel_form input::placeholder,
.checkout-phone-field input::placeholder {
    color: #b7b7b7;
    font-weight: 400;
    font-style: italic;
    font-size: 16px;
    opacity: 1;
}

.popup_block_main.checkout_block .tel_form input::-webkit-input-placeholder,
.checkout-phone-field input::-webkit-input-placeholder {
    color: #b7b7b7;
    font-weight: 400;
    font-style: italic;
    font-size: 16px;
}

.popup_block_main.checkout_block .tel_form input::-moz-placeholder,
.checkout-phone-field input::-moz-placeholder {
    color: #b7b7b7;
    font-weight: 400;
    font-style: italic;
    font-size: 16px;
    opacity: 1;
}

.popup_block_main.checkout_block .tel_form input:-ms-input-placeholder,
.checkout-phone-field input:-ms-input-placeholder {
    color: #b7b7b7;
    font-weight: 400;
    font-style: italic;
    font-size: 16px;
}

.popup_block_main.checkout_block .tel_form input:focus,
.checkout-phone-field input:focus {
    border-color: #54af2b;
    box-shadow: 0 0 0 2px rgba(84, 175, 43, .12);
}

.quick-order-phone-hint {
    display: block;
    margin: 8px 0 0 0;
    color: #9a9a9a;
    font-size: 12px;
    line-height: 1.3;
}

.quick-order-quantity {
    display: inline-flex;
    align-items: center;
    height: 38px;
}

.quick-order-quantity-btn {
    width: 38px;
    height: 38px;
    color: #708199;
    font-size: 24px;
    line-height: 1;
    background: #fff;
    border: 1px solid #d8e1ec;
}

.quick-order-quantity-minus {
    border-radius: 8px 0 0 8px;
}

.quick-order-quantity-plus {
    border-radius: 0 8px 8px 0;
}

.quick-order-quantity-input {
    width: 54px;
    height: 38px;
    color: #333;
    font-weight: 700;
    text-align: center;
    border: 1px solid #d8e1ec;
    border-left: 0;
    border-right: 0;
    box-sizing: border-box;
}

.quick-order-quantity-value {
    display: none;
}

.checkout-quantity {
    display: inline-flex;
    align-items: center;
    height: 42px;
}

.checkout-quantity-btn {
    width: 38px;
    height: 42px;
    color: #555;
    font-size: 24px;
    line-height: 1;
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(85,85,85,0.18);
}

.checkout-quantity-minus {
    border-radius: 2px 0 0 2px;
}

.checkout-quantity-plus {
    border-radius: 0 2px 2px 0;
}

.checkout-quantity-input {
    width: 58px;
    height: 42px;
    color: #494949;
    font-weight: 700;
    text-align: center;
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(85,85,85,0.18);
    border-left: 0;
    border-right: 0;
    box-sizing: border-box;
}

.checkout-quantity.is-updating {
    opacity: .55;
    pointer-events: none;
}

.checkout-mobile-summary,
.checkout-mobile-products {
    display: none;
}

.payment_block--temporarily-hidden {
    display: none !important;
}

.buyer_data .form-horizontal .form-group {
    display: flex;
    align-items: center;
}

.buyer_data .form-horizontal .control-label {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding-top: 0;
    padding-right: 22px;
    line-height: 1.25;
}

.buyer_data .form-horizontal .form-group--comment .control-label {
    min-height: 80px;
}

@media (max-width: 640px) {
    .quick-order-phone-hint {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    body.information-contact .form-horizontal .form-group {
        margin-left: 0;
        margin-right: 0;
    }

    body.information-contact .form-horizontal .control-label,
    body.information-contact .form-horizontal .col-sm-10 {
        left: auto;
        right: auto;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .checkout-mobile-summary {
        display: block;
        margin: 0 0 14px;
        padding: 18px 14px 20px;
        background: #f7f7f7;
        border-top: 4px solid #54af2b;
        text-align: center;
    }

    .checkout-mobile-summary__label {
        margin: 0 0 8px;
        color: #54af2b;
        font-size: 24px;
        font-weight: 800;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .checkout-mobile-summary .total_pay {
        margin: 0;
        color: #494949;
        font-size: 40px !important;
        font-weight: 800 !important;
        line-height: 1.15;
    }

    .checkout-mobile-summary .total_pay span {
        font-size: 22px;
        font-weight: 800;
    }

    .checkout-mobile-products {
        display: block;
        margin: 0 0 18px;
    }

    .checkout-mobile-product {
        display: flex;
        gap: 12px;
        align-items: center;
        min-height: 92px;
        padding: 10px;
        margin-bottom: 10px;
        background: #fff;
        border: 1px solid #e0e0e0;
    }

    .checkout-mobile-product__image {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 76px;
        width: 76px;
        height: 76px;
        border: 1px solid #e7e7e7;
        background: #fff;
        overflow: hidden;
    }

    .checkout-mobile-product__image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .checkout-mobile-product__body {
        flex: 1 1 auto;
        min-width: 0;
    }

    .checkout-mobile-product__name {
        display: block;
        margin-bottom: 4px;
        color: #494949;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.25;
        text-decoration: none;
    }

    .checkout-mobile-product__meta {
        margin-bottom: 7px;
        color: #777;
        font-size: 13px;
        line-height: 1.2;
    }

    .checkout-mobile-product__bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .checkout-mobile-product__price {
        color: #494949;
        font-size: 17px;
        font-weight: 800;
        white-space: nowrap;
    }

    .checkout-mobile-product__price span {
        font-size: 12px;
        font-weight: 800;
    }

    .checkout-mobile-product__qty {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .checkout-mobile-product__qty-text {
        color: #777;
        font-size: 12px;
        white-space: nowrap;
    }

    .checkout-quantity--mobile,
    .checkout-quantity--mobile .checkout-quantity-btn,
    .checkout-quantity--mobile .checkout-quantity-input {
        height: 32px;
    }

    .checkout-quantity--mobile .checkout-quantity-btn {
        width: 32px;
        font-size: 19px;
        background: #f7f7f7;
    }

    .checkout-quantity--mobile .checkout-quantity-input {
        width: 42px;
        font-size: 15px;
        background: #fff;
    }

    .checkout-page-wrapper .cart_main_wrap {
        display: none;
    }

    body.checkout-checkout .floating-messenger {
        display: none;
    }

    .cart-page-wrapper .cart_product_wrap {
        padding: 14px 12px 16px;
        margin-bottom: 14px;
        background: #fff;
        border: 1px solid #e6e6e6;
    }

    .cart-page-wrapper .cart_main_info h1,
    .cart-page-wrapper .cart_main_info h2 {
        display: block;
        margin: 12px 0 10px;
        color: #494949;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.3;
        text-align: center;
        text-transform: uppercase;
    }

    .cart-page-wrapper .cart_main_info table {
        margin: 0 auto 10px;
        text-align: center;
    }

    .cart-page-wrapper .cart_main_info th {
        display: none;
    }

    .cart-page-wrapper .cart_main_info td {
        display: block;
        color: #777;
        font-size: 14px;
    }

    .cart-page-wrapper .yellow_cost {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px;
        margin-top: 10px;
    }

    .cart-page-wrapper .yellow_cost > div {
        float: none;
        width: auto;
    }

    .cart-page-wrapper .yellow_cost p {
        margin: 0;
    }

    .cart-page-wrapper .delete_product {
        margin-top: 12px;
    }

    .cart_wrapper > div:last-child {
        padding-left: 0;
    }

    .cart_right {
        margin-top: 0;
    }

    .buyer_data {
        padding: 24px 18px 28px;
        margin-bottom: 28px;
    }

    .buyer_data .title {
        margin-bottom: 22px;
        font-size: 22px;
        line-height: 1.2;
    }

    .buyer_data .form-horizontal .form-group {
        display: block;
    }

    .buyer_data .form-horizontal .control-label,
    .buyer_data .form-horizontal .form-group--comment .control-label {
        min-height: 0;
        margin-bottom: 8px;
        padding-right: 0;
    }
}
