html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.co {
  position: relative;
  box-sizing: border-box;
  width: min(300px, 92vw);
  border-radius: 16px;
  background: #fff7e6;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  overflow: hidden;
}

.co * {
  box-sizing: border-box;
}

.co__view {
  height: 168px;
  overflow-y: auto;
  scrollbar-width: none;
}
.co__view::-webkit-scrollbar {
  display: none;
}
.co__view:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: -4px;
}

.co__pad {
  display: grid;
  gap: 8px;
  padding: 12px 12px 16px;
}

.co__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.co__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.co__thumb {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(23, 20, 26, 0.1);
}

.co__name {
  flex: 1 1 auto;
  font-size: 11px;
  line-height: 1.4;
}

.co__price {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.co__sum {
  padding: 12px;
  border-radius: 12px;
  background: rgba(47, 109, 246, 0.12);
}

.co__sumHead {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  color: #0a4fe8;
}

.co__ic {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
}

.co__ic svg {
  width: 100%;
  height: 100%;
}

.co__row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

.co__row--total {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(23, 20, 26, 0.16);
  font-size: 12px;
  font-weight: 700;
}

.co__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #17141a;
  color: #fff7e6;
  transform: translateY(0);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.co.is-down .co__bar {
  transform: translateY(110%);
}

.co__barTotal {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.co__pay {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: #ffd23f;
  color: #17141a;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}
.co__pay:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

@keyframes coScroll {
  0%, 12% {
    transform: translateY(0);
  }
  40%, 70% {
    transform: translateY(-120px);
  }
  90%, 100% {
    transform: translateY(0);
  }
}
@keyframes coBar {
  0%, 44% {
    transform: translateY(0);
  }
  56%, 68% {
    transform: translateY(110%);
  }
  84%, 100% {
    transform: translateY(0);
  }
}
.co.is-demo .co__pad {
  animation-name: coScroll;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.co.is-demo .co__bar {
  animation-name: coBar;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .co__view {
    height: 140px;
  }
  .co__pad {
    padding: 8px 8px 12px;
  }
  .co__title {
    font-size: 12px;
  }
  .co__thumb {
    width: 24px;
    height: 24px;
  }
  .co__sum {
    padding: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .co__bar {
    transition: none !important;
  }
  .co.is-demo .co__pad,
  .co.is-demo .co__bar {
    animation: none !important;
    transform: none !important;
  }
}
