/* Fotor Photo Editor 1.0.293 — stage 4.5: shared desktop footer and CTA system. */

@media (min-width: 769px) {
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-footer,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-correction-footer,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .product-creative-footer,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .sg-product-footer {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 12 !important;
    display: grid !important;
    grid-template-columns: 78px minmax(0, 1fr) !important;
    grid-template-rows: 42px !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 60px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 12px 10px !important;
    border: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .06) !important;
    border-radius: 0 !important;
    background: rgba(11, 15, 20, .98) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-footer > select,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .product-creative-footer > select,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .sg-product-footer > select,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-correction-footer > .ai-correction-format {
    grid-column: 1 !important;
    grid-row: 1 !important;
    box-sizing: border-box !important;
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 9px !important;
    background: #0d1218 !important;
    color: rgba(230, 235, 241, .9) !important;
    box-shadow: none !important;
    font-size: 11px !important;
  }

  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-correction-footer > .ai-correction-format {
    display: grid !important;
    place-items: center !important;
  }

  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-footer > .ai-hair-run,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-correction-footer > .ai-correction-run,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .product-creative-footer > button,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .sg-product-footer > button {
    grid-column: 2 !important;
    grid-row: 1 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid rgba(75, 145, 238, .48) !important;
    border-radius: 9px !important;
    background: #2f7df6 !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  /* Footer without a format selector uses the full width for its action. */
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-footer:not(:has(> select)):not(:has(> .ai-correction-format)),
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-correction-footer:not(:has(> select)):not(:has(> .ai-correction-format)),
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .product-creative-footer:not(:has(> select)),
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .sg-product-footer:not(:has(> select)) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-footer:not(:has(> select)):not(:has(> .ai-correction-format)) > .ai-hair-run,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-correction-footer:not(:has(> select)):not(:has(> .ai-correction-format)) > .ai-correction-run,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .product-creative-footer:not(:has(> select)) > button,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .sg-product-footer:not(:has(> select)) > button {
    grid-column: 1 !important;
  }

  /* A disabled reason is one quiet line above the control row. */
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .sg-action-disabled-reason {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: rgba(157, 167, 180, .76) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }

  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-footer.sg-action-has-reason,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-correction-footer.sg-action-has-reason,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .product-creative-footer.sg-action-has-reason,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .sg-product-footer.sg-action-has-reason {
    grid-template-rows: auto 42px !important;
    min-height: 78px !important;
  }

  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-footer.sg-action-has-reason > .sg-action-disabled-reason,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-correction-footer.sg-action-has-reason > .sg-action-disabled-reason,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .product-creative-footer.sg-action-has-reason > .sg-action-disabled-reason,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .sg-product-footer.sg-action-has-reason > .sg-action-disabled-reason {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    margin: 0 !important;
  }

  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-footer.sg-action-has-reason > select,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .product-creative-footer.sg-action-has-reason > select,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .sg-product-footer.sg-action-has-reason > select,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-correction-footer.sg-action-has-reason > .ai-correction-format {
    grid-row: 2 !important;
  }

  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-footer.sg-action-has-reason > .ai-hair-run,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-correction-footer.sg-action-has-reason > .ai-correction-run,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .product-creative-footer.sg-action-has-reason > button,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .sg-product-footer.sg-action-has-reason > button {
    grid-row: 2 !important;
  }

  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-footer button:disabled,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-correction-footer button:disabled,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .product-creative-footer button:disabled,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .sg-product-footer button:disabled {
    border-color: rgba(255, 255, 255, .055) !important;
    background: #171c22 !important;
    color: rgba(154, 163, 175, .62) !important;
    opacity: 1 !important;
  }
}
