.j88-promotions {
  width: 100%;
  margin-top: 5px;
  overflow: hidden;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  color: #1d1d20;
  box-shadow: 0 4px 14px rgba(32, 0, 0, 0.12);
}

.j88-promotions *,
.j88-promotions *::before,
.j88-promotions *::after {
  box-sizing: border-box;
}

.j88-promotions__title {
  margin: 0;
  padding: 13px 16px;
  background: linear-gradient(100deg, #ed1b24, #ad0910);
  color: #fff;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.j88-promotion {
  border: 0;
  border-bottom: 1px solid #e6e1d4;
  background: #fff;
}

.j88-promotion:last-of-type {
  border-bottom: 0;
}

.j88-promotion__summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 64px;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  background: #f5f3f1;
  color: #b50c13;
  transition: background-color 160ms ease, color 160ms ease;
}

.j88-promotion__summary::-webkit-details-marker {
  display: none;
}

.j88-promotion__summary:hover,
.j88-promotion[open] > .j88-promotion__summary {
  background: #fff7dc;
}

.j88-promotion__summary:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid #d4a72c;
  outline-offset: -3px;
}

.j88-promotion__number {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ed1b24;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

.j88-promotion__heading {
  min-width: 0;
}

.j88-promotion__name {
  display: block;
  font-size: clamp(0.82rem, 2vw, 0.98rem);
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.j88-promotion__code {
  display: block;
  margin-top: 3px;
  color: #5d4b37;
  font-size: 0.72rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.j88-promotion__icon {
  color: #9b7408;
  font-size: 1.15rem;
  transition: transform 180ms ease;
}

.j88-promotion[open] .j88-promotion__icon {
  transform: rotate(180deg);
}

.j88-promotion__panel {
  padding: 16px;
  border-top: 1px solid #eee5cb;
  background: linear-gradient(145deg, #fff 30%, #fff9e8);
}

.j88-promotion__description,
.j88-promotion__terms,
.j88-promotions__notice {
  margin: 0;
  overflow-wrap: anywhere;
}

.j88-promotion__description {
  color: #2e2e2e;
  font-size: 0.9rem;
  line-height: 1.65;
}

.j88-promotion__extra {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #4a3b20;
  font-size: 0.86rem;
  line-height: 1.6;
}

.j88-promotion__panel-code {
  margin: 12px 0;
  color: #73070b;
  font-size: 0.84rem;
  font-weight: 850;
}

.j88-promotion__claim {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 2px solid #c39016;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffe47c, #e7b129);
  color: #240001;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.j88-promotion__claim:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(126, 78, 0, 0.22);
}

.j88-promotion__claim:focus-visible {
  outline: 3px solid #b10b12;
  outline-offset: 3px;
}

.j88-promotion__terms {
  margin-top: 12px;
  color: #685f54;
  font-size: 0.76rem;
  line-height: 1.5;
}

.j88-promotions__notice {
  padding: 14px 16px;
  background: #171717;
  color: #f4deb0;
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 480px) {
  .j88-promotion__summary {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .j88-promotion__number {
    width: 29px;
    height: 29px;
  }

  .j88-promotion__panel {
    padding: 14px 12px;
  }

  .j88-promotion__claim {
    width: 100%;
  }
}
