[x-cloak] {
  display: none !important;
}
.dp-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.dp-backdrop {
  position: absolute;
  inset: 0;
  background: #0f172ab3;
  backdrop-filter: blur(5px);
}
.dp-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 980px);
  max-height: 92dvh;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 26px;
  box-shadow: 0 30px 100px #0f172a40;
  color: #0f172a;
  overflow: hidden;
}
.dp-head,
.dp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.dp-foot {
  border-top: 1px solid #e2e8f0;
  border-bottom: 0;
}
.dp-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #2563eb;
}
.dp-head h2 {
  font-size: 22px;
  font-weight: 850;
  line-height: 1.4;
  margin-top: 4px;
}
.dp-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  padding: 26px;
  overflow: auto;
  overscroll-behavior: contain;
}
.dp-preview {
  min-width: 0;
}
.dp-large {
  aspect-ratio: 1;
  background: #f1f5f9;
  border-radius: 20px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dp-large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dp-caption {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dp-caption strong {
  font-size: 16px;
}
.dp-caption span {
  font-weight: 850;
  font-size: 20px;
  color: #1d4ed8;
}
.dp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}
.dp-design {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: white;
}
.dp-design.selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px #dbeafe;
}
.dp-select {
  display: block;
  text-align: left;
  width: 100%;
  padding: 10px;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.dp-select img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 10px;
  pointer-events: none;
  -webkit-user-drag: none;
}
.dp-design strong {
  display: block;
  font-size: 12px;
  margin-top: 9px;
  overflow-wrap: anywhere;
}
.dp-design small {
  display: block;
  font-size: 10px;
  color: #64748b;
  line-height: 1.6;
  margin-top: 4px;
}
.dp-counter {
  margin: 0 10px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}
.dp-counter button {
  width: 42px;
  min-height: 44px;
  font-weight: 800;
  color: #1d4ed8;
  touch-action: manipulation;
}
.dp-counter span {
  font-size: 13px;
  font-weight: 800;
}
.dp-btn {
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 16px;
  background: white;
  font-size: 12px;
  font-weight: 800;
  touch-action: manipulation;
}
.dp-primary {
  color: white;
  background: #2563eb;
  border-color: #2563eb;
}
.dp-dialog button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.dp-dialog :focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}
.dp-help {
  font-size: 12px;
  color: #64748b;
  line-height: 1.7;
}
.dp-error {
  padding: 14px 26px;
  color: #be123c;
  font-size: 12px;
  background: #fff1f2;
}
.dp-group-name {
  font-size: 13px;
  font-weight: 800;
  padding: 12px 0 4px;
  color: #0f172a;
}
.dp-cart-child {
  border-left: 2px solid #dbeafe;
  margin-left: 8px;
  padding-left: 12px;
}
@media (max-width: 650px) {
  .dp-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .dp-dialog {
    border-radius: 22px 22px 0 0;
    max-height: 95dvh;
  }
  .dp-body {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .dp-large {
    aspect-ratio: 1.7;
    max-height: 230px;
  }
  .dp-head,
  .dp-foot {
    padding: 16px;
  }
  .dp-head h2 {
    font-size: 18px;
  }
  .dp-caption span {
    font-size: 17px;
  }
  .dp-foot {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .dp-grid {
    gap: 10px;
  }
}
