/**
 * ==========================================================================
 * *										1. Variables
 * ==========================================================================
 */

:root {
  --body-bg: #ffffff;
  --color-primary: #F4F4F4;
  --color-secondary: #6c757d;
  --color-accent: #710014;
  --text-color-dark: #483A3D;
  --text-color-light: #ffffff;
  --font-main: Assistant, sans-serif;
  --font-product: Inter, sans-serif;
  --border-radius: 16px;
}

/**
 * =========================================================================================
 * --																 Checkbox 
 * =========================================================================================
 */

.form-row.place-order > .form-row,
.woocommerce-form__label-for-checkbox {
  display: flex !important;
  position: relative;
  align-items: center;
  cursor: pointer;
}

.form-row.place-order > .form-row > input,
.woocommerce-form__label-for-checkbox > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row.place-order > .form-row > label,
.woocommerce-form__label-for-checkbox > span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
}

.form-row.place-order > .form-row > label::before,
.woocommerce-form__label-for-checkbox > span::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid var(--color-accent);
}

.form-row.place-order > .form-row > label::after,
.woocommerce-form__label-for-checkbox > span::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  right: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17L4 12' stroke='%23483A3D' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  scale: 0;
  z-index: 2;
  border: 1px solid transparent;
}

.form-row.place-order > .form-row > input:checked + label::after,
.woocommerce-form__label-for-checkbox > input:checked + span::after {
  scale: 1;
}

.shipping__list_item input[type=radio],
.wc_payment_method input[type=radio],
.radio_choose_delivery_pickup input[type=radio],
.delivery-option input[type=radio] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  z-index: -10;
}

.shipping__list_item input[type=radio]:checked + label::after,
.wc_payment_method input[type=radio]:checked + label::after,
.radio_choose_delivery_pickup input[type=radio]:checked + label::after,
.delivery-option input[type=radio]:checked + label::after {
  scale: 1;
}

.shipping__list_item label,
.wc_payment_method label,
.radio_choose_delivery_pickup label,
.delivery-option label {
  display: flex !important;
  align-items: center;
  position: relative;
  cursor: pointer;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 8px;
}

.shipping__list_item label:last-child,
.wc_payment_method label:last-child,
.radio_choose_delivery_pickup label:last-child,
.delivery-option label:last-child {
  margin-bottom: 0;
}

.shipping__list_item label::before,
.wc_payment_method label::before,
.radio_choose_delivery_pickup label::before,
.delivery-option label::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  transition: all 0.3s ease;
  background: #fff;
}

.shipping__list_item label::after,
.wc_payment_method label::after,
.radio_choose_delivery_pickup label::after,
.delivery-option label::after {
  content: "";
  transition: all 0.3s ease;
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background-color: var(--color-accent);
  border-radius: 50%;
  scale: 0;
}

#ss-checkout {
  /* * ----------------------- SIDEBAR ----------------------- */
  /**
   * =========================================================================================
   * --																 STEP 1
   * =========================================================================================
   */
  /**
   * =========================================================================================
   * --																 STEP 3
   * =========================================================================================
   */
}

#ss-checkout .ss-checkout__layout {
  display: flex;
}

#ss-checkout .ss-checkout__main {
  flex: 1 1 auto;
  max-width: 1100px;
  padding-left: 70px;
}

#ss-checkout .ss-checkout__sidebar {
  flex: 0 0 650px;
  padding: 64px;
  position: relative;
  background-color: var(--color-primary);
  margin-right: auto;
}

#ss-checkout .ss-checkout__sidebar::before {
  content: "";
  display: block;
  background-color: var(--color-primary);
  width: 50vw;
  height: 100%;
  z-index: 1;
  right: 0;
  top: 0;
  position: absolute;
  z-index: -1;
}

#ss-checkout .ss-checkout__header {
  display: flex;
  flex-direction: column;
  padding-top: 40px;
}

#ss-checkout .ss-checkout__logo {
  width: 134px;
  margin-bottom: 60px;
}

#ss-checkout .ss-checkout__title {
  font-size: 40px;
  margin-bottom: 38px;
}

#ss-checkout .ss-checkout__steps {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-bottom: 36px;
}

#ss-checkout .ss-checkout__step {
  display: flex;
  flex-direction: column;
  gap: 32px;
  border: 2px solid orange;
}

#ss-checkout .ss-checkout__step:not(.active) {
  border: 2px solid pink;
}

#ss-checkout .ss-checkout__step-title {
  font: 24px;
  margin-bottom: 32px;
}

#ss-checkout .ss-checkout__controls {
  display: flex;
  gap: 10px;
}

#ss-checkout .ss-checkout__btn-prev svg {
  margin-top: 3px;
}

#ss-checkout .ss-checkout__btn-prev:hover,
#ss-checkout .ss-checkout__btn-prev:focus {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: var(--color-accent);
}

#ss-checkout .ss-checkout__progress {
  display: flex;
  margin-bottom: 110px;
  justify-content: space-between;
  margin-left: 40px;
  position: relative;
}

#ss-checkout .ss-checkout__progress::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  z-index: 1;
  background: #E9E9E9;
}

#ss-checkout .progress-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 12px;
  position: relative;
  z-index: 2;
}

#ss-checkout .progress-item:last-child .progress-item__title {
  left: 0;
  right: auto;
}

#ss-checkout .progress-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -16px;
  width: calc(100% + 32px);
  height: 100%;
  background-color: #fff;
  z-index: -1;
}

#ss-checkout .progress-item__num {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  padding-top: 1px;
  border: 1px solid #D9D9D9;
  background-color: #D9D9D9;
}

#ss-checkout .progress-item__title {
  position: absolute;
  right: 0;
  top: 37px;
  white-space: nowrap;
  font-size: 12px;
}

#ss-checkout .progress-item__title br {
  display: none;
}

#ss-checkout .progress-item--done .progress-item__num {
  border-color: var(--color-accent);
  background-color: #fff;
  color: var(--text-color-light);
  position: relative;
}

#ss-checkout .progress-item--done .progress-item__num::after {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg width='15' height='15' viewBox='0 0 15 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.5 3.75L5.625 10.625L2.5 7.5' stroke='%23710014' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 15px;
  background-position: center;
  position: absolute;
  inset: 0;
}

#ss-checkout .progress-item--active .progress-item__num {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  color: var(--text-color-light);
}

#ss-checkout .ss-checkout__sidebar {
  border: 1px solid blue;
  /* table */
  /* tfoot */
}

#ss-checkout .ss-checkout__sidebar table {
  border: none;
  margin: 0;
  width: 100%;
  /* thead */
  /* tbody */
}

#ss-checkout .ss-checkout__sidebar table bdi {
  direction: rtl;
}

#ss-checkout .ss-checkout__sidebar table thead {
  display: none;
}

#ss-checkout .ss-checkout__sidebar tr.cart_item {
  position: relative;
  border: 1px solid #000;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 10px 0;
  padding-right: 88px;
  /* image */
}

#ss-checkout .ss-checkout__sidebar tr.cart_item .quadlayers_product_image_checkout {
  position: absolute;
  right: 0;
  top: 12px;
  width: 64px !important;
  height: 64px !important;
  background: #fff;
  overflow: hidden;
}

#ss-checkout .ss-checkout__sidebar tr.cart_item .quadlayers_product_image_checkout img {
  width: 100%;
  height: 100%;
}

#ss-checkout .ss-checkout__sidebar .product-name {
  display: flex;
}

#ss-checkout .ss-checkout__sidebar th,
#ss-checkout .ss-checkout__sidebar td {
  border: none;
  background: none;
  padding: 0 !important;
}

#ss-checkout .ss-checkout__sidebar tr.cart_item td {
  color: #2C2C2C;
  font-weight: 500;
  font-size: 14px !important;
}

#ss-checkout .ss-checkout__sidebar tr.cart_item bdi {
  font-weight: 700;
  direction: ltr;
}

#ss-checkout .ss-checkout__sidebar .shop_table tfoot {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#ss-checkout .ss-checkout__sidebar .shop_table tfoot tr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

#ss-checkout .ss-checkout__sidebar .shop_table tfoot th {
  font-weight: 500 !important;
  border: none;
}

#ss-checkout .ss-checkout__sidebar .shop_table tfoot td {
  font-weight: 700 !important;
}

#ss-checkout .ss-checkout__sidebar .shop_table tfoot .order-total bdi {
  color: #FF6242 !important;
  font-weight: 700 !important;
}

#ss-checkout .ss-checkout__sidebar .product-remove {
  position: absolute;
  top: 50%;
  left: 0;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  align-self: start;
  display: flex !important;
  justify-content: center;
  align-items: center;
}

#ss-checkout .ss-checkout__sidebar .product-remove a {
  display: flex !important;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease 0s;
  will-change: scale;
}

#ss-checkout .ss-checkout__sidebar .product-remove a:hover {
  background: none;
  scale: 1.1;
}

#ss-checkout #col-checkout-sidebar .sidebar-head {
  padding: 0 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

#ss-checkout #order_review_heading {
  font-size: 24px;
  font-weight: 700;
  padding-top: 0;
  -webkit-margin-after: 0;
          margin-block-end: 0;
  -webkit-margin-before: 0;
          margin-block-start: 0;
}

#ss-checkout .sidebar-mobile-toggle {
  display: none;
}

#ss-checkout .wc_payment_methods.payment_methods {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#ss-checkout .wc_payment_method.payment_method_bacs,
#ss-checkout .wc_payment_method.payment_method_bacs label {
  font-size: 16px;
}

#ss-checkout .form-row {
  padding: 0;
  margin: 0;
}

#ss-checkout textarea,
#ss-checkout input {
  border: 1px solid #D8D8D8;
  background: transparent;
  text-align: right;
  padding-inline: 24px;
  font-size: 16px;
  border-radius: 0;
}

#ss-checkout textarea::-webkit-input-placeholder, #ss-checkout input::-webkit-input-placeholder {
  color: #8D8B8B;
  opacity: 1;
}

#ss-checkout textarea::-moz-placeholder, #ss-checkout input::-moz-placeholder {
  color: #8D8B8B;
  opacity: 1;
}

#ss-checkout textarea::placeholder,
#ss-checkout input::placeholder {
  color: #8D8B8B;
  opacity: 1;
}

#ss-checkout textarea:focus,
#ss-checkout input:focus {
  outline-color: var(--color-accent);
}

#ss-checkout input {
  height: 56px;
}

#ss-checkout #place_order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease 0s;
  border: 1px solid;
  border-radius: 0;
  line-height: 1em;
  width: 100%;
  height: 48px;
  padding: 0 24px;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 14px;
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--text-color-light);
}

#ss-checkout #place_order:hover,
#ss-checkout #place_order:focus {
  border-color: #8E0019;
  background-color: #8E0019;
}

#ss-checkout .woocommerce-billing-fields__field-wrapper {
  border: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  margin-bottom: 32px;
  position: relative;
}

#ss-checkout .woocommerce-billing-fields__field-wrapper .form-row {
  flex: 0 0 calc(33% - 6px);
}

#ss-checkout .woocommerce-billing-fields__field-wrapper .form-row label {
  display: none;
}

#ss-checkout #billing_last_name_field,
#ss-checkout #billing_last_name {
  display: none;
}

#ss-checkout #billing_email_field {
  order: -3;
}

#ss-checkout #billing_first_name_field {
  order: -2;
}

#ss-checkout #billing_phone_field,
#ss-checkout #billing_phone_aboard_field {
  order: -1;
}

#ss-checkout .custom-info-boxes h4 {
  margin-bottom: 24px;
}

#ss-checkout .custom-info-boxes .delivery-type-selection {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#ss-checkout body.woocommerce-checkout .header,
#ss-checkout body.woocommerce-checkout .breadcrumbs,
#ss-checkout body.woocommerce-checkout .footer {
  display: none;
}

@media (max-width: 1400px) {
  #ss-checkout .ss-checkout__main {
    padding-left: 24px;
  }

  #ss-checkout .ss-checkout__sidebar {
    flex: 0 0 580px;
  }

  #ss-checkout .ss-checkout__progress {
    margin-left: 0;
  }
}

@media (max-width: 1200px) {
  #ss-checkout .progress-item__title br {
    display: block;
  }
}

@media (max-width: 998px) {
  #ss-checkout .ss-checkout__layout {
    flex-direction: column;
  }

  #ss-checkout .ss-checkout__main {
    padding-left: 0;
  }

  #ss-checkout .ss-checkout__sidebar {
    width: 100%;
    flex: 1 1 auto;
  }

  #ss-checkout .ss-checkout__sidebar::before {
    width: 100vw;
    right: -15px;
  }

  #ss-checkout .progress-item__title {
    font-size: 10px;
  }
}

@media (max-width: 850px) {
  #ss-checkout {
    /* closed */
    /* opened */
  }

  #ss-checkout .checkout-sidebar .shop_table thead,
  #ss-checkout .checkout-sidebar .shop_table tbody,
  #ss-checkout .checkout-sidebar .shop_table tfoot tr:not(.discounts) {
    display: none !important;
  }

  #ss-checkout .checkout-sidebar:not(.open) .shop_table tfoot #discounts-row {
    margin: 0;
  }

  #ss-checkout .checkout-sidebar.open .shop_table tbody {
    display: initial !important;
  }

  #ss-checkout .checkout-sidebar.open .shop_table tfoot tr {
    display: flex !important;
  }

  #ss-checkout .checkout-sidebar.open .sidebar-head {
    padding-bottom: 32px;
  }

  #ss-checkout .checkout-sidebar.open .sidebar-mobile-toggle {
    rotate: 180deg;
  }

  #ss-checkout .sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 22px;
    cursor: pointer;
    transition: all 0.2s ease 0s;
  }

  #ss-checkout .sidebar-mobile-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease 0s;
  }

  #ss-checkout .checkout-title {
    display: none;
  }
}

@media (max-width: 768px) {
  #ss-checkout .woocommerce-billing-fields__field-wrapper {
    flex-direction: column;
  }

  #ss-checkout .woocommerce-billing-fields__field-wrapper .form-row {
    flex: 0 0 100%;
    width: 100%;
  }
}