/* Amazon one-click bundle modal - Listing/A+ slot choice grid, switches, summary, and outline. */

.amazon-bundle-config { padding-top: 0; }

.amazon-bundle-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.amazon-bundle-section-label {
  color: var(--amazon-text);
  font-size: 14px;
  font-weight: 760;
}

.amazon-bundle-config-head p {
  max-width: 68ch;
  margin: 4px 0 0;
  color: var(--amazon-dim);
  font-size: 11px;
  line-height: 1.5;
}

.amazon-bundle-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
}

.amazon-bundle-choice {
  position: relative;
  min-height: 146px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  height: 100%;
  box-sizing: border-box;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--amazon-line);
  border-radius: 5px;
  background: rgba(255,255,255,.025);
  cursor: pointer;
}

.amazon-bundle-choice:hover {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
}

.amazon-bundle-choice.is-checked {
  border-color: var(--amazon-line-strong);
  background: var(--amazon-action-soft);
}

.amazon-bundle-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.amazon-bundle-choice-mark {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 2px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 3px;
}

.amazon-bundle-choice.is-checked .amazon-bundle-choice-mark {
  border-color: var(--amazon-action);
  background: var(--amazon-action);
  box-shadow: inset 0 0 0 3px var(--amazon-surface);
}

.amazon-bundle-choice strong,
.amazon-bundle-choice small,
.amazon-bundle-choice-warning { display: block; }

.amazon-bundle-choice-copy {
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.amazon-bundle-choice strong {
  color: var(--amazon-text);
  font-size: 12px;
  font-weight: 700;
}

.amazon-bundle-choice small {
  margin-top: 2px;
  color: var(--amazon-dim);
  font-size: 10px;
  line-height: 1.35;
}

.amazon-bundle-choice-warning {
  margin-top: 3px;
  color: #f0a49b;
  font-size: 10px;
}

.amazon-bundle-choice-custom {
  width: 100%;
  min-height: 56px;
  box-sizing: border-box;
  margin-top: auto;
  border: 1px solid var(--amazon-line);
  border-radius: 4px;
  color: var(--amazon-text);
  background: var(--amazon-deep);
  padding: 7px 8px;
  font: 11px/1.4 var(--app-font-ui, "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif);
  resize: vertical;
}

.amazon-bundle-choice-custom::placeholder { color: var(--amazon-dim); }

.amazon-bundle-choice-custom:focus {
  border-color: var(--amazon-line-strong);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,.1);
}

.amazon-bundle-choice-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--amazon-dim);
  font-size: 10px;
}

.amazon-bundle-choice-file span {
  color: var(--amazon-muted);
  font-weight: 650;
}

.amazon-bundle-choice-file input {
  position: static;
  width: 100%;
  min-width: 0;
  height: 24px;
  opacity: 1;
  pointer-events: auto;
  color: var(--amazon-muted);
  font: 10px/1 var(--app-font-ui, "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif);
}

.amazon-bundle-choice-file small {
  grid-column: 1 / -1;
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.amazon-bundle-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--amazon-muted);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.amazon-bundle-switch input {
  position: absolute;
  opacity: 0;
}

.amazon-bundle-switch span {
  width: 30px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255,255,255,.16);
}

.amazon-bundle-switch input:checked + span {
  background: var(--amazon-action);
  box-shadow: inset 14px 0 0 #17191c;
}

.amazon-bundle-aplus-controls {
  display: grid;
  grid-template-columns: auto;
  align-items: center;
  gap: 10px;
}

.amazon-bundle-aplus-controls .amazon-bundle-choice-grid {
  grid-column: 1 / -1;
}

.amazon-bundle-summary {
  min-height: 20px;
  color: var(--amazon-muted);
  font-size: 11px;
}

.amazon-bundle-outline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--amazon-line);
  border-radius: 5px;
  color: var(--amazon-muted);
  background: var(--amazon-action-soft);
  font-size: 11px;
}

.amazon-bundle-outline-badge {
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 4px;
  color: var(--amazon-text);
  background: rgba(255,255,255,.12);
  font-size: 10px;
  font-weight: 700;
}

