[data-tool-id="ai-head-swap"],
.left-panel--tool-ai-head-swap {
  display: none !important;
}

.left-panel--tool-ai-face-swap .ai-agent__modes > button:nth-child(2),
.mobile-tool-page--swap .ai-agent__modes > button:nth-child(2),
.mobile-tool-content--swap .ai-agent__modes > button:nth-child(2) {
  display: none !important;
}

.left-panel--tool-ai-face-swap .ai-agent__modes,
.mobile-tool-page--swap .ai-agent__modes,
.mobile-tool-content--swap .ai-agent__modes {
  grid-template-columns: minmax(0, 1fr) !important;
}

.left-panel--tool-ai-face-swap [role="button"] > span[style*="47a0ff"],
.mobile-tool-page--swap [role="button"] > span[style*="47a0ff"],
.mobile-tool-content--swap [role="button"] > span[style*="47a0ff"] {
  display: none !important;
}

.sg-aifaceswap-error {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 2147483646;
  width: min(520px, calc(100vw - 24px));
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(255, 112, 112, .35);
  border-radius: 16px;
  background: rgba(27, 12, 16, .97);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .48);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
  box-sizing: border-box;
}

.sg-aifaceswap-error.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sg-aifaceswap-error__body {
  min-width: 0;
  flex: 1 1 auto;
}

.sg-aifaceswap-error__title {
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 750;
}

.sg-aifaceswap-error__text {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .82);
}

.sg-aifaceswap-error__close {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin: -4px -4px 0 0;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .8);
  font-size: 22px;
  line-height: 28px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .sg-aifaceswap-error {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 20px);
    padding: 12px 12px 12px 14px;
    border-radius: 14px;
  }
}

.sg-aifaceswap-runtime-heading {
  margin-bottom: 10px;
}

.sg-aifaceswap-runtime-heading__description {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .72);
}


/* v1.0.124: Face Swap accepts the complete reference photo only. */
.left-panel--tool-ai-face-swap input[type="range"],
.mobile-tool-page--swap input[type="range"],
.mobile-tool-content--swap input[type="range"] {
  display: none !important;
}

.left-panel--tool-ai-face-swap [role="button"] > span,
.mobile-tool-page--swap [role="button"] > span,
.mobile-tool-content--swap [role="button"] > span {
  display: none !important;
}
