.medshi-checkout-shell {
  max-width: 1180px;
  width: 100%;
}

.medshi-checkout-shell .medshi-pagehead {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  padding: 14px 0 12px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.medshi-checkout-shell .medshi-pagehead .breadcrumb {
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.medshi-checkout-shell .medshi-pagehead__title {
  margin: 0;
  color: #111827;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
}

.medshi-checkout-shell > .row {
  margin-left: 0;
  margin-right: 0;
}

.medshi-checkout-shell #content.medshi-checkout-card {
  float: none;
  width: 100%;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  border: 1px solid #e8ebf0;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.medshi-checkout-card .simple-content,
.medshi-checkout-card .simplecheckout {
  margin: 0;
  padding: 0;
}

.medshi-checkout-layout {
  padding: 24px;
}

.medshi-checkout-layout,
.medshi-checkout-layout .simplecheckout-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  column-gap: 28px;
  row-gap: 0;
  align-items: start;
}

.medshi-checkout-layout .simplecheckout-step {
  grid-column: 1 / -1;
  padding: 0;
}

.medshi-checkout-layout .simplecheckout-left-column,
.medshi-checkout-layout .simplecheckout-right-column,
.medshi-checkout-card .simplecheckout-step > .simplecheckout-left-column,
.medshi-checkout-card .simplecheckout-step > .simplecheckout-right-column {
  float: none;
  width: auto !important;
  min-width: 0;
  max-width: none;
  margin: 0;
}

.medshi-checkout-card .simplecheckout-step > .simplecheckout-left-column {
  grid-column: 1;
}

.medshi-checkout-card .simplecheckout-step > .simplecheckout-right-column {
  grid-column: 2;
  border-left: 1px solid #e8ebf0;
  padding-left: 24px;
}

.medshi-checkout-layout #simplecheckout_customer,
.medshi-checkout-layout #simplecheckout_payment_address,
.medshi-checkout-layout #simplecheckout_shipping_address,
.medshi-checkout-layout #simplecheckout_shipping,
.medshi-checkout-layout #simplecheckout_payment,
.medshi-checkout-layout #simplecheckout_comment {
  grid-column: 1;
}

.medshi-checkout-layout #simplecheckout_cart,
.medshi-checkout-layout #simplecheckout_summary,
.medshi-checkout-layout #simplecheckout_help {
  grid-column: 2;
}

.medshi-checkout-layout #simplecheckout_customer {
  grid-row: 1;
}

.medshi-checkout-layout #simplecheckout_cart {
  grid-row: 1;
}

.medshi-checkout-layout #simplecheckout_payment_form {
  grid-column: 1;
  grid-row: 2;
}

.medshi-checkout-layout .simplecheckout-block {
  min-width: 0;
  margin: 0 0 20px;
}

.medshi-checkout-layout #simplecheckout_cart {
  border-left: 1px solid #e8ebf0;
  padding-left: 24px;
}

.medshi-checkout-card .simplecheckout-step > .simplecheckout-right-column #simplecheckout_cart {
  border-left: 0;
  padding-left: 0;
}

.medshi-checkout-card .checkout-heading {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
}

.medshi-checkout-card .simplecheckout-block-content {
  padding: 0;
}

.medshi-checkout-card .form-horizontal .form-group {
  margin-left: 0;
  margin-right: 0;
}

.medshi-checkout-card .form-control {
  height: 42px;
  border-color: #dfe3ea;
  border-radius: 4px;
  box-shadow: none;
}

.medshi-checkout-card .simplecheckout-cart {
  width: 100%;
  margin-bottom: 14px;
  border: 0;
}

.medshi-checkout-card .simplecheckout-cart th {
  display: none;
}

.medshi-checkout-card .simplecheckout-cart td {
  border: 0;
  padding-top: 8px;
  padding-bottom: 8px;
  vertical-align: middle;
}

.medshi-checkout-card .simplecheckout-cart td.image {
  width: 58px;
}

.medshi-checkout-card .simplecheckout-cart td.image img,
.medshi-checkout-card .simplecheckout-cart td.name .image img {
  width: 47px;
  height: 47px;
  object-fit: cover;
  border: 1px solid #edf0f4;
  border-radius: 6px;
}

.medshi-checkout-card .simplecheckout-cart td.name .image {
  display: none;
}

.medshi-checkout-card .simplecheckout-cart td.model,
.medshi-checkout-card .simplecheckout-cart td.price,
.medshi-checkout-card .simplecheckout-cart td.remove {
  display: none;
}

.medshi-checkout-card .simplecheckout-cart td.quantity {
  width: 82px;
}

.medshi-checkout-card .simplecheckout-cart td.quantity .input-group {
  max-width: none !important;
}

.medshi-checkout-card .simplecheckout-cart td.quantity .input-group-btn {
  display: none;
}

.medshi-checkout-card .simplecheckout-cart td.quantity input {
  width: 42px;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  box-shadow: none;
  pointer-events: none;
}

.medshi-checkout-card .simplecheckout-cart td.total {
  width: 88px;
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}

.medshi-checkout-card .simplecheckout-cart-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 0;
  border-top: 1px solid #edf0f4;
  font-weight: 700;
}

.medshi-checkout-card .simplecheckout-button-block {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 412px 24px 24px;
  border: 0;
  background: #fff;
}

.medshi-checkout-card .simplecheckout-button-right {
  float: none;
  text-align: right;
}

.medshi-checkout-card #simplecheckout_button_confirm {
  min-width: 240px;
  padding: 11px 22px;
  border: 0;
  border-radius: 4px;
  background: #d80f16;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 991px) {
  .medshi-checkout-layout,
  .medshi-checkout-layout .simplecheckout-step {
    grid-template-columns: 1fr;
  }

  .medshi-checkout-card .simplecheckout-step > .simplecheckout-left-column,
  .medshi-checkout-card .simplecheckout-step > .simplecheckout-right-column {
    grid-column: 1;
  }

  .medshi-checkout-card .simplecheckout-step > .simplecheckout-right-column {
    border-left: 0;
    border-top: 1px solid #e8ebf0;
    padding-left: 0;
    padding-top: 18px;
  }

  .medshi-checkout-layout {
    padding: 18px;
  }

  .medshi-checkout-layout #simplecheckout_customer,
  .medshi-checkout-layout #simplecheckout_payment_address,
  .medshi-checkout-layout #simplecheckout_shipping_address,
  .medshi-checkout-layout #simplecheckout_shipping,
  .medshi-checkout-layout #simplecheckout_payment,
  .medshi-checkout-layout #simplecheckout_comment,
  .medshi-checkout-layout #simplecheckout_payment_form,
  .medshi-checkout-layout #simplecheckout_cart,
  .medshi-checkout-layout #simplecheckout_summary,
  .medshi-checkout-layout #simplecheckout_help {
    grid-column: 1;
  }

  .medshi-checkout-layout #simplecheckout_cart {
    border-left: 0;
    border-top: 1px solid #e8ebf0;
    padding-left: 0;
    padding-top: 18px;
  }

  .medshi-checkout-card .simplecheckout-button-block {
    padding-right: 18px;
  }
}

@media (max-width: 767px) {
  .medshi-checkout-shell {
    padding-left: 15px;
    padding-right: 15px;
  }

  .medshi-checkout-card .simplecheckout-cart td.quantity,
  .medshi-checkout-card .simplecheckout-cart td.total {
    width: auto;
  }

  .medshi-checkout-card #simplecheckout_button_confirm {
    width: 100%;
    min-width: 0;
  }

  .medshi-checkout-card .simplecheckout-button-block {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 18px;
  }
}

/* Fallback for Simple templates that render blocks without medshi-checkout-layout. */
.medshi-checkout-card .simplecheckout > .simplecheckout-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  column-gap: 28px;
  row-gap: 0;
  align-items: start;
  padding: 24px;
}

.medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_customer,
.medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_payment_address,
.medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_shipping_address,
.medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_shipping,
.medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_payment,
.medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_comment {
  grid-column: 1;
}

.medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_cart,
.medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_summary,
.medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_help {
  grid-column: 2;
}

.medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_customer {
  grid-row: 1;
}

.medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_cart {
  grid-row: 1;
}

.medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_payment_form {
  grid-column: 1;
  grid-row: 2;
}

.medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_cart {
  border-left: 1px solid #e8ebf0;
  padding-left: 24px;
}

@media (max-width: 991px) {
  .medshi-checkout-card .simplecheckout > .simplecheckout-step {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_customer,
  .medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_payment_address,
  .medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_shipping_address,
  .medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_shipping,
  .medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_payment,
  .medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_comment,
  .medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_payment_form,
  .medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_cart,
  .medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_summary,
  .medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_help {
    grid-column: 1;
  }

  .medshi-checkout-card .simplecheckout > .simplecheckout-step #simplecheckout_cart {
    border-left: 0;
    border-top: 1px solid #e8ebf0;
    padding-left: 0;
    padding-top: 18px;
  }
}
