/* Combos: submitting a combo and the "Combo submitted" screen (Combos.dc.html,
   review submit states and the success view). Scoped under .combos-page. */

.combos-page {
  /* Confetti colours: the brand accent, then the design's palette. */
  --cb-conf-1: var(--accent);
  --cb-conf-2: #3aa675;
  --cb-conf-3: #e0604f;
  --cb-conf-4: #6a84e8;
  --cb-conf-5: #ff8a1f;
}

.combos-page .cb-rvreason:empty {
  display: none;
}

.combos-page .cb-spin {
  flex: 0 0 18px;
  animation: cb-spin 0.8s linear infinite;
}

.combos-page .cb-success {
  width: 100%;
}

.combos-page .cb-sucbody {
  display: flex;
  width: 100%;
  max-width: 520px;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 24px auto 0;
  text-align: center;
}

.combos-page .cb-tick {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  background: var(--cb-yesbg);
  color: var(--cb-yes);
}

.combos-page .cb-tick path {
  animation: cb-tick 0.5s 0.15s ease forwards;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}

.combos-page .cb-suctitle {
  margin: 0;
  color: var(--cb-fg);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 32px;
}

.combos-page .cb-suctitle:focus {
  outline: none;
}

.combos-page .cb-sucnote {
  margin: 0;
  color: var(--cb-muted2);
  font-size: 14px;
  line-height: 20px;
}

.combos-page .cb-sucreceipt {
  width: 100%;
  padding: 6px 16px;
  text-align: left;
}

.combos-page .cb-sucrow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  font-size: 14px;
}

.combos-page .cb-sucrow + .cb-sucrow {
  border-top: 1px solid var(--cb-line);
}

.combos-page .cb-sucrow span {
  color: var(--cb-muted2);
}

.combos-page .cb-sucrow b {
  color: var(--cb-fg);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
}

.combos-page .cb-sucrow b.cb-rvyes {
  color: var(--cb-yes);
}

.combos-page .cb-sucanother {
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--cb-muted2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.combos-page .cb-sucanother:hover {
  color: var(--cb-fg);
}

.combos-page .cb-conf {
  position: fixed;
  z-index: 80;
  top: -20px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  animation: cb-conf 2.8s cubic-bezier(0.25, 0.6, 0.4, 1) forwards;
  pointer-events: none;
}

.combos-page .cb-conf:nth-child(1) {
  left: 0%;
  background: var(--cb-conf-1);
  transform: rotate(0deg);
  animation-delay: 0s;
}

.combos-page .cb-conf:nth-child(2) {
  left: 37%;
  background: var(--cb-conf-2);
  transform: rotate(47deg);
  animation-delay: 0.12s;
}

.combos-page .cb-conf:nth-child(3) {
  left: 74%;
  background: var(--cb-conf-3);
  transform: rotate(94deg);
  animation-delay: 0.24s;
}

.combos-page .cb-conf:nth-child(4) {
  left: 11%;
  background: var(--cb-conf-4);
  transform: rotate(141deg);
  animation-delay: 0.36s;
}

.combos-page .cb-conf:nth-child(5) {
  left: 48%;
  background: var(--cb-conf-5);
  transform: rotate(188deg);
  animation-delay: 0.48s;
}

.combos-page .cb-conf:nth-child(6) {
  left: 85%;
  background: var(--cb-conf-1);
  transform: rotate(235deg);
  animation-delay: 0.6s;
}

.combos-page .cb-conf:nth-child(7) {
  left: 22%;
  background: var(--cb-conf-2);
  transform: rotate(282deg);
  animation-delay: 0.72s;
}

.combos-page .cb-conf:nth-child(8) {
  left: 59%;
  background: var(--cb-conf-3);
  transform: rotate(329deg);
  animation-delay: 0.84s;
}

.combos-page .cb-conf:nth-child(9) {
  left: 96%;
  background: var(--cb-conf-4);
  transform: rotate(16deg);
  animation-delay: 0.96s;
}

.combos-page .cb-conf:nth-child(10) {
  left: 33%;
  background: var(--cb-conf-5);
  transform: rotate(63deg);
  animation-delay: 0s;
}

.combos-page .cb-conf:nth-child(11) {
  left: 70%;
  background: var(--cb-conf-1);
  transform: rotate(110deg);
  animation-delay: 0.12s;
}

.combos-page .cb-conf:nth-child(12) {
  left: 7%;
  background: var(--cb-conf-2);
  transform: rotate(157deg);
  animation-delay: 0.24s;
}

.combos-page .cb-conf:nth-child(13) {
  left: 44%;
  background: var(--cb-conf-3);
  transform: rotate(204deg);
  animation-delay: 0.36s;
}

.combos-page .cb-conf:nth-child(14) {
  left: 81%;
  background: var(--cb-conf-4);
  transform: rotate(251deg);
  animation-delay: 0.48s;
}

.combos-page .cb-conf:nth-child(15) {
  left: 18%;
  background: var(--cb-conf-5);
  transform: rotate(298deg);
  animation-delay: 0.6s;
}

.combos-page .cb-conf:nth-child(16) {
  left: 55%;
  background: var(--cb-conf-1);
  transform: rotate(345deg);
  animation-delay: 0.72s;
}

.combos-page .cb-conf:nth-child(17) {
  left: 92%;
  background: var(--cb-conf-2);
  transform: rotate(32deg);
  animation-delay: 0.84s;
}

.combos-page .cb-conf:nth-child(18) {
  left: 29%;
  background: var(--cb-conf-3);
  transform: rotate(79deg);
  animation-delay: 0.96s;
}

.combos-page .cb-conf:nth-child(19) {
  left: 66%;
  background: var(--cb-conf-4);
  transform: rotate(126deg);
  animation-delay: 0s;
}

.combos-page .cb-conf:nth-child(20) {
  left: 3%;
  background: var(--cb-conf-5);
  transform: rotate(173deg);
  animation-delay: 0.12s;
}

.combos-page .cb-conf:nth-child(21) {
  left: 40%;
  background: var(--cb-conf-1);
  transform: rotate(220deg);
  animation-delay: 0.24s;
}

.combos-page .cb-conf:nth-child(22) {
  left: 77%;
  background: var(--cb-conf-2);
  transform: rotate(267deg);
  animation-delay: 0.36s;
}

.combos-page .cb-conf:nth-child(23) {
  left: 14%;
  background: var(--cb-conf-3);
  transform: rotate(314deg);
  animation-delay: 0.48s;
}

.combos-page .cb-conf:nth-child(24) {
  left: 51%;
  background: var(--cb-conf-4);
  transform: rotate(1deg);
  animation-delay: 0.6s;
}

.combos-page .cb-conf:nth-child(25) {
  left: 88%;
  background: var(--cb-conf-5);
  transform: rotate(48deg);
  animation-delay: 0.72s;
}

.combos-page .cb-conf:nth-child(26) {
  left: 25%;
  background: var(--cb-conf-1);
  transform: rotate(95deg);
  animation-delay: 0.84s;
}

.combos-page .cb-conf:nth-child(27) {
  left: 62%;
  background: var(--cb-conf-2);
  transform: rotate(142deg);
  animation-delay: 0.96s;
}

.combos-page .cb-conf:nth-child(28) {
  left: 99%;
  background: var(--cb-conf-3);
  transform: rotate(189deg);
  animation-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .combos-page .cb-confetti {
    display: none;
  }

  .combos-page .cb-tick path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .combos-page .cb-spin {
    animation: none;
  }
}

@keyframes cb-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cb-tick {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes cb-conf {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }

  100% {
    opacity: 0.9;
    transform: translateY(105vh) rotate(720deg);
  }
}
