$namespace: 'intec-universe';
$component: 'catalog-delivery';
$template: 'default';
$class: #{$component};

.ns-#{$namespace}.c-#{$component}.c-#{$component}-#{$template} {

  width: 730px;
  max-width: 100%;
  padding-top: 35px;

  .#{$class}-selection-city {
    margin-bottom: 25px;
  }
  .#{$class}-selection-city[data-expanded="false"] {
    .#{$class}-city-form {
      display: none;
    }
  }
  .#{$class}-selection-city[data-expanded="true"] {
    .#{$class}-current-city{
      span {
        display: none;
      }
    }
  }

  .#{$class}-current-city {
    margin-bottom: 40px;
    font-size: 30px;
    line-height: 40px;
    color: #1B1E25;

    &-name-wrap {

      display: inline-block;
      position: relative;
      cursor: pointer;

      .#{$class}-current-city-name {
        display: inline-block;
        padding: 3px 0;
        border-bottom: 1px dashed #B0B0B0;
      }
      .#{$class}-current-city-icon {
        font-size: 22px;
        color: #808080;
      }
    }
  }

  .#{$class}-params {
    margin-top: 25px;

    .#{$class}-param {
      padding-right: 30px;
      font-size: 13px;
      line-height: 13px;
      color: #808080;
    }
    .#{$class}-param-title {
      margin-bottom: 10px;
    }
    .#{$class}-param-basket .#{$class}-param-content {
      padding-top: 9px;
    }
    .#{$class}-param-content .intec-ui-part-content{
      font-size: 14px;
      line-height: 20px;
      color: #404040;
    }
  }

  .#{$class}-list-wrap {
    position: relative;
    margin-top: 30px;

    .#{$class}-list-stub {
      display: none;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-position: center;
      background-repeat: no-repeat;
      background-color: rgba(255,255,255, 0.8);
      z-index: 1;
    }

    .#{$class}-element {
      padding: 30px;
      border: 1px solid #f2f2f2;
      border-bottom: none;
      -webkit-transition: 0.3s;
      -moz-transition: 0.3s;
      -ms-transition: 0.3s;
      -o-transition: 0.3s;
      transition: 0.3s;

      &:last-child {
        border-bottom: 1px solid #f2f2f2;
      }

      &:hover {
        box-shadow: 0px 8px 32px rgba(27, 30, 37, 0.08);
      }

      .delivery-element-logo {
        width: 115px;
        padding-right: 25px;
        font-size: 0;

        &-logo {
          max-width: 100%;
          max-height: 100%;
        }
      }
      .delivery-element-name-wrap {
        padding-right: 25px;
      }
      .delivery-element-name {
        font-size: 18px;
        line-height: 22px;
        color: #404040;
      }
      .delivery-element-period {
        margin-top: 10px;
        font-size: 14px;
        line-height: 14px;
        color: #B0B0B0;
      }
      .delivery-element-price {
        padding-right: 25px;
        font-weight: 600;
        font-size: 18px;
        line-height: 22px;
        text-align: right;
        color: #404040;
      }
      .delivery-element-button-more {
        width: 40px;
        height: 40px;
        background: #0065FF;
        border-radius: 4px;
        color: #ffffff;
        cursor: pointer;

        &-icon {
          margin: auto;
          font-size: 20px;
          line-height: 1;
          -webkit-transition: 0.2s;
          -moz-transition: 0.2s;
          -ms-transition: 0.2s;
          -o-transition: 0.2s;
          transition: 0.2s;
        }
      }
      .delivery-element-button-more-opened {
        .delivery-element-button-more-icon {
          transform: rotate(180deg);
        }
      }
      .delivery-element-error {
        margin-top: 20px;
        padding: 10px;
        background: #f1cfcf;
        color: #d03349;
        font-size: 14px;
      }
      .delivery-element-details {
        display: none;
        margin-top: 25px;
      }
      .delivery-element-description {
        font-size: 14px;
        line-height: 24px;
        color: #808080;
      }
      .delivery-element-paysystems-block {
        margin-top: 25px;
      }
      .delivery-element-paysystems-title {
        font-size: 18px;
        line-height: 22px;
        color: #808080;
      }
      .delivery-element-paysystems {
        margin-top: 20px;
      }
      .delivery-element-paysystem {
        margin-bottom: 10px;
      }
      .delivery-element-paysystem-logo {
        width: 65px;
        padding-right: 10px;

        img {
          max-width: 100%;
          max-height: 100%;
        }
      }
      .delivery-element-paysystem-name {
        font-size: 14px;
        line-height: 14px;
        color: #808080;
      }
    }
  }

  @media all and (max-width: 600px) {
    padding: 30px 5px 10px;

    .#{$class}-current-city {
      margin-bottom: 35px;
      font-size: 24px;
      line-height: 32px;
    }

    .#{$class}-list-wrap {
      .#{$class}-element {
        padding: 20px;

        .delivery-element-logo {
          width: 75px;
          padding-right: 15px;
        }
        .delivery-element-name-wrap {
          padding-right: 15px;
        }
        .delivery-element-name {
          font-size: 14px;
          line-height: 18px;
        }
        .delivery-element-price {
          padding-right: 15px;
          font-size: 15px;
          line-height: 18px;
        }
      }
    }
  }
  @media all and (max-width: 400px) {
    .#{$class}-current-city {
      margin-bottom: 25px;
      font-size: 20px;
      line-height: 24px;

      &-name-wrap {
        .#{$class}-current-city-icon {
          top: 6px;
        }
      }
    }

    .#{$class}-params {
      .#{$class}-param-quantity {
        margin-bottom: 15px;
        padding-right: 0;
      }
      .#{$class}-param-basket .#{$class}-param-content {
        padding-top: 0;
      }
    }

    .#{$class}-list-wrap {
      .#{$class}-element {
        .delivery-element-logo {
          display: none;
        }
        .delivery-element-name-wrap {
          margin-bottom: 10px;
        }
        .delivery-element-price {
          text-align: left;
        }
        .delivery-element-description {
          font-size: 12px;
          line-height: 18px;
        }
        .delivery-element-paysystems-title {
          font-size: 16px;
          line-height: 18px;
        }
      }
    }
  }
}