@import './../../../../sources/styles/include.scss';

$namespace: 'intec-universe';
$component: 'sale-basket-small';
$template: 'template-2';
$class: #{$component};

.ns-#{$namespace}.c-#{$component}.c-#{$component}-#{$template} {
  display: block;

  @media all and (max-width: 720px)  {
    position: static;
  }

  .#{$class}-panel {
    display: none;
    height: 60px;
    background-color: #0051cc;

    @media all and (max-width: 720px) {
      display: block;
    }

  }

  .#{$class}-panel-wrapper {
    height: 100%;
  }

  .#{$class}-panel-button {
    display: block;
    text-decoration: none;
    height: 100%;
    cursor: pointer;
  }

  .#{$class}-panel-button-wrapper {
    display: block;
    position: absolute;
    top: 7px;
    right: 7px;
    left: 7px;
    bottom: 7px;
  }

  .#{$class}-panel-button-counter {
    display: block;
    position: absolute;
    top: 2px;
    left: 50%;
    width: 22px;
    height: 22px;
    color: #fff;
    border: 2px solid #fff;
    text-align: center;
    font-size: 12px;
    font-style: normal;
    font-weight: normal;
    background-color: #0065ff;

    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;

    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
  }

  .#{$class}-panel-button-icon {
    display: block;
    height: 100%;
    font-size: 0;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    text-align: center;
    color: #fff;

    &::after {
      content: '';
      display: inline-block;
      vertical-align: middle;
      width: 0;
      height: 100%;
      overflow: hidden;
    }
  }

  .#{$class}-panel-button-icon i {
    display: inline-block;
    vertical-align: middle;
    font-size: 20px;
  }

  .#{$class}-content {
    position: fixed;
    z-index: 201;
    top: 0;
    right: 0;
    width: auto;
    height: 100%;

    @media all and (max-width: 720px) {
      display: none;
    }
  }

  .#{$class}-popup {
    height: 100%;
  }
  .#{$class}-switches {
    position: absolute;
    top: 180px;
    right: 100%;
    background: #fbfbfb;
    padding: 0;
    border: 1px solid #e7e7e7;
    border-right: 0;
    overflow: hidden;
    z-index: 1;
  }
  .#{$class}-switch  {
    width: 20px;
    height: 20px;
    padding: 22px;
    border-bottom: 1px solid #e7e7e7;
    text-align: center;
    font-size: 20px;
    color: #222222;
    cursor: pointer;
    display: block;
    box-sizing: content-box;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;

    &-wrapper {
      display: block;
      position: relative;
      text-align: center;
      width: 20px;
      height: 20px;
      line-height: 1;
    }

    svg {
      path {
        @include transition(.35s, stroke);
      }
    }

    &-count {
      position: absolute;
      top: -10px;
      right: -10px;
      line-height: 15px;
      width: 15px;
      height: 15px;
      font-size: 10px;
      -webkit-border-radius: 50%;
      -moz-border-radius: 50%;
      border-radius: 50%;
      box-sizing: content-box;
      -webkit-box-sizing: content-box;
      -moz-box-sizing: content-box;
      color: #fff;
      border: 2px solid #fbfbfb;
    }

    &:last-child {
      border-bottom: 0;
    }

    &[data-active='true'] {
      background: #fff;
    }

    &[data-tab='basket'] {
      //font-size: 22px;

      /*.#{$class}-switch-wrapper {
        margin-left: -1px;
        margin-top: -1px;
      }*/
    }

  }

  .#{$class}-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.45);
    -webkit-transition: opacity 0.2s;
    -moz-transition: opacity 0.2s;
    -ms-transition: opacity 0.2s;
    -o-transition: opacity 0.2s;
    transition: opacity 0.2s;
    overflow: hidden;
    opacity: 0;
    cursor: url('images/cursor-close.png'), pointer;
  }
  .#{$class}-tab {
    overflow: hidden;
    background: #fff;
    height: 100%;
    position: relative;
    top: 0;
    right: 0;
    display: none;
    overflow-y: auto;
    width: 550px;

    &.#{$class}-tab-form {
      .#{$class}-tab-wrapper {
        padding: 30px 80px;
      }
    }
  }
  .#{$class}-tab-wrapper {
    height: 100%;
    width: 550px;
    padding-bottom: 165px;
  }
  .#{$class}-header {
    padding: 15px 20px;
    padding-left: 30px;
    border-bottom: 1px solid #e8e8e8;
  }
  .#{$class}-header-text {
    font-size: 16px;
    color: #222;
    font-weight: bold;
  }
  .#{$class}-header-count {
    color: #888;
    font-weight: normal;
    margin-left: 10px;
  }
  .#{$class}-header-btn-close {
    cursor: pointer;
    height: 25px;
  }
  .#{$class}-header-btn-close i {
    font-size: 25px;
    line-height: 1;
    color: #888;
  }

  .#{$class}-header-clear {
    padding: 11px 20px;
    line-height: 1;
    border-radius: 20px;
    border-radius: 20px;
    background-color: #f7f7f7;
    border-color: #f7f7f7;
    color: #888;

    &:hover {
      background-color: #cfcfcf;
      border-color: #cfcfcf;
      color: #fff;
    }

    .intec-ui-part-icon {
      font-size: 0;
    }
    .intec-ui-part-content {
      font-size: 10px;
      line-height: 1;
      text-transform: uppercase;
    }
    i {
      font-size: 11px;
      line-height: 1;
    }
  }
  .#{$class}-header-btn-close-wrap {
    padding-left: 20px;
  }

  .#{$class}-body {
    height: calc(100% - 69px);
    overflow-y: auto;
  }
  .#{$class}-tab-title {
    font-size: 24px;
    color: #212324;
  }
  .#{$class}-tab-header {
    margin-bottom: 20px;
  }
  .#{$class}-tab {
    &.#{$class}-tab-personal-area {
      .#{$class}-tab-wrapper {
        padding: 0;
      }
    }
  }

  .#{$class}-product {
    border-bottom: 1px solid #e8e8e8;

    &:hover .#{$class}-product-icon-delete {
      opacity: 1
    }
  }
  .#{$class}-product-content {
    padding-left: 20px;
    padding-right: 20px;
  }
  .#{$class}-product-image {
    height: 110px;
    width: 110px;
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-color: #fdfdfd;
    position: relative;
    margin: 15px;
  }
  .#{$class}-product-icon-delete {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 26px;
    height: 26px;
    font-size: 10px;
    line-height: 27px;
    text-align: center;
    background: #ea4b4b;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    -webkit-transition: opacity 0.4s;
    -moz-transition: opacity 0.4s;
    -ms-transition: opacity 0.4s;
    -o-transition: opacity 0.4s;
    transition: opacity 0.4s;

    i {
      line-height: 1;
      font-size: 8px;
      color: #fff;
    }
  }
  .#{$class}-product-name-wrap {
    margin: 20px 0;
    margin-bottom: 10px;
  }
  .#{$class}-product-name {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    -webkit-transition: color 0.4s;
    -moz-transition: color 0.4s;
    -ms-transition: color 0.4s;
    -o-transition: color 0.4s;
    transition: color 0.4s;
  }
  .#{$class}-product-new-price {
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    color: #161616;
  }
  .#{$class}-product-old-price {
    display: inline-block;
    font-size: 14px;
    font-weight: normal;
    line-height: 1;
    position: relative;
    color: #888888;
    margin-left: 10px;
  }

  .#{$class}-product-old-price:after {
    content: ' ';
    display: block;
    width:100%;
    border-top: 1px solid #888;
    position: absolute;
    top: 50%;
    left: 0;
  }
  .#{$class}-product-quantity-value {
    width: 52px;
    text-align: center;
    border: 0;
    font-size: 18px;
    padding: 10px;
  }
  .#{$class}-product-quantity {
    height: 100%;
  }
  .#{$class}-product-quantity-wrapper {
    height: 100%;
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  %#{$class}-product-btn {
    display: block;
    height: 33.3333%;
    font-size: 0;
    color: #b5b5b5;
    cursor: pointer;
    -webkit-transition: color 0.4s;
    -moz-transition: color 0.4s;
    -ms-transition: color 0.4s;
    -o-transition: color 0.4s;
    transition: color 0.4s;

    &::after {
      content: '';
      display: inline-block;
      vertical-align: middle;
      width: 0;
      height: 100%;
      overflow: hidden;
    }

    i {
      font-size: 11px;
      line-height: 1;
      vertical-align: middle;
      cursor: pointer;
    }
  }

  .#{$class}-product-quantity-down {
    @extend %#{$class}-product-btn;

  }
  .#{$class}-product-quantity-up {
    @extend %#{$class}-product-btn;
  }
  .#{$class}-product-remove {
    @extend %#{$class}-product-btn;

    color: #e82f2f;
  }

  .#{$class}-product-add-basket {
    margin-top: 10px;
  }
  .#{$class}-product-button-basket {
    cursor: pointer;

    * {
      vertical-align: middle;
      display: inline-block;
    }

    i {
      margin-right: 7px;
      font-size: 16px;
    }

    span {
      margin-top: -3px;
    }
  }

  .#{$class}-product-button-delay {
    cursor: pointer;

    * {
      vertical-align: middle;
      display: inline-block;
    }

    i {
      margin-right: 7px;
      font-size: 16px;
      margin-top: -4px;
    }

    span {
      line-height: 16px;
    }
  }

  .#{$class}-footer-wrap {
    border-top: 1px solid #e8e8e8;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 550px;
  }
  .#{$class}-footer {
    padding: 20px;
    padding-left: 30px;
  }
  .#{$class}-footer-sum-title {
    font-size: 18px;
    color: #222222;
    margin-bottom: 2px;
  }
  .#{$class}-footer-new-sum {
    display: inline-block;
    font-size: 18px;
    color: #161616;
    font-weight: bold;
  }
  .#{$class}-footer-old-sum {
    font-size: 14px;
    font-weight: normal;
    color: #888888;
    position: relative;
    margin-left: 20px;

    &:after {
      content: ' ';
      border-top: 1px solid #888888;
      position: absolute;
      left: 0;
      top: 50%;
      width: 100%;
    }
  }
  .#{$class}-footer-sum-economy {
    color: #888;
    font-size: 13px;
    margin-top: 5px;
  }
  .#{$class}-footer-order-button {
    font-size: 16px;
    border-radius: 30px;
    padding: 12px 35px;
    margin-bottom: 10px;
  }
  .#{$class}-footer-additional-button {
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    -webkit-transition: color 0.4s;
    -moz-transition: color 0.4s;
    -ms-transition: color 0.4s;
    -o-transition: color 0.4s;
    transition: color 0.4s;
  }
  .#{$class}-footer-buttons {
    text-align: center;
  }

  .#{$class}-pay-system {
    background: #f6f6f6;
    text-align: center;
    padding: 0 30px;
  }

  .#{$class}-pay-system-wrapper {
    height: 100%;
  }
  .#{$class}-pay-system-item {
    height: 43px;
    line-height: 43px;

    img {
      -webkit-filter: grayscale(100%);
      -moz-filter: grayscale(100%);
      -ms-filter: grayscale(100%);
      -o-filter: grayscale(100%);
      filter: grayscale(100%);
      filter: gray;
    }

    &:hover img {
      -webkit-filter: none;
      -moz-filter: none;
      -ms-filter: none;
      -o-filter: none;
      filter: none;
    }
  }




  .#{$class}-empty-basket-wrap {
    font-size: 0;
    padding: 30px 80px;
    height: 100%;
    width: 550px;

    &::after {
      content: '';
      display: inline-block;
      vertical-align: middle;
      width: 0;
      height: 100%;
      overflow: hidden;
    }
  }
  .#{$class}-empty-basket {
    display: inline-block;
    vertical-align: middle;
    width: 100%;
  }
  .#{$class}-empty-basket-image {
    margin-bottom: 40px;
  }
  .#{$class}-empty-basket-title {
    font-size: 24px;
    line-height: 1.4;
    color: #222;
    margin-bottom: 20px;
  }
  .#{$class}-empty-basket-text {
    font-size: 14px;
    line-height: 1.4;
    color: #222;
    margin-bottom: 35px;
  }
  .#{$class}-empty-basket-btn {
    font-size: 16px;
    padding: 15px 45px;
    border-radius: 30px;
  }
  .#{$class}-empty-delayed-wrap {
    font-size: 0;
    padding: 30px 80px;
    width: 550px;
    height: 100%;

    &::after {
      content: '';
      display: inline-block;
      vertical-align: middle;
      width: 0;
      height: 100%;
      overflow: hidden;
    }
  }
  .#{$class}-empty-delayed {
    display: inline-block;
    vertical-align: middle;
    width: 100%;
  }
  .#{$class}-empty-delayed-image {
    margin-bottom: 40px;
  }
  .#{$class}-empty-delayed-title {
    font-size: 24px;
    line-height: 1.4;
    color: #222;
    margin-bottom: 20px;
  }
  .#{$class}-empty-delayed-text {
    font-size: 14px;
    line-height: 1.4;
    color: #222;
    margin-bottom: 35px;
  }
  .#{$class}-empty-delayed-btn {
    font-size: 16px;
    padding: 15px 45px;
    border-radius: 30px;
  }

  .ns-bitrix.c-system-auth-form.c-system-auth-form-template-1 .system-auth-form-tabs-panel {
    padding-top: 30px;
  }

  @media print {
    display: none;
  }
}
