.cart_image{
  max-width: 100px;
  width: 100%;
  height: auto;
}
ol.stepper {
    --default-b: lightgrey;
    --default-c: black;
    --active-b: rgb(0, 0, 0);
    --active-c: white;
    --circle: 3em; /* size of circle */
    --b: 1px; /* line thickness */
  
    display: flex;
    list-style: none;
    justify-content: space-between;
    background: linear-gradient(var(--default-b) 0 0) no-repeat 50%
      calc((var(--circle) - var(--b)) / 2) / 100% var(--b);
    counter-reset: step;
    margin: 35px 0px 25px 0px;
    padding: 0;
    font-size: 18px;
    font-weight: bold;
    counter-reset: step;
    overflow: hidden;
  }
  ol.stepper li {
    display: grid;
    place-items: center;
    gap: 5px;
    font-family: sans-serif;
    position: relative;
  }
  ol.stepper li span{
    font-size: 14px;
  }
  ol.stepper li::before {
    content: counter(step) " ";
    counter-increment: step;
    display: grid;
    place-content: center;
    aspect-ratio: 1;
    height: var(--circle);
    border: 5px solid #fff;
    box-sizing: border-box;
    background: var(--active-b);
    color: var(--active-c);
    border-radius: 0;
    font-family: monospace;
    z-index: 1;
  }
  ol.stepper li.active ~ li::before {
    background: var(--default-b);
    color: var(--default-c);
  }
  ol.stepper li.active::after {
    content: "";
    position: absolute;
    height: var(--b);
    right: 100%;
    top: calc((var(--circle) - var(--b)) / 2);
    width: 100vw;
    background: var(--active-b);
  }
  
  .payment_method .method_item{
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 15px;
    cursor: pointer;
  }
  .payment_method .method_item.active{
    border: 1px solid #202020;
  }

/* Constrain quantity input responsively instead of inline fixed widths */
.quantity-input{
  max-width: 60px;
  width: 100%;
}

/* small thumbnail helper used in several templates */
.thumb-img{
  max-width: 60px;
  width: 100%;
  height: auto;
}

/* checkout image responsive sizing */
.checkout-img{
  max-width: 100px;
  width: 100%;
  height: auto;
}
.checkout-image{
  width: 100%;
  max-width: 120px;
}
.cart-page-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}
ol.stepper {
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0 10px;
}
ol.stepper li {
  min-width: 120px;
  flex: 1 1 100px;
}
ol.stepper li::before {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.95rem;
}
.cart_section {
  width: 100%;
}
.cart_section .cart_header,
.cart_section .cart_body {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(150px, 1fr) minmax(120px, 1fr);
  gap: 15px;
  align-items: center;
}
.cart_section .cart_body {
  align-items: start;
}
.cart_section .cart_body .product {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}
.cart_section .cart_body .product img {
  max-width: 120px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.cart_section .cart_body .quantity,
.cart_section .cart_body .total {
  justify-self: end;
}
.cart_section .cart_body .quantity_box {
  justify-content: flex-end;
}
.cart_section .cart_body .product > div {
  width: 100%;
}
@media (max-width: 991.98px) {
  .cart_section .cart_header,
  .cart_section .cart_body {
    grid-template-columns: 1fr 150px;
  }
  .cart_section .cart_body .product {
    gap: 10px;
  }
  .cart_section .cart_body .quantity,
  .cart_section .cart_body .total {
    justify-self: start;
  }
  .cart_section .cart_body .quantity_box {
    justify-content: flex-start;
  }
}
@media (max-width: 767.98px) {
  .cart_section .cart_header {
    display: none;
  }
  .cart_section .cart_body {
    grid-template-columns: 1fr;
    padding: 10px 0;
  }
  .cart_section .cart_body .product {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .cart_section .cart_body .product img {
    max-width: 180px;
    margin: 0 auto 12px;
  }
  .cart_section .cart_body .quantity_box {
    justify-content: flex-start;
    width: 100%;
  }
  .cart_section .cart_body .quantity,
  .cart_section .cart_body .total,
  .cart_section .cart_body .product .text-danger {
    width: 100%;
  }
  .cart_section .cart_body .total {
    margin-top: 10px;
  }
  .cart-page-container {
    padding: 0 12px;
  }
  .cart-page-container .row {
    margin-left: 0;
    margin-right: 0;
  }
  .cart-page-container .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }
  .cart-page-container .card.rounded-0.border.border-dark.p-2.mb-2 {
    margin: 15px 0;
  }
  .cart-page-container .text-end.mb-lg-5.mb-1 {
    padding: 0;
  }
}
@media (max-width: 575.98px) {
  .cart_section {
    padding: 0;
  }
  .cart_section .cart_body {
    width: 100%;
    margin: 0;
  }
  ol.stepper {
    gap: 8px;
  }
  ol.stepper li {
    min-width: 90px;
  }
  ol.stepper li.active::after {
    width: 100%;
  }
}
