.cz-mask {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 14px;
  overflow-y: auto;
}

.cz-panel {
  width: 100%;
  max-width: 940px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.cz-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid #f0f0f2;
}

.cz-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cz-close {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.cz-steps {
  display: flex;
  gap: 6px;
  padding: 14px 24px 0;
  flex-wrap: wrap;
}

.cz-step {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 980px;
  background: var(--bg-alt);
  white-space: nowrap;
}

.cz-step.on {
  background: var(--blue);
  color: #fff;
}

.cz-step.done {
  background: #e6f2ff;
  color: #0060bd;
}

.cz-body {
  padding: 18px 24px 4px;
}

.cz-preview {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fafafa 0%, #f0f0f2 100%);
  margin-bottom: 20px;
}

.cz-preview-img {
  width: 108px;
  height: 108px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cz-preview-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: none;
}

.cz-preview-meta {
  flex: 1;
  min-width: 0;
}

.cz-preview-meta strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
}

.cz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cz-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  background: #fff;
  border-radius: 980px;
  padding: 4px 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cz-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.cz-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cz-sub {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.cz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}

.cz-tile {
  position: relative;
  padding: 14px 12px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.cz-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.cz-tile.on {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.22);
}

.cz-tile-img {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fafafa 0%, #f0f0f2 100%);
  overflow: hidden;
}

.cz-tile-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cz-tile-label {
  font-size: 15px;
  font-weight: 600;
}

.cz-tile-price {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

.cz-tile-price.plus {
  color: #b25000;
}

.cz-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  vertical-align: -3px;
  margin-right: 6px;
}

.cz-tile-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  display: none;
}

.cz-tile.on .cz-tile-check {
  display: block;
}

.cz-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px 20px;
  border-top: 1px solid #f0f0f2;
  flex-wrap: wrap;
}

.cz-total {
  flex: 1;
  font-size: 17px;
  color: var(--text-muted);
  min-width: 180px;
}

.cz-total b {
  font-size: 28px;
  color: var(--text);
  font-weight: 600;
  margin-left: 6px;
}

.cz-summary {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border-radius: 16px;
  background: var(--bg-alt);
  overflow: hidden;
}

.cz-summary li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cz-summary li:last-child {
  border-bottom: none;
}

.cz-summary span {
  color: var(--text-muted);
  font-size: 13px;
  min-width: 62px;
}

.cz-summary em {
  margin-left: auto;
  font-style: normal;
  font-size: 14px;
  color: var(--text-muted);
}

.cz-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cz-form label {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.cz-form input {
  height: 44px;
  font-size: 16px;
  padding: 0 14px;
  border-radius: 12px;
}

.btn {
  height: 42px;
  padding: 0 26px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s var(--ease), opacity 0.2s var(--ease);
}

.btn:hover {
  background: #ececed;
}

.btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: #0077ed;
}

.cz-foot .btn {
  height: 42px;
  padding: 0 26px;
  font-size: 16px;
  font-weight: 600;
}

.cz-total {
  font-size: 17px;
}

.cz-total b {
  font-size: 24px;
  margin-left: 6px;
}

.cz-error {
  font-size: 14px;
}

.cz-done {
  text-align: center;
  padding: 42px 24px 12px;
}

.cz-done-badge {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 30px;
  line-height: 62px;
}

.cz-done h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
}

.cz-done p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.cz-order-no {
  display: inline-block;
  margin: 14px 0 0;
  padding: 8px 18px;
  background: var(--bg-alt);
  border-radius: 980px;
  font-size: 17px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.cz-error {
  color: #d70015;
  font-size: 14px;
  margin-top: 10px;
}

@media (max-width: 734px) {
  .cz-mask {
    padding: 0;
  }
  .cz-panel {
    border-radius: 0;
    min-height: 100%;
  }
  .cz-title {
    font-size: 20px;
  }
  .cz-preview {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .cz-preview-img {
    width: 100%;
    height: 120px;
  }
  .cz-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .cz-form {
    grid-template-columns: 1fr;
  }
  .cz-foot .btn {
    flex: 1;
  }
}
