.woocommerce-order-received .page-title-bar {
  display: none;
}

.woocommerce-order {
  padding: calc(var(--spacing-xxl) * 3) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.woocommerce-order-received .success-message h1 {
  font-size: var(--heading-sm);
  text-align: center;
  color: #f9a8a8;
}

.woocommerce-order-received .success-message {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.woocommerce-order-received .success-message p {
  text-align: center;
}

.woocommerce-order-received .blind-box-results-section .item-name {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  text-align: center;
  margin-top: 16px;
}

.woocommerce-order-received .success-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.blind-box-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.blind-box-animation-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 500px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#lottieAnimation {
  width: 500px;
  height: 500px;
  margin: 0 auto;
  pointer-events: none;
}

#openBoxButton {
  cursor: pointer;
  margin-top: -50px;
  pointer-events: all;
}

#doneButton {
  cursor: pointer;
}

.blind-box-results-section {
  width: 100%;
  max-width: 1000px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.blind-box-results-section.hidden {
  opacity: 0;
  pointer-events: none;
}

.blind-box-results-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.blind-box-results-container::before,
.blind-box-results-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 30px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.blind-box-results-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.9), transparent);
}

.blind-box-results-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.9), transparent);
}

.blind-box-results {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 20px 30px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.blind-box-results::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.blind-box-item-result {
  flex: 0 0 auto;
  opacity: 0;
  transform: scale(0.3) translateY(40px);
  transition: none;
  margin: 0 auto;
}

.blind-box-item-result .item-image {
  width: 180px;
  height: 180px;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.3s ease;
  position: relative;
}

.blind-box-item-result .item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blind-box-item-result:hover .item-image {
  transform: translateY(-5px);
}

.blind-box-item-result .item-info {
  margin-top: 16px;
  text-align: center;
}

.blind-box-item-result .item-name {
  font-size: 18px;
  color: #333;
  margin: 0;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  transition-delay: 0.2s;
}

.blind-box-item-result.show .item-name {
  opacity: 1;
  transform: translateY(0);
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(40px);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.blind-box-item-result.show {
  animation: popIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.livestream-info-container {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 4px solid var(--btn-primary-border);
  max-width: 400px;
  text-align: center;
}

.woocommerce-order-received .woocommerce-form {
  margin: auto;
}
