.prize-group-card {
  background-color: #f6f6f6;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
  justify-content: space-between;
  margin: 20px 0;
  font-family: "Montserrat", sans-serif;
}

/* Hover the whole card -> change border + title + icon to gold */
.prize-group-card:hover {
  border-color: #30504b !important;
}

.prize-group-card:hover .prize-title {
  color: #30504b !important;
}

.prize-group-card:hover .toggle-icon {
  color: #30504b !important; /* works because your SVG uses currentColor */
}

.prize-label {
  color: #fff;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;

  cursor: pointer;
  align-items: center;
  width: 100%;
}

.ticket {
  display: flex;
  width: max-content;
  flex-direction: column;
  justify-content: space-around;
  padding: 0px 0px;
  background-color: #fff;
  border-radius: 10px;
  position: relative;
  font-family: "Montserrat", sans-serif;
  text-align: center;
  margin: 10px 0;
  z-index: 1;
  gap: 1px;
  animation: bounceIn 0.6s ease-out;
}

.ticket-list {
  display: none; /* Initially, hide the ul */ /* Use flexbox for horizontal layout */
  flex-wrap: wrap; /* Allow items to wrap to the next line if there isn't enough space */
  gap: 10px; /* Add space between items */
  list-style-type: none; /* Remove default list item bullets */
  padding: 0; /* Remove any default padding */
  margin: 0;
  justify-content: center;
  border-top: 1px solid #6b6b6b;
}

.toggle-icon {
  font-size: 24px;
  font-weight: bold;
  margin-left: 10px;
}
/* white icon */
.prize-group-card .toggle-icon {
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
}

/* default: show plus only */
.prize-group-card .toggle-icon .iw-minus {
  display: none;
}

/* when open: show minus only */
.prize-group-card.is-open .toggle-icon .iw-plus {
  display: none;
}
.prize-group-card.is-open .toggle-icon .iw-minus {
  display: block;
}

.pagination {
  display: none !important;
  gap: 10px;
  font-size: 1em;
  color: #30504b !important;
}

.pagination a {
  color: #30504b !important;
}

.ticket-list.show,
.pagination.show {
  display: flex !important;
  gap: 10px;
  font-size: 1em;
  /* opacity: 1;  */
}

.lty-tckt-num {
  display: flex;
  font-size: 0.8em;
  color: #000;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 50px;
}

.lty-tckt-num,
.lty-instant-winner,
.lty-prize-available {
  font-weight: 800;
}

.lty-instant-winner {
  color: #fff;
  font-size: 0.8em;
  background: linear-gradient(270deg, #6b6b6b 9.06%, #c7c5c2 91.61%);
  font-family: "Montserrat";
  padding: 5px;

  border-top-right-radius: 15px;
  border-top-left-radius: 15px;
}

.lty-prize-available {
  color: #fff;
  font-size: 0.8em;
  background: #30504b;
  font-family: "Montserrat";
  padding: 5px;

  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  /* border-radius: 10px; */
}

.inswin-title {
  font-family: "Montserrat", Montserrat;
  font-size: 2.8em !important;
  font-weight: 700;
  color: #30504b;
}

/* Ensure each list item behaves like a block in the row */
.ticket-item {
  display: flex; /* Use flex for each ticket */
  align-items: center; /* Vertically center content inside each ticket */
  justify-content: center; /* Horizontally center content inside each ticket */
  margin: 5px; /* Add margin between tickets */
}

.remaining-tag {
  width: fit-content;
  color: #fff;
  padding: 5px 15px;
  font-family: "Montserrat";
  font-size: 0.8em;
  font-weight: 500;
  border-radius: 10px;
  text-align: center;
  border-radius: 10px;
  background-color: #faa629;
}

.prize-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.prize-stats {
  width: 100%;
  /* display:flex; */
}

.prize-title {
  color: #000;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1.5em;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.instant-img-box {
  width: 100px; /* change as you like */
  height: 100px; /* change as you like */
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto; /* stops flex squeezing it */
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); */
}

.instant-img {
  width: 100%;
  height: 100% !important;
  object-fit: cover; /* this is the key */
  object-position: center;
  display: block; /* removes tiny baseline gap */
}

.toggle-icon .iw-minus {
  display: none;
}

.toggle-icon.open .iw-plus {
  display: none;
}

.toggle-icon.open .iw-minus {
  display: inline-block;
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
  .instant-img-box {
    width: 80px;
    height: 80px;
  }
  .inswin-title {
    font-size: 1.8em !important;
  }
  .prize-group-card {
    min-width: 100px !important;
  }
  .ticket-list {
    overflow-x: auto; /* Enable horizontal scrolling on mobile */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
    flex-wrap: nowrap;
    flex-direction: row;
  }

  .remaining-tag {
    font-size: 0.7em;
    padding: 5px;
  }
  .prize-title {
    font-size: 1.2em;
    margin-bottom: 0;
  }
  .ticket-list {
    gap: 5px;
  }
  .lty-tckt-num {
    padding: 5px 35px;
  }
  .prize-group-card {
    padding-bottom: 0;
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== Lock stroke loader for: <span class="spinner-custom"></span> ===== */
.ticket-item .spinner-custom {
  display: block;
  width: 110px;
  height: 22px;
  margin: 10px auto;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* repeating lock outline */
.ticket-item .spinner-custom::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
  background-position: 0 50%;
  background-size: 44px 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cg fill='none' stroke='%2330504b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 9V7.2a4 4 0 0 1 8 0V9'/%3E%3Crect x='11.5' y='9' width='13' height='9' rx='2.2'/%3E%3C/g%3E%3C/svg%3E");
  animation: lock-slide 1.2s linear infinite;
  opacity: 0.95;
}

/* soft green sweep */
.ticket-item .spinner-custom::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 45%;
  height: 180%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(48, 80, 75, 0.18),
    transparent
  );
  transform: skewX(-18deg);
  animation: lock-sheen 1.1s ease-in-out infinite;
  pointer-events: none;
}

@keyframes lock-slide {
  from {
    background-position: 0 50%;
  }
  to {
    background-position: -44px 50%;
  }
}

@keyframes lock-sheen {
  0% {
    transform: translateX(-140%) skewX(-18deg);
    opacity: 0;
  }
  20% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.35;
  }
  100% {
    transform: translateX(340%) skewX(-18deg);
    opacity: 0;
  }
}
