/* Fotor Photo Editor 1.0.166 — mobile selected-preset label outside editor clipping. */

.sg-mobile-preset-active-label {
  display: none;
}

@media (max-width: 768px) {
  /* Image preset cards are visual previews; selected title is rendered separately. */
  #fotor-root .editor-shell.is-mobile .mobile-preset-card .mobile-preset-name {
    display: none !important;
  }

  /* Correction relies on text-only preset pills, so leave those labels untouched. */
  #fotor-root .editor-shell.is-mobile .adjust-mobile-page .mobile-preset-card .mobile-preset-name {
    display: flex !important;
    position: static !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #fotor-root .editor-shell.is-mobile .mobile-preset-card:not(.adjust-mobile-page .mobile-preset-card) .mobile-preset-thumb {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: inherit !important;
  }

  /* Quieter corner badges. */
  #fotor-root .editor-shell.is-mobile .mobile-preset-card[data-sg-premium-locked="1"]::after,
  #fotor-root .editor-shell.is-mobile .mobile-catalog-card[data-sg-premium-locked="1"]::after {
    top: 3px !important;
    right: 3px !important;
    min-width: 22px !important;
    height: 13px !important;
    padding: 0 4px !important;
    border-radius: 999px !important;
    font-size: 6px !important;
    font-weight: 950 !important;
    letter-spacing: .055em !important;
    line-height: 1 !important;
    box-shadow: 0 3px 8px rgba(44,83,210,.24), inset 0 1px 0 rgba(255,255,255,.16) !important;
  }

  #fotor-root .editor-shell.is-mobile .mobile-catalog-badge {
    top: 3px !important;
    left: 3px !important;
    padding: 2px 4px !important;
    font-size: 7px !important;
    line-height: 1 !important;
  }

  #fotor-root .editor-shell.is-mobile .mobile-preset-card.active {
    border-color: rgba(88,166,255,.92) !important;
    box-shadow: 0 0 0 1px rgba(47,140,255,.20), 0 8px 20px rgba(20,78,170,.18) !important;
  }

  /*
   * IMPORTANT: this element is appended to document.body, not #fotor-root.
   * That avoids the editor shell's overflow/transform clipping.
   * JS positions it in the free center zone immediately above the preset strip.
   */
  body > .sg-mobile-preset-active-label {
    position: fixed !important;
    z-index: 2147482000 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: min(43vw, 168px);
    min-width: 96px;
    max-width: 168px;
    height: 27px;
    padding: 0 9px;
    margin: 0;
    border: 1px solid rgba(111,166,255,.28);
    border-radius: 999px;
    background: rgba(12,16,23,.94);
    color: rgba(255,255,255,.97);
    box-shadow: 0 8px 22px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.07);
    backdrop-filter: blur(10px) saturate(1.08);
    -webkit-backdrop-filter: blur(10px) saturate(1.08);
    pointer-events: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%);
    transition: opacity 100ms ease, visibility 100ms ease;
  }

  body > .sg-mobile-preset-active-label.is-visible {
    opacity: 1;
    visibility: visible;
  }

  body > .sg-mobile-preset-active-label .sg-mobile-preset-active-label__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f7f9ff;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    text-align: center;
  }

  body > .sg-mobile-preset-active-label .sg-mobile-preset-active-label__pro {
    flex: 0 0 auto;
    height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1px solid rgba(181,199,255,.32);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(42,112,255,.96), rgba(112,62,238,.96));
    color: #fff;
    font-size: 6px;
    font-weight: 950;
    letter-spacing: .05em;
    line-height: 1;
  }
}

@media (max-width: 380px) {
  body > .sg-mobile-preset-active-label {
    width: min(41vw, 146px);
    max-width: 146px;
    min-width: 88px;
    height: 25px;
    padding: 0 7px;
  }

  body > .sg-mobile-preset-active-label .sg-mobile-preset-active-label__name {
    font-size: 9px;
  }
}
