/* Fotor Photo Editor 1.0.187 — desktop cleanup pass 4. */
@media (min-width: 769px) {
  /* ===== Info dropdown: flatter editorial list ===== */
  #fotor-root .esg-nav__dropdown--info,
  #fotor-root .esg-nav__dropdown.esg-nav__dropdown--info {
    width: 258px !important;
    min-width: 258px !important;
    padding: 8px !important;
    border: 1px solid rgba(255,255,255,.075) !important;
    border-radius: 13px !important;
    background: #11151a !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.34) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  #fotor-root .esg-nav__dropdown--info .esg-nav__group {
    padding: 6px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  #fotor-root .esg-nav__dropdown--info .esg-nav__group-title {
    padding: 5px 8px 7px !important;
    color: rgba(160,169,181,.68) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
  }
  #fotor-root .esg-nav__dropdown--info a,
  #fotor-root .esg-nav__dropdown--info button:not(.esg-nav__link) {
    min-height: 37px !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: rgba(217,223,232,.82) !important;
    box-shadow: none !important;
    font-size: 11.5px !important;
    font-weight: 560 !important;
  }
  #fotor-root .esg-nav__dropdown--info a:hover,
  #fotor-root .esg-nav__dropdown--info button:not(.esg-nav__link):hover {
    background: rgba(255,255,255,.045) !important;
    color: #fff !important;
  }

  /* ===== Reusable action cards: pose / outfit / hair ===== */
  #fotor-root .editor-shell:not(.is-mobile) .sg-action-card {
    min-height: 68px !important;
    padding: 10px 11px !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0,1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    border: 1px solid rgba(255,255,255,.085) !important;
    border-radius: 12px !important;
    background: #11161c !important;
    box-shadow: none !important;
  }
  #fotor-root .editor-shell:not(.is-mobile) .sg-action-card:hover {
    border-color: rgba(255,255,255,.14) !important;
    background: #151b22 !important;
  }
  #fotor-root .editor-shell:not(.is-mobile) .sg-action-card.sg-action-card--prompt {
    border-color: rgba(69,151,255,.38) !important;
    background: linear-gradient(90deg, rgba(47,125,246,.10), rgba(17,22,28,.98) 42%) !important;
  }
  #fotor-root .editor-shell:not(.is-mobile) .sg-action-card__icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid rgba(86,156,255,.20) !important;
    border-radius: 11px !important;
    background: rgba(47,125,246,.09) !important;
    color: #83b4ff !important;
    box-shadow: none !important;
  }
  #fotor-root .editor-shell:not(.is-mobile) .sg-action-card__body {
    min-width: 0 !important;
    padding: 0 !important;
  }
  #fotor-root .editor-shell:not(.is-mobile) .sg-action-card__title {
    margin: 0 !important;
    color: #f1f5f9 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
  }
  #fotor-root .editor-shell:not(.is-mobile) .sg-action-card__desc {
    margin-top: 3px !important;
    color: rgba(174,183,195,.72) !important;
    font-size: 10.5px !important;
    font-weight: 520 !important;
    line-height: 1.28 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  /* ===== Hair / Outfit reference blocks ===== */
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-hair .ai-refs,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-outfit .ai-refs,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-hair .ai-refs-picked,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-outfit .ai-refs-picked {
    padding: 11px !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 12px !important;
    background: #0d1218 !important;
    box-shadow: none !important;
  }
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-hair .ai-refs-btn,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-outfit .ai-refs-btn {
    min-height: 32px !important;
    padding: 0 10px !important;
    gap: 6px !important;
    border: 1px solid rgba(255,255,255,.075) !important;
    border-radius: 9px !important;
    background: #14191f !important;
    color: rgba(226,231,238,.88) !important;
    box-shadow: none !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
  }
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-hair .ai-refs-btn.is-active,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-outfit .ai-refs-btn.is-active,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-hair .ai-refs-btn[aria-pressed="true"],
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-outfit .ai-refs-btn[aria-pressed="true"] {
    border-color: rgba(70,151,255,.48) !important;
    background: rgba(47,125,246,.12) !important;
    color: #f5f8ff !important;
  }
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-hair .ai-refs-btn img.emoji,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-outfit .ai-refs-btn img.emoji {
    display: none !important;
  }
  #fotor-root .editor-shell:not(.is-mobile) .sg-desktop-ref-icon {
    width: 14px !important;
    height: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #8ab8ff !important;
  }
  #fotor-root .editor-shell:not(.is-mobile) .sg-desktop-ref-icon svg {
    width: 100% !important;
    height: 100% !important;
  }

  /* Hair try-on: make source cards a single coherent block. */
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-hair .ai-hair-top,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-outfit .ai-hair-top {
    gap: 10px !important;
  }
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-hair .ai-hair-scroll,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-outfit .ai-hair-scroll {
    padding-bottom: 84px !important;
  }
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-hair .ai-hair-footer,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-outfit .ai-hair-footer {
    padding: 10px 12px 12px !important;
    gap: 8px !important;
    background: rgba(10,14,19,.985) !important;
    border-top: 1px solid rgba(255,255,255,.055) !important;
    box-shadow: 0 -10px 24px rgba(0,0,0,.18) !important;
  }

  /* ===== Face Swap: never show WordPress emoji placeholder ===== */
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-face-swap img.emoji {
    display: none !important;
  }
  #fotor-root .editor-shell:not(.is-mobile) .left-panel--tool-ai-face-swap .sg-face-placeholder-icon {
    width: 58px !important;
    height: 58px !important;
    border-radius: 15px !important;
    background: rgba(47,125,246,.07) !important;
    border-color: rgba(78,150,255,.20) !important;
  }

  /* ===== Hair color popup: proper desktop sheet inside the tool rail ===== */
  #fotor-root .editor-shell:not(.is-mobile) .hair-color-modal-backdrop,
  body > .hair-color-modal-backdrop:has(.hair-color-modal--desktop) {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483400 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 64px 0 24px 82px !important;
    box-sizing: border-box !important;
    background: rgba(3,5,8,.48) !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
  }
  body > .hair-color-modal-backdrop .hair-color-modal,
  #fotor-root .editor-shell:not(.is-mobile) .hair-color-modal {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 330px !important;
    max-width: 330px !important;
    max-height: min(650px, calc(100vh - 98px)) !important;
    margin: 0 !important;
    padding: 14px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(255,255,255,.085) !important;
    border-radius: 16px !important;
    background: #0c1117 !important;
    box-shadow: 0 22px 54px rgba(0,0,0,.42) !important;
  }
  body > .hair-color-modal-backdrop .hair-color-modal__header,
  #fotor-root .editor-shell:not(.is-mobile) .hair-color-modal__header {
    min-height: 42px !important;
    margin: -2px 0 12px !important;
    padding: 0 0 10px !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
  }
  body > .hair-color-modal-backdrop .hair-color-modal__title,
  #fotor-root .editor-shell:not(.is-mobile) .hair-color-modal__title {
    color: #f4f7fb !important;
    font-size: 15px !important;
    font-weight: 840 !important;
  }
  body > .hair-color-modal-backdrop .hair-color-modal__hint,
  #fotor-root .editor-shell:not(.is-mobile) .hair-color-modal__hint {
    margin-top: 3px !important;
    color: rgba(170,179,191,.72) !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
  }
  body > .hair-color-modal-backdrop .hair-color-modal__grid,
  #fotor-root .editor-shell:not(.is-mobile) .hair-color-modal__grid {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 7px !important;
  }
  body > .hair-color-modal-backdrop .hair-color-modal__swatch,
  #fotor-root .editor-shell:not(.is-mobile) .hair-color-modal__swatch {
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 0 9px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: 1px solid rgba(255,255,255,.075) !important;
    border-radius: 10px !important;
    background: #13181f !important;
    box-shadow: none !important;
    color: rgba(228,233,240,.88) !important;
  }
  body > .hair-color-modal-backdrop .hair-color-modal__swatch.active,
  #fotor-root .editor-shell:not(.is-mobile) .hair-color-modal__swatch.active {
    border-color: rgba(67,151,255,.72) !important;
    background: rgba(47,125,246,.13) !important;
    color: #fff !important;
  }
  body > .hair-color-modal-backdrop .hair-color-modal__swatch > span,
  #fotor-root .editor-shell:not(.is-mobile) .hair-color-modal__swatch > span {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    border-radius: 50% !important;
  }
  body > .hair-color-modal-backdrop .hair-color-modal__swatch b,
  #fotor-root .editor-shell:not(.is-mobile) .hair-color-modal__swatch b {
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
  }
  body > .hair-color-modal-backdrop .hair-color-modal__rgb,
  #fotor-root .editor-shell:not(.is-mobile) .hair-color-modal__rgb {
    margin-top: 12px !important;
    padding: 10px !important;
    display: grid !important;
    grid-template-columns: 30px 36px repeat(3,minmax(0,1fr)) !important;
    gap: 6px !important;
    align-items: center !important;
    border: 1px solid rgba(255,255,255,.065) !important;
    border-radius: 11px !important;
    background: #0a0e13 !important;
  }
  body > .hair-color-modal-backdrop .hair-color-modal__rgb label,
  #fotor-root .editor-shell:not(.is-mobile) .hair-color-modal__rgb label {
    color: rgba(176,185,197,.72) !important;
    font-size: 9.5px !important;
    font-weight: 760 !important;
  }
  body > .hair-color-modal-backdrop .hair-color-modal__rgb input[type="number"],
  #fotor-root .editor-shell:not(.is-mobile) .hair-color-modal__rgb input[type="number"] {
    min-width: 0 !important;
    width: 100% !important;
    height: 32px !important;
    padding: 0 5px !important;
    border: 1px solid rgba(255,255,255,.075) !important;
    border-radius: 8px !important;
    background: #14191f !important;
    color: #f3f6fb !important;
    text-align: center !important;
    font-size: 10px !important;
  }
  body > .hair-color-modal-backdrop .hair-color-modal__apply,
  #fotor-root .editor-shell:not(.is-mobile) .hair-color-modal__apply {
    grid-column: 1 / -1 !important;
    min-height: 40px !important;
    margin-top: 5px !important;
    border: 1px solid rgba(73,145,244,.48) !important;
    border-radius: 10px !important;
    background: #2f7df6 !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 11.5px !important;
    font-weight: 820 !important;
  }
}
