/* 1.0.312 — tool search portal lives outside the React root. */
@media (min-width: 769px) {
  #fotor-root .editor-shell:not(.is-mobile) .lp-catalog.sg312-search-active {
    padding-top: 46px !important;
  }

  #fotor-root .editor-shell:not(.is-mobile) .lp-cat-card.sg312-search-hidden {
    display: none !important;
  }

  body > .sg312-tool-search-portal {
    position: fixed !important;
    z-index: 2147482000 !important;
    top: var(--sg312-top, -200px) !important;
    left: var(--sg312-left, -200px) !important;
    width: var(--sg312-width, 0) !important;
    box-sizing: border-box !important;
    padding: 0 14px 8px !important;
    display: none !important;
    pointer-events: none !important;
  }

  body > .sg312-tool-search-portal.is-visible {
    display: block !important;
  }

  body > .sg312-tool-search-portal .sg312-tool-search-field {
    width: 100% !important;
    height: 38px !important;
    box-sizing: border-box !important;
    padding: 0 8px 0 11px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 10px !important;
    background: #10151b !important;
    color: rgba(255,255,255,.52) !important;
    pointer-events: auto !important;
  }

  body > .sg312-tool-search-portal .sg312-tool-search-field:focus-within {
    border-color: rgba(67,145,255,.72) !important;
    box-shadow: 0 0 0 2px rgba(47,125,246,.12) !important;
  }

  body > .sg312-tool-search-portal svg {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
  }

  body > .sg312-tool-search-portal input {
    width: 100% !important;
    min-width: 0 !important;
    height: 36px !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(255,255,255,.92) !important;
    font: 500 12px/36px Inter, sans-serif !important;
    appearance: none !important;
  }

  body > .sg312-tool-search-portal input::placeholder {
    color: rgba(255,255,255,.40) !important;
  }

  body > .sg312-tool-search-portal input::-webkit-search-cancel-button {
    display: none !important;
  }

  body > .sg312-tool-search-portal .sg312-tool-search-clear {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: rgba(255,255,255,.60) !important;
    font-size: 18px !important;
    cursor: pointer !important;
  }

  body > .sg312-tool-search-portal .sg312-tool-search-clear[hidden] {
    display: none !important;
  }

  body > .sg312-tool-search-portal .sg312-tool-search-empty {
    padding: 22px 8px 10px !important;
    background: #0b0f14 !important;
    color: rgba(255,255,255,.48) !important;
    font-size: 12px !important;
    text-align: center !important;
    pointer-events: none !important;
  }

  body > .sg312-tool-search-portal .sg312-tool-search-empty[hidden] {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body > .sg312-tool-search-portal {
    display: none !important;
  }
}
