/* Fotor Photo Editor 1.0.177 — readable labels for three mobile AI tool cards, pinned to preview bottom. */

@media (max-width: 768px) {
  /* Only these three catalog cards are adjusted. All other AI cards remain untouched. */
  #fotor-root .editor-shell.is-mobile .mobile-catalog-card[data-tool-id="ai-enhance"],
  #fotor-root .editor-shell.is-mobile .mobile-catalog-card[data-tool-id="ai-product-creative"],
  #fotor-root .editor-shell.is-mobile .mobile-catalog-card[data-tool-id="ai-add-person"] {
    position: relative !important;
    flex: 0 0 96px !important;
    width: 96px !important;
    max-width: 96px !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 2px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    background: rgba(13, 16, 21, .96) !important;
  }

  #fotor-root .editor-shell.is-mobile .mobile-catalog-card[data-tool-id="ai-enhance"] .mobile-catalog-media,
  #fotor-root .editor-shell.is-mobile .mobile-catalog-card[data-tool-id="ai-product-creative"] .mobile-catalog-media,
  #fotor-root .editor-shell.is-mobile .mobile-catalog-card[data-tool-id="ai-add-person"] .mobile-catalog-media {
    position: absolute !important;
    inset: 2px !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    border-radius: 9px !important;
    overflow: hidden !important;
  }

  #fotor-root .editor-shell.is-mobile .mobile-catalog-card[data-tool-id="ai-enhance"] .mobile-catalog-media img,
  #fotor-root .editor-shell.is-mobile .mobile-catalog-card[data-tool-id="ai-product-creative"] .mobile-catalog-media img,
  #fotor-root .editor-shell.is-mobile .mobile-catalog-card[data-tool-id="ai-add-person"] .mobile-catalog-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  /* Match the other catalog cards: title is an overlay fixed at the BOTTOM. */
  #fotor-root .editor-shell.is-mobile .mobile-catalog-card[data-tool-id="ai-enhance"] .mobile-catalog-title,
  #fotor-root .editor-shell.is-mobile .mobile-catalog-card[data-tool-id="ai-product-creative"] .mobile-catalog-title,
  #fotor-root .editor-shell.is-mobile .mobile-catalog-card[data-tool-id="ai-add-person"] .mobile-catalog-title {
    position: absolute !important;
    z-index: 8 !important;
    top: auto !important;
    right: 5px !important;
    bottom: 5px !important;
    left: 5px !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 2px 4px 3px !important;
    box-sizing: border-box !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    white-space: normal !important;
    text-overflow: clip !important;
    border: 1px solid rgba(255, 255, 255, .09) !important;
    border-radius: 6px !important;
    background: rgba(7, 9, 12, .76) !important;
    color: rgba(248, 250, 255, .98) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .30) !important;
    backdrop-filter: blur(4px) saturate(1.05) !important;
    -webkit-backdrop-filter: blur(4px) saturate(1.05) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .90) !important;
    font-size: 8.5px !important;
    font-weight: 800 !important;
    line-height: 10px !important;
    letter-spacing: -.01em !important;
    text-align: center !important;
    pointer-events: none !important;
  }
}

@media (max-width: 370px) {
  #fotor-root .editor-shell.is-mobile .mobile-catalog-card[data-tool-id="ai-enhance"],
  #fotor-root .editor-shell.is-mobile .mobile-catalog-card[data-tool-id="ai-product-creative"],
  #fotor-root .editor-shell.is-mobile .mobile-catalog-card[data-tool-id="ai-add-person"] {
    flex-basis: 92px !important;
    width: 92px !important;
    max-width: 92px !important;
  }
}
