/* Fotor Photo Editor 1.0.262 — clearer actions and disabled-state guidance. */

#fotor-root .sg-action-disabled-reason {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  margin: 0 0 6px;
  color: rgba(196, 205, 218, .82);
  font: 650 11px/1.3 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: right;
}

#fotor-root .sg-action-has-reason {
  flex-wrap: wrap !important;
}

@media (max-width: 768px) {
  #fotor-root .editor-shell.is-mobile .mtool-top-btn--apply {
    width: auto !important;
    min-width: 118px !important;
    max-width: min(43vw, 154px) !important;
    padding: 0 10px !important;
    gap: 4px !important;
  }

  #fotor-root .editor-shell.is-mobile .mtool-top-btn--apply .mtool-top-btn__icon {
    display: none !important;
  }

  #fotor-root .editor-shell.is-mobile .mtool-top-btn--apply .sg-action-label {
    display: inline-block !important;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 11px !important;
    font-weight: 780 !important;
    line-height: 1 !important;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  #fotor-root .editor-shell.is-mobile .mtool-top-btn--apply .mtool-top-btn__price::before {
    content: "·";
    margin-right: 4px;
    color: rgba(204, 215, 229, .55);
  }

  #fotor-root .editor-shell.is-mobile .mtool-top-btn--apply .mtool-top-btn__price {
    font-size: 9.5px !important;
  }

  #fotor-root .editor-shell.is-mobile .mtool-top-group.sg-action-has-reason {
    position: relative !important;
    overflow: visible !important;
  }

  #fotor-root .editor-shell.is-mobile .mtool-top-group > .sg-action-disabled-reason {
    position: absolute;
    right: 7px;
    bottom: calc(100% + 6px);
    z-index: 2;
    width: auto;
    max-width: min(74vw, 280px);
    margin: 0;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 9px;
    background: rgba(10, 14, 19, .94);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .28);
    color: rgba(222, 229, 238, .9);
    font-size: 10.5px !important;
    text-align: left;
    pointer-events: none;
  }
}

@media (min-width: 769px) {
  #fotor-root .editor-shell:not(.is-mobile) .ai-hair-footer.sg-action-has-reason,
  #fotor-root .editor-shell:not(.is-mobile) .ai-agent__footer.sg-action-has-reason {
    height: auto !important;
    min-height: 66px;
    align-content: center;
  }
}
