/* Original customer chip popup / stepped bundle sheet, canonical options. */
.uoc-overlay[hidden],
.uoc-panel [hidden] {
  display: none !important;
}
.uoc-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0009;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.uoc-panel {
  width: 100%;
  max-width: 580px;
  height: auto;
  max-height: 88dvh;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #1e293b;
}
.uoc-wizard .uoc-panel {
  height: 88dvh;
}
.uoc-panel header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 16px 20px;
  border-bottom: 2px solid #f3f4f6;
}
.uoc-panel h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.uoc-panel button {
  min-width: 48px;
  min-height: 48px;
  font: inherit;
  cursor: pointer;
}
.uoc-panel button:disabled {
  opacity: 0.45;
  cursor: default;
}
.uoc-panel button:focus-visible,
.uoc-panel input:focus-visible,
.uoc-panel textarea:focus-visible {
  outline: 3px solid var(--primary, #059669);
  outline-offset: 2px;
}
.uoc-panel [data-close],
.uoc-panel [data-back] {
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
  color: #475569;
  padding: 8px 12px;
}
.uoc-panel [data-close] {
  font-size: 24px;
}
.uoc-portion-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 20px 4px;
}
.uoc-panel .portion-tab-btn {
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  padding: 8px 14px;
  font-weight: 700;
}
.uoc-panel .portion-tab-btn.active {
  border-color: var(--primary, #059669);
  background: #f0fdf4;
  color: #065f46;
}
.uoc-panel nav {
  flex: 0 0 auto;
}
.uoc-panel .bundle-v2-step-nav {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  overscroll-behavior-x: contain;
}
.uoc-panel .bundle-v2-nav {
  flex: 0 0 auto;
}
.uoc-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 20px 20px;
  overscroll-behavior: contain;
}
.uoc-group {
  margin: 16px 0 24px;
}
.uoc-panel .modifier-group-title {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.uoc-count {
  color: #64748b;
  font-size: 13px;
  margin: 4px 0 12px;
}
.uoc-items {
  display: grid;
  gap: 8px;
}
.uoc-option-entry {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.uoc-option-entry .uoc-inline-subs,
.uoc-option-entry .bundle-v2-detail {
  margin: 0 0 2px 12px;
}
.uoc-option-entry .uoc-inline-subs {
  padding: 10px 12px;
  border-radius: 0 10px 10px 0;
  background: #f8fafc;
}
.uoc-option-entry .modifier-checkbox-grid {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 0;
}
.uoc-panel .modifier-pill,
.uoc-panel .modifier-checkbox-chip {
  text-align: start;
  display: flex;
  align-items: center;
  gap: 8px;
}
.uoc-panel .modifier-pill.active,
.uoc-panel .modifier-checkbox-chip.active {
  border-color: var(--primary, #059669);
  background: #f0fdf4;
  color: #065f46;
}
.uoc-panel .modifier-pill small,
.uoc-panel .modifier-checkbox-chip small {
  font-size: 12px;
}
.uoc-panel .bundle-item-info {
  min-width: 0;
  overflow-wrap: anywhere;
  gap: 10px;
}
.uoc-panel .bundle-item-info small,
.uoc-panel .bundle-v2-detail small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-top: 4px;
}
.uoc-item-image {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 48px;
}
.uoc-image-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.uoc-image-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}
.uoc-image-spinner {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  box-sizing: border-box;
  border: 2px solid #e2e8f0;
  border-top-color: var(--primary, #059669);
  border-radius: 50%;
  animation: uoc-image-spin .9s linear infinite;
}
@keyframes uoc-image-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .uoc-image-spinner { animation: none; }
}
.uoc-panel .bundle-item-card.sold-out {
  background: #f8fafc;
}
.uoc-panel .bundle-btn-add,
.uoc-panel .bundle-btn-plus,
.uoc-panel .bundle-btn-minus {
  border-radius: 12px;
  flex-shrink: 0;
}
.uoc-panel .bundle-v2-mod-btn {
  max-height: none;
  flex-shrink: 0;
}
.uoc-panel .bundle-v2-copy {
  margin: 12px 0 0;
  width: 100%;
  border-style: dashed;
}
.uoc-panel .bundle-v2-detail {
  align-items: flex-start;
  margin: 8px 0;
  padding: 12px;
  background: #f8fafc;
  border: 0;
  border-radius: 10px;
}
.uoc-panel .bundle-v2-detail > div {
  min-width: 0;
}
.uoc-panel .bundle-v2-mod-labels {
  white-space: normal;
}
.uoc-panel .modifier-checkbox-chip input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: var(--primary, #059669);
}
.uoc-note {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}
.uoc-note textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-weight: 400;
  padding: 12px;
  min-height: 64px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}
.uoc-panel footer {
  flex: 0 0 auto;
  padding: 12px 20px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.uoc-panel [data-confirm] {
  width: 100%;
  background: var(--primary, #059669);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
}
.uoc-panel [data-confirm]:hover {
  filter: brightness(0.9);
}
.uoc-panel [role="alert"] {
  color: #be123c;
  font-size: 14px;
  margin: 0 0 12px;
}
.uoc-panel [role="alert"]:empty {
  display: none;
}
@media (min-width: 640px) {
  .uoc-overlay {
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
  }
  .uoc-panel {
    border-radius: 20px;
    max-height: calc(100dvh - 48px);
  }
  .uoc-wizard .uoc-panel {
    height: 760px;
  }
}
@media (max-width: 380px) {
  .uoc-panel header,
  .uoc-panel footer {
    padding-left: 12px;
    padding-right: 12px;
  }
  .uoc-body {
    padding-left: 12px;
    padding-right: 12px;
  }
  .uoc-panel .bundle-item-card {
    flex-wrap: wrap;
    gap: 8px;
  }
  .uoc-panel .bundle-stepper {
    margin-left: auto;
  }
}
.uoc-panel .modifier-checkbox-chip {
  min-height: 48px;
  box-sizing: border-box;
}
.uoc-inline-subs {
  margin: 12px 0;
  padding-left: 12px;
  border-left: 3px solid #e2e8f0;
}
.uoc-inline-subs > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}
