@keyframes openDialog {
  from {
    opacity: 0;
    translate: 0 -20px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes closeDialog {
  to {
    opacity: 0;
    translate: 0 -20px;
  }
}
@keyframes openBackdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes closeBackdrop {
  to {
    opacity: 0;
  }
}

@keyframes slideDialog {
  from {
    opacity: 0;
    translate: 100px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes slideDialogOut {
  to {
    opacity: 0;
    translate: 100px 0;
  }
}

body .dialog {
  border: none;
  padding: 0;
  border: none;
}

body div.dialog {
  position: fixed;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  inset: 0;
  opacity: 0;
}
body div.dialog.show {
  opacity: 1;
}

body div.dialog:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(24, 24, 24, 0.4);
  backdrop-filter: blur(2px);
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.5s ease;
  opacity: 0;
}
body div.dialog.show:before {
  opacity: 1;
}

body div.dialog.hide_dialog:before {
  opacity: 0;
}

body .dialog > .dialog_wrapper {
  width: calc(100vw - 40px);
  max-width: 668px;
  padding: 3.5rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 40px 0 rgba(0, 0, 0, 0.15);
}
body .fl-page .dialog > button {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* width: 50px; height: 50px; */
}

body dialog[open],
body .dialog.show {
  animation: openDialog 0.5s ease normal;
  -webkit-animation: openDialog 0.5s ease normal;
}
body .dialog.hide_dialog {
  animation: closeDialog 0.5s ease normal;
  -webkit-animation: closeDialog 0.5s ease normal;
}

body #ecommercePopup[open] {
  animation: slideDialog 0.5s ease normal;
  -webkit-animation: slideDialog 0.5s ease normal;
}
body #ecommercePopup.hideDialog {
  animation: slideDialogOut 0.5s ease normal;
  -webkit-animation: slideDialogOut 0.5s ease normal;
}

body dialog.hide_dialog::backdrop {
  opacity: 0;
  animation: hideBackdrop 0.5s ease normal;
  -webkit-animation: hideBackdrop 0.5s ease normal;
}
body dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  opacity: 1;
  animation: openBackdrop 0.5s ease normal;
  -webkit-animation: openBackdrop 0.5s ease normal;
}

body .dialog:not(.show):not(.hide_dialog) {
  display: none;
  visibility: hidden;
}

body .dialog .dialog_title {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 600;
}

.dialog#product_added_popup .dialog_title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.375rem;
}
.dialog#product_added_popup .dialog_title:before {
  content: '';
  display: inline-block;
  width: 0.9em;
  aspect-ratio: 1 / 0.66;
  -webkit-mask: url('/wp-content/uploads/2025/11/Vector-1.svg') no-repeat
    center/contain;
  mask: url('/wp-content/uploads/2025/11/Vector-1.svg') no-repeat center/contain;
  background-color: #2e8ad4;
}

#product_added_popup .col_wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}
#product_added_popup .col_wrapper .left_col {
  width: 210px;
  border-radius: 8px;
  border: 1px solid rgba(7, 36, 69, 0.08);
  padding: 1rem;
  background-color: #fff;
}
#product_added_popup .col_wrapper .left_col img {
  aspect-ratio: 1/0.85;
  object-fit: contain;
}
#product_added_popup .col_wrapper .right_col {
  padding-block: 1rem;
}

#product_added_popup .col_wrapper .right_col .product_title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}

#product_added_popup .col_wrapper .right_col .lengths {
  margin-top: 1.5rem;
}
#product_added_popup .col_wrapper .right_col .lengths .label {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.25rem;
}
#product_added_popup .col_wrapper .right_col .lengths .values {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}
#product_added_popup .col_wrapper .right_col .lengths .values .item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
#product_added_popup .col_wrapper .right_col .lengths .values .item span {
  display: inline-block;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}
#product_added_popup
  .col_wrapper
  .right_col
  .lengths
  .values
  .item
  span.length {
  white-space: nowrap;
}
#product_added_popup
  .col_wrapper
  .right_col
  .lengths
  .values
  .item
  span.quantity {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: rgba(7, 36, 69, 0.7);
  border-radius: 50px;
  padding: 0.25rem 0.625rem;
  border: 1px solid rgba(7, 36, 69, 0.7);
  height: 30px;
}

#product_added_popup
  .col_wrapper
  .right_col
  .lengths
  .values
  .item
  span.quantity.single {
    aspect-ratio: 1;
  }

#product_added_popup .button_wrapper a.btn-1 {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--midnight);
}

#product_added_popup .button_wrapper a.btn-2 {
  display: flex;
  justify-content: center;
  text-decoration: underline;
}

@media only screen and (max-width: 767px) {
  body .dialog > .dialog_wrapper {
    padding: 2rem;
    padding-top: 2.5rem;
  }

  .dialog#product_added_popup .dialog_title {
    font-size: 24px;
    margin-bottom: 1.75rem;
  }

  #product_added_popup .col_wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  #product_added_popup .col_wrapper .left_col{
    width: 100%;
  }

  #product_added_popup .col_wrapper .left_col{
    text-align: center;
  }
}
