.goal-bar {
  background-color: #181A28;
  margin-top: 8px;
  width: 100%;
  height: 18px;
  border-radius: 99px;
  position: relative;
  overflow: hidden;
}
.goal-bar span {
  position: absolute;
  z-index: 1;
  right: 0;
  font-size: 14px;
  font-weight: 600;
  padding-right: 5px;
  top: 50%;
  transform: translateY(-50%);
}
.goal-bar::after {
  content: "";
  position: absolute;
  width: var(--goal_percent);
  height: 18px;
  background-color: #ffaa00;
  background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
}

@keyframes logoAnim {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(0px);
  }
}
.logo-anim {
  animation: logoAnim 3s infinite ease-in-out;
  transition: all 0.1s;
}
.logo-anim:hover {
  filter: brightness(90%);
}

.recent-purchase-popup {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 340px;
  max-width: calc(100vw - 24px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(34, 36, 54, 0.96);
  border: 1px solid #2d3044;
  box-shadow: rgba(0, 0, 0, 0.35) 0 8px 30px;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  pointer-events: none;
}
.recent-purchase-popup.hidden {
  display: none;
}
.recent-purchase-popup.show {
  display: flex;
  animation: recentPurchaseIn 0.45s ease forwards;
}
.recent-purchase-popup.hide {
  display: flex;
  animation: recentPurchaseOut 0.45s ease forwards;
}
.recent-purchase-popup__icon {
  min-width: 46px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffaa00;
  color: #fff;
  font-size: 18px;
  box-shadow: rgba(0, 0, 0, 0.18) 0 4px 14px;
}
.recent-purchase-popup__content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.recent-purchase-popup__content p {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}
.recent-purchase-popup__label {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@keyframes recentPurchaseIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes recentPurchaseOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
}
@media (max-width: 640px) {
  .recent-purchase-popup {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: unset;
  }
}
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-10%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideUp {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10%);
  }
}
.modal_show_slide {
  animation: slideDown cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation-duration: 0.5s;
}

.modal_hide_slide {
  animation: slideUp cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation-duration: 0.5s;
}

.swal2-popup {
  border-radius: 8px;
}

/* Drawer */
@keyframes fadeIn {
  from {
    background-color: rgba(0, 0, 0, 0);
  }
  to {
    background-color: rgba(0, 0, 0, 0.4);
  }
}
@keyframes fadeOut {
  from {
    background-color: rgba(0, 0, 0, 0.4);
  }
  to {
    background-color: rgba(0, 0, 0, 0);
  }
}
#checkout-drawer {
  animation: fadeIn 0.4s forwards;
}

#checkout-drawer.fade-out {
  animation: fadeOut 0.4s forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(500px);
  }
  to {
    transform: translateX(0px);
  }
}
@keyframes slideOut {
  from {
    transform: translateX(0px);
  }
  to {
    transform: translateX(500px);
  }
}
.slide-in {
  animation: slideIn 0.4s forwards;
}

.slide-out {
  animation: slideOut 0.4s forwards;
}