@if $qty-stepper-enabled {
  .stepper {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: $qty-stepper-wrapper-width;

    .action {
      width: $qty-stepper-button-width;
      padding: $qty-stepper-button-padding;
      border: 1px solid $qty-stepper-button-border-color;

      .details-qty & {
        border-color: darken($qty-stepper-button-border-color, 20%);
      }

      span {
        @include sr-only;
      }

      &:active:before {
        position: relative;
        top: 1px;
      }
    }

    &__step-down {
      @include ms-icon($qty-stepper-down-icon);
    }

    .input-text,
    input {
      width: $qty-stepper-field-width;
      text-align: center;
      padding-left: 4px !important;
      padding-right: 4px !important;
    }

    &__step-up {
      @include ms-icon($qty-stepper-up-icon);
    }
  }

  .field.qty {
    margin-left: auto;
    margin-right: auto;
    max-width: $qty-stepper-max-width;

    label.fl-label {
      left: 50% !important;
      margin-left: -16px !important;
      margin-bottom: 0;
    }

    .label:not(.fl-label) {
      position: relative;
      top: 12px;
      width: 100%;
      font-size: map_get($float-labels-defaults, 'font-size-small');
      font-weight: map_get($float-labels-defaults, 'font-weight');
      color: $input-placeholder-color;
      text-transform: uppercase;
      text-align: center;
      margin-bottom: 4px;
      text-shadow: -1px -1px 0 $white,
      1px -1px 0 #fff, -1px 1px 0 $white,
      1px 1px 0 $white;
    }
  }

  .details-qty {
    text-align: center;
    max-width: 130px;
    margin-top: 8px;

    .label {
      display: none;
      margin-bottom: 0;
    }

    .cart-item-qty {
      padding-top: 4px !important;
      padding-bottom: 4px !important;
    }
  }

  .block-minicart .minicart-items {
    .product.options {
      @include respond-to-down(smm) {
        margin-bottom: 8px;
      }
    }

    .product-item-pricing .details-qty {
      @include respond-to-down(smm) {
        width: 100%;
        padding-left: 0;
      }
    }
  }

  .cart-container-main .cart.table .col.qty {
    max-width: 120px;
  }
}