$namespace: 'intec-universe';
$component: 'sale-order-fast';
$template: 'default';
$class: #{$component};

.ns-#{$namespace}.c-#{$component}.c-#{$component}-#{$template} {
  display: block;
  min-width: 400px;
  font-size: 14px;
  font-style: normal;
  font-weight: normal;
  line-height: 1.5;
  color: #1d1d1d;

  .#{$class}-parts {}

  .#{$class}-part {
    &.#{$class}-part-product {
      border-right: 1px solid #F2F2F2;
    }
  }

  .#{$class}-product {
    display: block;
    width: 320px;
    margin-right: 45px;
    padding-bottom: 50px;
  }

  .#{$class}-product-name {
    display: block;
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
  }

  .#{$class}-product-info {
    margin-bottom: 24px;
  }

  .#{$class}-product-quantity {
    display: block;
    font-size: 14px;
    line-height: 16px;
    color: #808080;
    word-break: break-word;
  }

  .#{$class}-product-article {
    display: block;
    font-size: 14px;
    line-height: 16px;
    color: #808080;
    word-break: break-word;
  }

  .#{$class}-product-picture {
    position: relative;
    display: block;
    height: 360px;
    margin: 0 25px 38px 25px;
    font-size: 0;
    text-align: center;
    white-space: nowrap;

    &::after {
      content: '';
      display: inline-block;
      width: 0;
      height: 100%;
      vertical-align: middle;
      overflow: hidden;
    }
    img {
      display: inline-block;
      vertical-align: middle;
      max-width: 100%;
      max-height: 100%;
    }
  }

  .#{$class}-product-price {
    display: block;
  }

  .#{$class}-product-price-discount {
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    color: #404040;
  }

  .#{$class}-product-price-base {
    margin-top: 5px;
    color: #B0B0B0;
    text-decoration: line-through;
  }

  .#{$class}-form {
    .#{$class}-error,
    .#{$class}-message {
      padding-top: 30px;
    }
  }

  .#{$class}-title {
    display: block;
    font-size: 28px;
    line-height: 40px;
    color: #1B1E25;
  }

  .#{$class}-error {
    display: block;
    color: #ff0000;
  }

  .#{$class}-message {
    display: block;
    font-size: 16px;
  }

  .#{$class}-fields {
    display: block;
    margin: -10px 0;
    padding-top: 30px;
    min-height: 20px;
  }

  .#{$class}-field {
    display: block;
    padding: 10px 0;

    &[data-error="true"] {
      input[type="text"] {
        border-color: #ff0000;
      }
    }

    textarea {
      resize: none;
      height: 120px;
    }
  }

  .#{$class}-field-name {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
  }

  .#{$class}-field-error {
    display: block;
    font-size: 10px;
    color: #ff0000;
    margin-bottom: 5px;
  }

  .#{$class}-field-required {
    font-size: 12px;
    color: #ff0000;
  }

  .#{$class}-footer {
    display: block;
    padding-top: 32px;
  }

  .#{$class}-footer-parts {}
  .#{$class}-footer-part {}

  .#{$class}-footer-message {
    display: block;
    color: #808080;
    font-size: 13px;
  }

  .#{$class}-footer-consent {
    margin-bottom: 10px;
  }

  .#{$class}-submit-button {
    padding: 18px 36px;
    font-weight: 600;
    font-size: 10px;
    line-height: 10px;
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;

    &[disabled] {
      background-color: #CCCCCC;
      border-color: #CCCCCC;
      cursor: not-allowed;
    }
  }

  &[data-product="true"] {
    min-width: 800px;

    .#{$class}-form {
      margin-left: 40px;
    }
  }

  @media all and (max-width: 1000px) {
    &[data-product="true"] {
      min-width: 480px;

      .#{$class}-form {
        margin-left: 0;
      }
    }

    .#{$class}-part {
      &.#{$class}-part-product {
        display: none;
      }
    }
  }

  @media all and (max-width: 550px) {
    min-width: 240px !important;

    .#{$class}-title {
      font-size: 22px;
    }

    .#{$class}-footer-message {
      padding-top: 10px;
    }
  }
}