/* 1.0.330 — mobile Product Creative as a stable horizontal scenario strip. */
@media (max-width: 768px) {
  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-product-creative .left-panel-body,
  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-product-creative .product-creative-page {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-product-creative .product-creative-page {
    display: block !important;
  }

  /* Detailed product fields stay in the native manual-settings sheet. */
  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-product-creative .product-creative-top {
    display: none !important;
  }

  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-product-creative .product-creative-quick {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 6px 7px !important;
    box-sizing: border-box !important;
    gap: 7px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-product-creative .product-creative-quick::-webkit-scrollbar {
    display: none !important;
  }

  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-product-creative
  .product-creative-quick > button:not(.product-creative-settings-tile) {
    position: relative !important;
    flex: 0 0 108px !important;
    width: 108px !important;
    min-width: 108px !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
    scroll-snap-align: start !important;
  }

  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-product-creative
  .product-creative-quick > button:not(.product-creative-settings-tile) > span {
    position: absolute !important;
    inset: auto 4px 4px 4px !important;
    z-index: 5 !important;
    display: -webkit-box !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 24px !important;
    max-height: 34px !important;
    margin: 0 !important;
    padding: 4px 5px !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    background: rgba(6,9,14,.82) !important;
    color: #fff !important;
    font-size: 9px !important;
    font-weight: 760 !important;
    line-height: 1.12 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-overflow: clip !important;
    transform: none !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    pointer-events: none !important;
  }

  /* Manual settings is the first, clearly different service action. */
  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-product-creative .product-creative-settings-tile {
    order: -1 !important;
    flex: 0 0 86px !important;
    width: 86px !important;
    min-width: 86px !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 7px 5px !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background: rgba(47,125,246,.10) !important;
    border-color: rgba(91,158,246,.32) !important;
    color: rgba(239,245,253,.94) !important;
    font-size: 9px !important;
    line-height: 1.12 !important;
    text-align: center !important;
    white-space: normal !important;
    scroll-snap-align: start !important;
  }

  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-product-creative .product-creative-settings-ico {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    border-radius: 9px !important;
    background: rgba(47,125,246,.16) !important;
    color: #86b9ff !important;
  }

  /* Keep the real React action readable above the scenario strip. */
  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-product-creative .product-creative-footer {
    position: fixed !important;
    right: 8px !important;
    bottom: calc(52px + var(--m-panel-h, 128px) + 8px) !important;
    z-index: 9100 !important;
    display: block !important;
    width: 116px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-product-creative .product-creative-footer > select {
    display: none !important;
  }

  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-product-creative .product-creative-footer > button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 116px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    overflow: hidden !important;
    border-radius: 9px !important;
    font-size: 9px !important;
    font-weight: 760 !important;
    line-height: 1.08 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-product-creative .product-creative-footer > button::after {
    content: none !important;
  }
}

@media (max-width: 380px) {
  #fotor-root .editor-shell.is-mobile
  .left-panel--tool-ai-product-creative
  .product-creative-quick > button:not(.product-creative-settings-tile) {
    flex-basis: 98px !important;
    width: 98px !important;
    min-width: 98px !important;
  }
}
