form .button {
  margin: 20px 0 0;
  width: 100%;
}
  
.checkout_wrapper .buttons_container {
  justify-content: space-between;
  margin-left: 0;
}
  
.checkout_panel {
  width: 520px;
  padding: 20px;
  margin-right: 40px;
  background-color: var(--black);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 10px;
  border: 2px solid var(--white);
}

.checkout_panel .separator {
  background-color: var(--white);
}
  
.checkout_panel h3 {
  margin: 0;
  margin-bottom: -10px;
}
  
.hidden {
  display: none;
}
  
.breadcrumbs {
  display: flex;
  align-items: center;
  margin: 7px 0 -7px 0;
}
  
.breadcrumbs h5 {
  margin: 0;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--beaver);
  cursor: pointer;
  transition: 0.1s all ease-in-out;
}
  
.breadcrumbs .disabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.3;
  color: var(--white);
}
  
.checkout_chevron {
  font-size: 12px;
  opacity: 0.3;
  width: 10px;
  margin: 0 10px;
}

#instructions {
  margin-bottom: 0;
}

.purchased_before {
  display: flex;
  align-items: center;
}

.purchased_before p {
  font-weight: 500;
  margin: 0;
}
  
.checkout_panel .box-element {
  margin-top: -15px;
}

.box-element form {
  width: 100%;
}
  
.form_label {
  margin-top: 10px !important;
  margin-bottom: -5px !important;
  font-weight: 500;
  color: var(--white);
  text-align: left !important;
}

.box-element .form_label:first-of-type {
  margin-top: 15px !important;
}

.checkout_form_field {
  color: var(--white);
  background-color: var(--trans-white);
  border: solid 2px var(--white);
  height: 46px;
  width: 100%;
  padding-left: 15px;
  border-radius: 5px;
  margin: 10px 0;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
  font-family: 'Roboto', sans-serif !important;
}

.checkout_form_field::placeholder {
  color: var(--white);
}

.checkout_form_field:focus {
  outline: var(--white);
}

.final_price {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  width: 70px;
  text-align: right;
}

.final_total {
  display: flex;
  justify-content: space-between;
}

/****************** Saved Addresses ********************/
#form h4 {
  margin: 20px 0 10px;
}

.saved_address,
.applied_coupon,
.saved_method {
  padding: 10px 18px;
  box-sizing: border-box;
  margin-top: 20px;
  background-color: var(--trans-white);
  border: 2px solid var(--white);
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s all ease-in-out;
}

.saved_method {
  padding: 20px 18px;
}

.saved_method p {
  margin: 3px;
}

.saved_address:first-of-type,
.saved_method:first-of-type {
  margin-top: 15px;
}

.saved_address:hover,
.saved_method:hover {
  background-color: var(--white);
  color: var(--black);
  transition: 0.2s all ease-in-out;
}

.saved_address.selected,
.saved_method.selected {
  background-color: var(--brown);
  border: 2px solid var(--brown);
  color: var(--white);
  pointer-events: none;
  cursor: not-allowed;
}

/****************** Coupon Codes ********************/
.applied_coupon {
  display: flex;
  align-items: center;
  cursor: auto;
}

.applied_coupon p {
  margin: 0;
}

.applied_coupon .coupon_code {
  margin-right: 30px;
}

.applied_coupon .coupon_saving {
  font-weight: 700;
}

.applied_coupon i {
  margin-left: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background-color: var(--black);
  color: var(--white);
  cursor: pointer;
  transition: 0.2s all ease-in-out;
}

.applied_coupon i:hover {
  opacity: 0.8;
  transition: 0.2s all ease-in-out;
}

.applied_coupon i:active {
  transform: scale(0.96);
  opacity: 1;
  background-position: 500px;
  transition: 0.1s all ease-in-out;
  outline: none;
}

.discounted {
  text-decoration: line-through;
  opacity: 0.5;
}
  
/****************** Cart Column ********************/
.cart_column {
  height: calc(100vh - 384px);
  min-height: 500px;
  max-height: 560px;
  position: sticky;
  top: 192px;
}

#cartWrapper,
#cartWrapper .box-element {
  height: 100%;
}

.cart_column h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  margin-bottom: -5px;
}

.cart_column h4 i {
  font-size: 20px;
  margin-bottom: 4px;
}

.cart_column p {
  margin: 10px 0;
}

.item_image {
  width: 70px;
  height: 70px;
  overflow: hidden;
  margin-right: 20px;
}

.item_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}

.basket_item {
  display: flex;
  align-items: stretch;
  margin: 15px 0;
  text-align: left;
}

.basket_item_info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 250px;
}

.basket_item h5 {
  margin: 0;
}

#payment-info .button_1 {
  margin-top: 17.5px;
  width: 100%;
}

#payment-info h4 {
  margin-top: 25px;
  margin-bottom: 5px;
}

#billing_address h4 {
  margin-top: 15px;
}

#make-payment,
#show-manual-form {
  margin-top: 25px;
  width: 100%;
}

.fa-credit-card {
  margin-right: 10px;
}

.coupon_form {
  display: flex;
}

#coupon_code {
  margin: 0;
}

#promo-button {
  width: max-content;
  margin: 0 0 0 15px;
}

.cart_column .promo_message {
  display: none;
  margin-top: 10px;
  color: red;
}

.show {
  display: block;
}

.save_shipping {
  display: flex;
  align-items: center;
  margin: 10px 0 15px;
}

.save_shipping p {
  font-weight: 700;
  margin: 0;
  margin-left: 10px;
}

.terms_message {
  text-align: center;
  width: 90%;
  margin: 20px auto;
}

.terms_message a {
  color: var(--white);
  text-decoration: underline;
  font-weight: 500;
  transition: 0.2s all ease-in-out;
}

.terms_message a:hover {
  color: var(--beaver);
  transition: 0.2s all ease-in-out;
}

.secure_message {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.5;
  font-size: 14px;
}

.secure_message i {
  margin-right: 8px;
}

.no_payment_notice {
  background-color: var(--trans-white);
  border: 2px solid var(--white);
  color: var(--white);
  padding: 20px;
  box-sizing: border-box;
  margin-top: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
}

/*************************** Checkbox styling **********************************/
#payment-form input[type="checkbox"] {
  display: none; /* Hide the default checkbox */
}

#payment-form label {
  position: relative;
  padding-left: 30px; /* Space for the custom checkbox */
  cursor: pointer;
  line-height: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

#payment-form label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--white);
  background-color: var(--trans-white);
  border-radius: 3px;
}

#payment-form input[type="checkbox"]:checked + label::before {
  background-color: var(--brown);
  border-color: var(--brown);
}

#payment-form input[type="checkbox"]:checked + label::after {
  content: '\f00c'; 
  font-family: 'Font Awesome 5 Free'; /* The correct font family */
  font-weight: 900; /* Use 900 for solid icons */
  position: absolute;
  left: 5px;
  top: 1px;
  color: white;
  font-size: 12px;
}

.final_checkboxes {
  margin-bottom: -10px;
  display: flex;
  flex-direction: column;
}
/*************************************************************/

@media(max-width: 1150px) {
  .checkout_panel,
  .order_summary {
    width: calc((100% - 20px) / 2);
  }

  .checkout_panel {
    margin-right: 20px;
  }
}

@media(max-width: 950px) {
  .checkout_wrapper {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .checkout_panel,
  .order_summary {
    width: 100%;
  }

  .checkout_panel {
    margin-bottom: 40px;
  }

  .checkout_wrapper h2 {
    text-align: center;
  }

  .checkout_wrapper .buttons_container {
    margin: 0;
  }
}

@media(max-width: 600px) {
  .checkout_panel h3 {
    text-align: center;
  }

  #promo-button {
    margin-left: 0px;
    margin-top: 10px;
  }

  .box-element h4 {
    font-size: 20px;
  }

  .breadcrumbs {
    justify-content: center;
  }
}

@media(max-width: 400px) {
  .final_price {
      display: none;
  }

  .basket_item_info {
    text-align: end;
  }
}