@import '../helpers/helpers';
@import '../partials/header_checkout';
@import '../components/steps';
@import '../partials/footer_checkout';
@import '../components/new-checkout-form';
@import 'checkout-confirmation-new';
@import '../components/checkout_order';
@import '../components/payments-checkout';
@import '../components/donation-cart-new';
@import 'checkout-tradepro';
@import '../components/billie-online-messaging';
@import '../components/billie-modal';

@import 'checkout-sign-in';
@import 'checkout_delivery-details';
@import 'checkout_delivery-address';
@import 'checkout_delivery-address-asm';
@import 'checkout_your-details';
@import 'checkout-widget';
@import 'checkout_edit-delivery-address';
@import 'checkout_terms-and-conditions';
@import 'checkout_merge-basket';
@import 'page_checkout-payment-details';
@import 'page_split-orders';
@import '../components/special-opening-schedule';
@import '../partials/footer_checkout-new';

//  ---- Fix for https://wickesit.atlassian.net/browse/ED-10053 ----
html {
  height: 100%;
}

body {
  &.page_checkout {
    height: 100%;

    main {
      min-height: calc(100% - 160px);
    }

    .right-aside {
      overflow-x: hidden;
    }
  }
}
//  --------

.new-checkout-login-wickes,
.new-checkout-login-guest,
.new-checkout-login-secure {
  .full-width-content {
    padding-bottom: 10px;
  }

  .content {
    padding: 0;
  }

  .new-checkout-form {
    &__submit-block {
      .btn-guest-checkout {
        margin-bottom: 20px;
      }
    }

    .question-block {
      display: flex;
      justify-content: space-between;
      align-items: baseline;

      .warning-required {
        margin: 0;
      }

      .forgot-link {
        text-decoration: none;
      }
    }

    .no-user-block {
      display: flex;

      .no-user-name {
        margin-right: 15px;
      }
    }

    .btn-guest-checkout-back {
      margin: 0 auto;
      max-width: 300px;
      margin-top: 40px;
    }

    .form-row {
      padding: 0;
    }
  }

  .footer-checkout {
    padding: 0 15px;
  }

  .modal {
    .modal-header {
      .modal-title {
        color: $blue-ocean;
        position: relative;
        top: 30px;
      }

      .fa-times {
        color: $blue;
        width: 30px;
        height: 30px;
      }
    }

    .modal-box__header::after {
      border: 0;
    }

    .form-row__action::before {
      border: 0;
      background: none;
    }

    .modal-reset {
      &-wrap {
        display: none;
      }

      &-block {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 30px 0 80px;
      }

      &-icon {
        margin-right: 25px;

        &__wrap {
          width: 80px;
          height: 80px;
          background-color: $green;
          border-radius: 50%;
          display: flex;
          justify-content: center;
          align-items: center;
        }

        .fa-check {
          width: 30px;
          height: 30px;
          color: $white;
        }
      }
    }
  }
}

.new-checkout-login-secure {
  .notification {
    margin-bottom: 17px;
  }
}

.banner-news {
  background: $pacific-depths;
  color: $white;
  margin: 0 -15px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: center;

  &__content {
    text-align: center;

    .description {
      margin-top: 5px;
      font-size: 14px;
      font-weight: 400;
      line-height: 22px;
    }

    & + .banner-news__image {
      margin-left: 5px;
    }
  }

  .banner-news__image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 41px;
    height: 41px;

    .svg-inline--fa.fa-shipping-fast {
      font-size: 1.7rem;
      height: auto;
    }
  }
}

@include media-breakpoint-down(sm) {
  .checkout-voucher {
    .form-row__error {
      padding: 0;
    }
  }
}

@include media-breakpoint-only(sm) {
  .checkout-voucher {
    .form-row {
      margin: 0;
      padding: 0;
    }
  }
}

@include media-breakpoint-up(sm) {
  .banner-news {
    margin: 0;
  }
}

@include media-breakpoint-up(md) {
  .banner-news {
    padding: 8px 30px;
  }
}
