.stock-banner,
.queue-panel {
  width: 100%;
  margin: 16px 0;
  border: 1px solid rgba(120, 231, 255, 0.34);
  border-radius: 8px;
  background: rgba(38, 48, 75, 0.72);
  color: #f7f7fb;
}

.stock-banner {
  overflow: hidden;
}

.stock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stock-header strong {
  font-size: 15px;
  line-height: 1.25;
}

.stock-rows {
  display: grid;
}

.stock-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 13px 18px;
}

.stock-row + .stock-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stock-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f4c565;
  box-shadow: 0 0 0 5px rgba(244, 197, 101, 0.12);
}

.stock-row.is-available .stock-indicator {
  background: #4fe2b7;
  box-shadow: 0 0 0 5px rgba(79, 226, 183, 0.12);
}

.stock-row.is-limited .stock-indicator,
.stock-row.is-checking .stock-indicator {
  background: #f4c565;
  box-shadow: 0 0 0 5px rgba(244, 197, 101, 0.12);
}

.stock-row.is-unavailable .stock-indicator {
  background: #ff7089;
  box-shadow: 0 0 0 5px rgba(255, 112, 137, 0.12);
}

.stock-copy {
  min-width: 0;
}

.stock-copy strong,
.queue-copy strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  line-height: 1.25;
}

.stock-copy p,
.queue-copy p {
  margin: 0;
  color: rgba(241, 238, 248, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.stock-header time {
  color: rgba(241, 238, 248, 0.58);
  font-size: 12px;
  white-space: nowrap;
}

.queue-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border-color: rgba(255, 78, 195, 0.42);
}

.queue-panel[hidden] {
  display: none;
}

.activation-actions {
  display: grid;
  gap: 10px;
}

.preactivation-btn {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(120, 231, 255, 0.42);
  border-radius: 7px;
  background: rgba(19, 17, 34, 0.58);
  color: #f7f7fb;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.preactivation-btn:hover:not(:disabled) {
  border-color: rgba(79, 226, 183, 0.72);
  background: rgba(45, 73, 88, 0.58);
}

.preactivation-btn:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.queue-copy {
  min-width: 0;
}

.queue-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.queue-btn {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  padding: 0 16px;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.queue-btn.primary {
  border-color: transparent;
  background: linear-gradient(90deg, #3caeea, #b942f0, #ff55bd);
}

.queue-btn.ghost {
  background: rgba(18, 14, 31, 0.55);
}

.queue-btn:disabled {
  cursor: wait;
  opacity: 0.62;
}

@media (max-width: 760px) {
  .stock-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .queue-panel,
  .queue-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .queue-actions,
  .queue-btn {
    width: 100%;
  }
}
