/* Fotor Photo Editor 1.0.279 — stage 2.5: collapsible mobile tool panel. */

@media (max-width: 768px) {
  #fotor-root .editor-shell.is-mobile .sg-mobile-panel-toggle {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid rgba(255, 255, 255, .10) !important;
    border-radius: 10px !important;
    background: #11161e !important;
    color: rgba(222, 230, 240, .86) !important;
    box-shadow: none !important;
    pointer-events: auto !important;
  }

  #fotor-root .editor-shell.is-mobile .sg-mobile-panel-toggle::before {
    content: "";
    width: 16px;
    height: 16px;
    display: block;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  }

  #fotor-root .editor-shell.is-mobile .sg-mobile-panel-toggle:focus-visible {
    outline: 2px solid rgba(105, 174, 255, .90) !important;
    outline-offset: 2px !important;
  }

  #fotor-root .editor-shell.is-mobile .left-panel,
  #fotor-root .editor-shell.is-mobile .mtool-top-controls {
    transition: height .18s ease, opacity .18s ease, transform .18s ease, bottom .18s ease !important;
  }

  /* Collapsed state: release the preset strip and leave one useful title bar. */
  #fotor-root .editor-shell.is-mobile.sg-mobile-panel-collapsed {
    --m-panel-h: 0px !important;
  }

  #fotor-root .editor-shell.is-mobile.sg-mobile-panel-collapsed .left-panel[class*="left-panel--tool-"] {
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(8px) !important;
  }

  #fotor-root .editor-shell.is-mobile.sg-mobile-panel-collapsed .mtool-top-controls {
    left: 8px !important;
    right: 8px !important;
    bottom: calc(var(--m-rail-h, 58px) + env(safe-area-inset-bottom, 0px) + 5px) !important;
    width: auto !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 3px 5px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    border: 1px solid rgba(255, 255, 255, .09) !important;
    border-radius: 12px !important;
    background: rgba(10, 14, 19, .97) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .34) !important;
    pointer-events: auto !important;
  }

  #fotor-root .editor-shell.is-mobile.sg-mobile-panel-collapsed .mtool-top-controls .mtool-top-group--right,
  #fotor-root .editor-shell.is-mobile.sg-mobile-panel-collapsed .mtool-top-controls .mtool-top-group--left > :not(.sg-mobile-panel-toggle) {
    display: none !important;
  }

  #fotor-root .editor-shell.is-mobile.sg-mobile-panel-collapsed .mtool-top-controls .mtool-top-group--left {
    width: 34px !important;
    min-width: 34px !important;
  }

  #fotor-root .editor-shell.is-mobile.sg-mobile-panel-collapsed .sg-mobile-panel-toggle::before {
    transform: rotate(180deg);
  }

  #fotor-root .editor-shell.is-mobile.sg-mobile-panel-collapsed .mtool-top-controls[data-sg-tool-title]::before,
  #fotor-root .editor-shell.is-mobile.sg-mobile-panel-collapsed .mtool-top-controls[data-sg-tool-title-hidden="1"]::before {
    content: attr(data-sg-tool-title) !important;
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    left: 48px !important;
    width: auto !important;
    padding: 0 !important;
    display: block !important;
    overflow: hidden !important;
    color: rgba(238, 244, 252, .92) !important;
    font-size: 12px !important;
    font-weight: 780 !important;
    line-height: 16px !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    transform: translateY(-50%) !important;
  }

  /* Floating history follows the released workspace only if the user has not
     manually dragged it to a custom position. */
  #fotor-root .editor-shell.is-mobile.sg-mobile-panel-collapsed .ws-float-controls.is-mobile-floating:not(.is-dragged) {
    bottom: calc(var(--m-rail-h, 58px) + 54px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
  #fotor-root .editor-shell.is-mobile .left-panel,
  #fotor-root .editor-shell.is-mobile .mtool-top-controls {
    transition: none !important;
  }
}
