header {
  position: relative;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 20px;
}

.pay-content {
  width: 100%;
  height: 100%;
  padding-bottom: 20px;
  overflow-y: auto;
}

.box {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 10px;
  background: var(--c-bg);
  padding: 12px 0;
  padding-top: 0;
}

.input-card {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.input-card > * {
  padding: 10px;
  position: relative;
}

main .title {
  padding-left: 5px;
}

.input-card p {
  align-self: flex-start;
  font-size: 0.8rem;
}

.input-card input {
  width: 100%;
  background: var(--c-bg-soft);
  border-radius: 10px;
}

.input-card small {
  position: absolute;
  top: 40%;
  right: 2px;
  font-size: 0.55rem;
  font-weight: bold;
  color: var(--c-primary);
  pointer-events: none; /* 클릭 방해하지 않음 */
  transform: translate(50%, -50%);
}

.box .title {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--c-border);
}

.box .title-box {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--c-border);
}

.box .own {
  width: 100%;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: right;
  color: var(--c-text-light);
}

.box .own span {
  padding-left: 10px;
  padding-right: 5px;
  color: var(--c-cancel-dark);
}

.box #order-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px;
  border-bottom: 1px solid var(--c-border);
}

#order-list .pay-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#order-list .pay-item .name {
  width: 150px;
}

#order-list .pay-item .pay-price {
  width: 90px;
  text-align: right;
}

#order-list .pay-item .item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

#order-list .pay-item .item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
}

#order-list .pay-item .item button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--c-bg);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  user-select: none;
}

#order-list .pay-item .item button:active {
  transform: scale(0.92);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

#order-list .pay-item .item button:first-child {
  color: #ff4d4f; /* minus */
}

#order-list .pay-item .item button:last-child {
  color: #1677ff; /* plus */
}

#order-list .pay-item .item span {
  min-width: 20px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  background: transparent;
  border: none;
}

.order-box .order-total {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.order-box .order-total span {
  margin-right: 20px;
}

#btn {
  width: 100%;
  height: 50px;
  background: var(--c-primary);
  color: var(--c-bg);
  border-radius: 10px;
  font-weight: bold;
}

#btn.select {
  background: var(--c-secondary);
}
