/*
https://shop.atributika.ru/bitrix/templates/.default/css/media.css
*/

@media (min-width: 1200px) {
  .g-xs-visible {
    display: none !important;
  }
}

@media (max-width: 1199px) {
  .g-xs-visible {
    display: block !important;
  }

  .g-xs-hidden {
    display: none !important;
  }
}

@media only screen and (max-width: 767px) {
  #modef {
    display: none !important;
  }

  html.is-basket-open .b-basket-popup__main {
    max-height: 480px;
  }
}

/** 
* Media Styles 
*/
@media only screen and (max-width: 1239px) {
  .b-order {
    margin-left: -20px;
  }

  .b-order__step {
    padding-left: 20px;
  }

  .b-faq__call-section {
    width: 250px;
    margin-left: -250px;
  }
}

@media only screen and (max-width: 1024px) {
  .b-basket-popup__bg {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #000;
    opacity: 0.5;
    cursor: pointer;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transition: 0.25s ease-in-out;
    transition: 0.25s ease-in-out;
  }

  .b-basket-popup__main {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 10002;
    padding-top: 70px;
    right: -415px;
    box-shadow: none;
    -webkit-backface-visibility: hidden;
    -webkit-transition: 0.25s ease-in-out;
    transition: 0.25s ease-in-out;
  }

  html.is-basket-open .b-basket-popup__bg {
    opacity: 0.5;
    visibility: visible;
  }

  html.is-basket-open .b-basket-popup__main {
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }

  .b-basket-popup__header {
    display: block;
    height: 70px;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #ecf0f1;
    padding: 24px 40px 0 19px;
    font-size: 20px;
    color: #000;
  }

  .b-basket-popup__title {
    display: inline;
    font-weight: bold;
  }

  .b-basket-popup__count {
    display: inline;
  }

  .b-basket-popup__back-btn {
    position: absolute;
    right: 11px;
    top: 20px;
    width: 30px;
    height: 30px;
    border: none;
    padding: 0;
    background: none;
    display: none;
    align-items: center;
    justify-content: center;
  }

  .b-basket-popup__content {
    max-height: none;
  }

  .b-basket-popup__footer {
    border-top: 1px solid #ecf0f1;
  }

  .b-basket-popup__main {
    padding-bottom: 91px;
  }

  .b-basket-popup__back-btn {
    display: flex;
  }
}

@media only screen and (max-width: 999px) {
  .b-faq__form-section {
    float: none;
    width: auto;
    padding-right: 0;
    margin-bottom: 40px;
  }

  .b-faq__call-section {
    float: none;
    width: auto;
    margin: 0;
  }

  .b-call__image {
    display: none;
  }

  .b-call__phone {
    margin-bottom: 0;
  }

  .b-faq__form-section .g-btn {
    width: 100%;
  }

  .b-order__step {
    width: 50%;
  }

  .b-order__last-step {
    clear: both;
    width: 100%;
  }

  .b-order__step-header {
    margin-top: 10px;
  }

  .b-order__last-step .b-order__step-content {
    margin-left: -20px;
    position: relative;
  }

  .b-order__last-step .b-order__step-content:after {
    content: "";
    display: table;
    clear: both;
  }

  .b-order__last-step-content {
    float: left;
    width: 50%;
    padding-left: 20px;
  }

  .b-order__last-step-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    padding-left: 20px;
  }
}

@media only screen and (max-width: 767px) {
  .b-order {
    margin: 7px 0 37px;
  }

  .b-order__step {
    width: 100%;
    padding: 0;
  }

  .b-order__step-header {
    margin-top: 0;
  }

  .b-order__last-step .b-order__step-content {
    margin-left: 0;
    position: relative;
  }

  .b-order__last-step-content {
    float: none;
    width: auto;
    padding-left: 0;
  }

  .b-order__last-step-footer {
    position: static;
    width: auto;
    padding-left: 0;
  }

  .b-order__btn {
    width: 100%;
  }

  .b-select-address-map {
    height: 300px;
  }

  .b-faq__section-title {
    font-size: 16px;
    margin: 0 0 13px 0;
  }

  .b-faq__form-section .b-form-group__col_4 {
    width: 100%;
  }

  .b-faq__form-section .b-form-btn-row {
    margin-top: 24px;
  }

  .b-faq__form-section {
    margin-bottom: 27px;
  }

  .b-call__phone {
    margin-bottom: 17px;
    margin-top: 18px;
  }
}

@media only screen and (max-width: 479px) {
  .b-basket-popup__main {
    width: 300px;
    right: -300px;
  }

  .b-basket-popup__item-image-field {
    width: 95px;
  }

  input.b-basket-popup__item-count,
  .jq-number.b-basket-popup__item-count {
    width: 70px;
    height: 35px;
  }

  input.b-basket-popup__item-count,
  .b-basket-popup__item-count input {
    padding-left: 18px;
    padding-right: 18px;
    font-size: 13px;
  }

  .b-basket-popup__item-count .jq-number__spin {
    width: 24px;
  }

  .b-basket-popup__item-count .jq-number__spin:before {
    width: 10px;
    margin-left: -5px;
  }

  .b-basket-popup__item-count .jq-number__spin.plus:after {
    height: 10px;
    margin-top: -5px;
  }

  .b-basket-popup__item-price,
  .b-basket-popup__item-old-price,
  .b-basket-popup__item-total {
    line-height: 1;
  }

  .b-basket-popup__item {
    padding: 20px 15px;
  }

  .b-basket-popup__item-remove-field {
    top: 4px;
    right: -10px;
  }

  .b-basket-popup__item-price-field {
    width: 95px;
  }

  .b-basket-popup__item-count-field {
    width: 88px;
  }

  .b-basket-popup__item-footer {
    padding-right: 30px;
  }

  .b-basket-popup__footer {
    padding: 20px 16px;
  }
}
