.popelup-configurator__direct-image-toolbar__remove-background {
  align-items: center;
  color: var(--popelup-app-accent-strong) !important;
  display: inline-flex;
  justify-content: center;
  position: relative;
}

.popelup-configurator__direct-image-toolbar__remove-background[hidden] {
  display: none !important;
}

.popelup-configurator__background-removal-discovery {
  align-items: center;
  animation: popelup-background-removal-discovery-in 180ms ease-out both;
  background: linear-gradient(135deg, #fffdf9 0%, #fff4ed 100%);
  border: 1px solid rgba(237, 117, 77, 0.42);
  border-radius: 14px;
  bottom: auto;
  box-shadow: 0 14px 38px rgba(21, 49, 79, 0.18), 0 2px 8px rgba(21, 49, 79, 0.08);
  color: var(--popelup-app-ink, #15314f);
  display: grid;
  gap: 10px;
  grid-template-columns: 32px minmax(0, 1fr) 26px;
  left: 50%;
  padding: 11px 10px 11px 12px;
  pointer-events: auto;
  position: absolute;
  text-align: left;
  top: calc(100% + 12px);
  transform: translateX(-50%);
  width: min(286px, calc(100vw - 28px));
  z-index: 40;
}

.popelup-configurator__background-removal-discovery[hidden] {
  display: none !important;
}

.popelup-configurator__background-removal-discovery::after {
  background: #fff5ee;
  border-left: 1px solid rgba(237, 117, 77, 0.42);
  border-top: 1px solid rgba(237, 117, 77, 0.42);
  content: "";
  height: 11px;
  left: 72%;
  position: absolute;
  top: -6px;
  transform: rotate(45deg);
  width: 11px;
}

.popelup-configurator__background-removal-discovery__sparkle {
  align-items: center;
  background: linear-gradient(135deg, #ed754d, #df6038);
  border-radius: 10px;
  box-shadow: 0 5px 13px rgba(223, 96, 56, 0.24);
  color: #fff;
  display: flex;
  font-size: 18px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.popelup-configurator__background-removal-discovery__copy {
  display: grid;
  gap: 2px;
  line-height: 1.2;
  min-width: 0;
}

.popelup-configurator__background-removal-discovery__copy strong {
  color: var(--popelup-app-accent-strong, #df6038);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.popelup-configurator__background-removal-discovery__copy span {
  color: var(--popelup-app-muted, #6e7d8d);
  font-size: 0.72rem;
}

.popelup-configurator__background-removal-discovery > button {
  align-items: center;
  align-self: start;
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: var(--popelup-app-muted, #6e7d8d) !important;
  display: flex;
  font-size: 20px !important;
  height: 26px !important;
  justify-content: center;
  line-height: 1 !important;
  min-height: 26px !important;
  min-width: 26px !important;
  padding: 0 !important;
  width: 26px !important;
}

@keyframes popelup-background-removal-discovery-in {
  from { opacity: 0; transform: translate(-50%, 5px) scale(0.97); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.popelup-configurator__direct-image-toolbar__remove-background.is-processing .popelup-configurator__ui-icon {
  opacity: 0.3;
}

.popelup-configurator__direct-image-toolbar__remove-background.is-processing::after {
  animation: popelup-background-removal-spin 0.75s linear infinite;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  height: 18px;
  position: absolute;
  width: 18px;
}

@keyframes popelup-background-removal-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .popelup-configurator__direct-image-toolbar[data-popelup-background-removal="available"] {
    grid-template-columns: repeat(6, minmax(0, 38px)) 38px 38px;
    width: 304px;
  }

  .popelup-configurator__direct-image-toolbar[data-popelup-background-removal="available"]
  :is(.popelup-configurator__direct-image-toolbar__remove-background, .popelup-configurator__direct-image-toolbar__delete) {
    flex: none !important;
    min-width: 0 !important;
    width: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .popelup-configurator__background-removal-discovery {
    animation: none;
  }

  .popelup-configurator__direct-image-toolbar__remove-background.is-processing::after {
    animation-duration: 1.5s;
  }
}
