/*
  Payment page
*/
div.BasketPaymentMethodDCCForm select.ep-uiInput.ep-uiInput-select {
  width: 300px;
}
div.BasketPaymentMethodDCCForm button[type=submit] {
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/*
  Basket
*/
textarea.BasketComment {
  height: 93px;
}
.ContentArea .Link:hover {
  font-weight: bold;
}
@media (min-width: 568px) {
  form#BasketForm ~ hr.Separator {
    display: none;
  }

  table#BasketTable > tbody > tr.ProductItem > td {
    border-bottom: 2px solid #c8c8c8;
    padding-top: 20px;
  }
  table#BasketTable > tbody > tr.ProductItem + tr > td {
    padding-top: 20px;
  }
  table#BasketTable > tbody > tr.ShippingMethod > td,
  table#BasketTable > tbody > tr.ShippingMethod + tr > td,
  table#BasketTable > tbody > tr.TaxArea > td {
    border-top: 2px solid #c8c8c8;
    padding-top: 20px;
  }
}

/*
  Coupon
*/
#RedeemCouponButton input {
  width: initial;
}
table#BasketTable tr td .DialogMessage,
table#BasketTable tr td .ErrorMessage {
  margin-bottom: 0;
}

ul.OrderProcess {
  display: flex;
  justify-content: center;
}

@media (min-width: 568px) and (max-width: 767px) {
  ul.OrderProcess {
    width: 80%;
  }
  ul.OrderProcess li {
    width: 25%;
    background: none !important;
    padding-right: 0;
  }
  ul.OrderProcess li a {
    margin: auto;
  }
  ul.OrderProcess li:last-child {
    width: 25%;
  }
  ul.OrderProcess li span.ItemLabel {
    white-space: nowrap;
  }
  ul.OrderProcess li span.ExplainItem {
    display: none !important;
  }
  table#BasketTable tr td:nth-child(2) {
    width: 250px;
  }
  table.Basket td table.productBasketImage td,
  input[name=Quantity] {
    display: block;
    clear: both;
  }
  table#BasketTable img {
    max-width: 100% !important;
  }

  .basketShippingSelect.ep-js.ep-uiInput.ep-uiInput-select, .basketPaymentSelect.ep-js.ep-uiInput.ep-uiInput-select {
    width: 100% !important;
  }
  button[name=Delete],
  #BasketTable .ep-sprite.Icon.TrashIcon {
    width: 43px !important;
    margin-right: 0 !important;
    height: 43px !important;
    background-size: 43px !important;
  }

}

@media (max-width: 567px) {
  ul.OrderProcess {
    width: 100%;
    min-height: initial;
  }
  ul.OrderProcess li.PassedItem a,
  ul.OrderProcess li:last-child {
    width: 70px;
  }
  ul.OrderProcess li,
  html body .ActiveItem a,
  html body .ActiveItem a:active,
  html body .ActiveItem a:hover  {
    padding-right: 0;
    width: 70px;
    height: 75px;
  }
  ul.OrderProcess li .ItemImage {
    width: 43px;
    height: 43px;
  }
  ul.OrderProcess li .ItemLabel,
  ul.OrderProcess li span.ExplainItem  {
    display: none !important;
  }

  ul.OrderProcess li.ActiveItem .Icon.BasketIconLarge,
  ul.OrderProcess li .Icon.BasketIconLarge,
  ul.OrderProcess li.ActiveItem .Icon.AddressIconLarge,
  ul.OrderProcess li .Icon.AddressIconLarge,
  ul.OrderProcess li.ActiveItem .Icon.ConfirmOrderIconLarge,
  ul.OrderProcess li .Icon.ConfirmOrderIconLarge,
  ul.OrderProcess li.ActiveItem .Icon.PaymentIconLarge,
  ul.OrderProcess li .Icon.PaymentIconLarge,
  #BasketTable .ep-sprite.Icon.TrashIcon {
    width: 43px !important;
    height: 43px !important;
    background-size: 43px !important;
  }

  .basketShippingSelect.ep-js.ep-uiInput.ep-uiInput-select, .basketPaymentSelect.ep-js.ep-uiInput.ep-uiInput-select {
    width: 100% !important;
  }

  button[name=Delete] {
    width: 43px !important;
    margin-right: 0 !important;
  }

  
  
  table#BasketTable thead {
    display: none;
  }
  table#BasketTable tr,
  table#BasketTable tr td {
    display: block;
    padding-right: 0 !important;
  }
  table#BasketTable tr {
    clear:both;
  }

  table#BasketTable > tbody > tr.ProductItem::after {
    border-bottom: 2px solid #c8c8c8;
    content: "";
    display: block;
    clear: both;
    margin-bottom: 20px;
  }
  table#BasketTable > tbody > tr.ShippingMethod::before,
  table#BasketTable > tbody > tr.ShippingMethod + tr::before,
  table#BasketTable > tbody > tr.TaxArea::before {
    border-top: 2px solid #c8c8c8;
    content: "";
    display: inline-block;
    clear: both;
    margin-bottom: 20px;
    width: 100%;
  }

  /*
    Catch all for empty columns . . .
  */
  table#BasketTable tr td:empty {
    display: none;
  }

  /*
    Basket rows for product lines
  */
  #BasketTable .ProductNo,
  .ProductNo {
    font-size: 11px;
  }
  table#BasketTable tr.ProductItem td:nth-child(1) {
    float: left;
  }
  table#BasketTable tr.ProductItem td:nth-child(2) {
    float: right;
  }
  table#BasketTable tr.ProductItem td:nth-child(3) {
    float: left;
    clear: both;
  }
  table#BasketTable tr.ProductItem td:nth-child(4) {
    float: right;
  }
  table#BasketTable tr.ProductItem td:nth-child(5) {
    float: right;
    clear: right;
  }
  table#BasketTable tr.ProductItem td:nth-child(6) {
    clear:both;
    float: right;
  }
  table#BasketTable tr.ProductItem td:nth-child(3)::before {
    content: "UP:";
    font-weight: 600;
  }
  table#BasketTable tr.ProductItem td:nth-child(4)::before {
    content: "Discount: ";
    font-weight: 600;
  }
  table#BasketTable tr.ProductItem td:nth-child(5)::before {
    content: "TP: ";
    font-weight: 600;
  }

  table#BasketTable img {
    max-width: 100% !important;
  }

  #BasketForm table.Basket td table.productBasketImage td {
    clear:both;
    float: right;
    text-align: right !important;
  }

  table.productBasketImage td a {
    display: inline-block;
    max-width: 200px;
  }

  /*
    Basket rows with first column spanning 2 columns
  */
  #BasketForm table.Basket td[colspan="2"] {
    float: left;
    max-width: 75%;
  }
  #BasketForm table.Basket td[colspan="2"] + td {
    display: none;
  }
  #BasketForm table.Basket td[colspan="2"] + td + td {
    display: none;
  }
  #BasketForm table.Basket td[colspan="2"] + td + td + td,
  #BasketForm table.Basket td[colspan="2"] + td + td + td + td {
    float: right;
    clear: right;
  }

  /*
    Basket row for tax area
  */
  #BasketForm table.Basket tr.TaxArea td:nth-child(1) {
    float: left;
  }
  #BasketForm table.Basket tr.TaxArea td:nth-child(2) {
    float: right;
  }
  #BasketForm table.Basket tr.TaxArea td:nth-child(3),
  #BasketForm table.Basket tr.TaxArea td:nth-child(4),
  #BasketForm table.Basket tr.TaxArea td:nth-child(5) {
    display: none;
  }

  .ShippingOptionContainer .HalfWidth,
  #CustomerComment {
    width: 100%;
    display: block;
    clear: both;
  }
  .ShippingOptionContainer .RightPadding {
    padding-right: 0 !important;
  }
  
  
  div.AddressOptions {
    width: 100%;
    position: initial;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  #BasketOfferForm table.Basket tbody > tr {
    padding: 10px 0 10px 0;
  }
  #BasketOfferForm table td.Address {
    display: block;
    width: 100% !important;
  }
  #BasketOfferForm .CustomerInfo.NoPadding {
    margin-top: -40px;
  }
  #BasketOfferForm td.Address:nth-child(2) {
    margin-top: 10px;
    padding-top: 20px;
    /*border-top: 2px solid #c8c8c8;*/
  }

  #BasketOfferForm td[data-th="Quantity"] {
    float: left;
  }
  #BasketOfferForm td[data-th="Name"],
  #BasketOfferForm td[data-th="Name"] table.productBasketImage td {
    float: right;
    text-align: right;
    clear: right;
  }
  #BasketOfferForm td[data-th="Unit price"] {
    float: left;
    clear: both;
  }
  #BasketOfferForm td[data-th="Unit price"]::before {
    content: "UP:";
    font-weight: 600;
  }
  #BasketOfferForm td[data-th="Discount"] {
    display: none !important;
    float: right;
  }
  #BasketOfferForm td[data-th="Discount"]::before {
    content: "Discount: ";
  }
  #BasketOfferForm td[data-th="Total price"] {
    float: right;
    clear: right;
  }
  #BasketOfferForm td[data-th="Total price"]::before {
    content: "TP: ";
    font-weight: 600;
  }

  /*
    Rows with first column spanning 2 columns
  */
  #BasketOfferForm table.Basket td[colspan="2"] {
    float: left;
    font-weight: 600;
    max-width: 75%;
  }
  #BasketOfferForm table.Basket td[colspan="2"] + td {
    display: none;
  }
  #BasketOfferForm table.Basket td[colspan="2"] + td + td {
    display: none;
  }
  #BasketOfferForm table.Basket td[colspan="2"] + td + td + td {
    float: right;
  }
  /*
    Shipping method row
  */
  #BasketForm tr.ShippingMethod,
  #BasketOfferForm tr.ShippingMethod,
  #BasketOfferForm tr.PaymentMethod,
  #BasketOfferForm tr.TaxArea {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 8px;
    padding-bottom: 8px;
    /*border-top: 2px solid #c8c8c8;*/
  }
  #BasketForm tr.ShippingMethod td:nth-child(1),
  #BasketOfferForm tr.ShippingMethod td:nth-child(1),
  #BasketOfferForm tr.PaymentMethod td:nth-child(1),
  #BasketOfferForm tr.TaxArea td:nth-child(1) {
    order: 0;
    font-weight: 600;
  }
  #BasketForm tr.ShippingMethod td:nth-child(2),
  #BasketOfferForm tr.ShippingMethod td:nth-child(2),
  #BasketOfferForm tr.PaymentMethod td:nth-child(2),
  #BasketOfferForm tr.TaxArea td:nth-child(2) {
    order: 2;
  }
  #BasketForm tr.ShippingMethod td:nth-child(5),
  #BasketOfferForm tr.ShippingMethod td:nth-child(5),
  #BasketOfferForm tr.PaymentMethod td:nth-child(5),
  #BasketOfferForm tr.TaxArea td:nth-child(5) {
    order: 1;
  }

  /*
    Payment page
  */
  div.BasketPaymentMethodDCCForm table * {
    display: block;
    padding-left: 0 !important;
    width: 100% !important;
  }

}
