@import '../helpers/helpers';
@import '../partials/footer_basket';

.page_basket {
  .notification-area {
    @include make-col-ready;
    @include make-col(12);
    margin-bottom: 2rem;

    @include media-breakpoint-up(md) {
      margin-bottom: 0;

      &.mobile {
        display: none;
      }
    }

    @include media-breakpoint-down(sm) {
      padding-right: 0;
      padding-left: 0;
      margin-bottom: 0;

      &.desktop {
        display: none;
      }
    }

    .notification {
      margin-bottom: 20px;
    }
  }

  .page-header {
    @include media-breakpoint-down(sm) {
      padding-bottom: 0;

      &::before {
        display: none;
      }
    }

    &__back-link {
      margin-bottom: 0;

      @include media-breakpoint-down(sm) {
        margin-bottom: 20px;
      }
    }
  }

  .content {
    .checkout-widget_order-summary {
      @include media-breakpoint-down(sm) {
        display: none;
      }
    }
  }

  // sass-lint:disable no-important
  .order-line__img-link {
    @include media-breakpoint-up(md) {
      display: none !important;
    }
  }

  .order-line__img-static {
    @include media-breakpoint-up(md) {
      display: block !important;
    }
  }

  .order-line__title_link {
    display: none !important;
  }

  .order-line__title_static {
    display: block !important;
  }

  .checkout-voucher_fixed {
    @include media-breakpoint-down(sm) {
      margin-bottom: 20px !important;
    }

    .accordion__content {
      @include media-breakpoint-down(sm) {
        &-inner {
          padding: 0;
        }

        form {
          padding: 0 15px;

          .form-row__field {
            padding: 0;
          }
        }
      }
    }
  }

  &_asm {
    .checkout-widget_order-summary {
      .checkout-widget {
        &_email {
          margin-bottom: 0;
          border-bottom: 1px solid $gray;
          padding: 20px 0;
        }

        &__header {
          text-align: left;
        }

        &__email {
          word-break: break-all;
        }
      }
    }
  }
}
