/* Bonus Tools helper styles.
   Resize preview is hidden again. Background remover stays fit-to-view at 100%,
   then can zoom/scroll for manual erase and restore work. */

[role="dialog"]:has([data-testid="resize-settings-panel"]) .grid.gap-3.md\:grid-cols-2 {
  display: none !important;
}

.giftuber-resize-presets,
.giftuber-emote-pack-panel {
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.48), rgba(8, 13, 30, 0.64));
  padding: 0.75rem;
}

.giftuber-resize-presets-title {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.giftuber-resize-preset-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.25rem, 1fr));
  gap: 0.5rem;
}

.giftuber-resize-preset-chip {
  display: flex;
  min-height: 3rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 0.85rem;
  background: radial-gradient(circle at 18% 10%, rgba(34, 211, 238, 0.14), transparent 46%), rgba(5, 8, 23, 0.72);
  color: white;
  padding: 0.55rem 0.7rem;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.giftuber-resize-preset-chip:hover {
  border-color: rgba(34, 211, 238, 0.46);
  background: radial-gradient(circle at 18% 10%, rgba(34, 211, 238, 0.22), transparent 46%), rgba(5, 8, 23, 0.84);
}

.giftuber-resize-preset-chip span {
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.05;
}

.giftuber-resize-preset-chip strong {
  color: rgba(125, 211, 252, 0.9);
  font-size: 0.68rem;
  font-weight: 800;
}

.giftuber-emote-pack-panel {
  display: grid;
  gap: 0.65rem;
  border-color: rgba(244, 114, 182, 0.24);
  background:
    radial-gradient(circle at 10% 10%, rgba(244, 114, 182, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(30, 18, 52, 0.62), rgba(8, 13, 30, 0.74));
}

.giftuber-emote-pack-copy {
  display: grid;
  gap: 0.2rem;
}

.giftuber-emote-pack-copy strong {
  color: white;
  font-size: 0.9rem;
  font-weight: 950;
}

.giftuber-emote-pack-copy span,
.giftuber-emote-pack-note {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  line-height: 1.25;
}

.giftuber-emote-padding-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.75rem;
  font-weight: 900;
}

.giftuber-emote-padding-label select {
  min-height: 2.35rem;
  border: 1px solid rgba(244, 114, 182, 0.28);
  border-radius: 0.8rem;
  background: rgba(5, 8, 23, 0.86);
  color: white;
  padding: 0 0.65rem;
  font-weight: 800;
}

.giftuber-emote-pack-button {
  min-height: 2.75rem;
  border: 1px solid rgba(244, 114, 182, 0.44);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.86), rgba(34, 211, 238, 0.72));
  color: white;
  font-weight: 950;
  box-shadow: 0 16px 32px -22px rgba(244, 114, 182, 0.95);
}

.giftuber-emote-pack-button:hover {
  filter: brightness(1.05) saturate(1.08);
}

.giftuber-emote-pack-button[data-state]::after {
  content: attr(data-state);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.9;
}

.giftuber-bg-zoom-wrap {
  position: relative;
  align-items: center !important;
  justify-items: center !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.giftuber-bg-zoom-wrap canvas[aria-label="Editable cutout preview"] {
  transform-origin: 50% 50%;
}

.giftuber-bg-zoom-toolbar {
  position: sticky;
  top: 0.35rem;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.2rem auto 0.5rem;
  padding: 0.25rem;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: 999px;
  background: rgba(5, 8, 23, 0.78);
  backdrop-filter: blur(10px);
}

.giftuber-bg-zoom-toolbar button {
  min-width: 2.15rem;
  min-height: 2.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 900;
}

.giftuber-bg-zoom-toolbar span {
  display: inline-flex;
  align-items: center;
  padding: 0 0.45rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
}

.giftuber-bg-zoom-hint {
  flex-basis: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.66rem;
  font-weight: 700;
}
