/**
   * FilterCraft PRO — Saved Searches Styles
   * @package FilterCraft
   */

  /* ── Save Search button ─────────────────────────────── */
  .fc-save-search {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px 14px;
    margin-top: 8px;
    background: transparent;
    border: 1px dashed var(--fc-border, #e5e7eb);
    border-radius: var(--fc-radius, 6px);
    color: var(--fc-accent, #6366f1);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
  }
  .fc-save-search:hover {
    background: var(--fc-accent-light, #eef2ff);
    border-color: var(--fc-accent, #6366f1);
  }
  .fc-save-search svg {
    flex-shrink: 0;
  }

  /* ── Save dialog overlay ────────────────────────────── */
  .fc-save-dialog-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.45);
    align-items: center;
    justify-content: center;
  }
  .fc-save-dialog-overlay.fc-open {
    display: flex;
  }

  .fc-save-dialog {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    width: 340px;
    max-width: 92vw;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    position: relative;
  }

  .fc-save-dialog__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--fc-text, #111827);
  }

  .fc-save-dialog__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fc-text-muted, #6b7280);
    margin-bottom: 6px;
  }

  .fc-save-dialog__input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--fc-border, #e5e7eb);
    border-radius: var(--fc-radius, 6px);
    font-size: 0.9rem;
    box-sizing: border-box;
    color: var(--fc-text, #111827);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
  }
  .fc-save-dialog__input:focus {
    border-color: var(--fc-accent, #6366f1);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
  }

  .fc-save-dialog__actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    justify-content: flex-end;
  }

  .fc-save-dialog__btn {
    padding: 8px 18px;
    border-radius: var(--fc-radius, 6px);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .15s, opacity .15s;
  }
  .fc-save-dialog__btn--cancel {
    background: var(--fc-bg-alt, #f3f4f6);
    color: var(--fc-text, #111827);
  }
  .fc-save-dialog__btn--cancel:hover { background: #e5e7eb; }

  .fc-save-dialog__btn--save {
    background: var(--fc-accent, #6366f1);
    color: #fff;
  }
  .fc-save-dialog__btn--save:hover { background: #4f46e5; }
  .fc-save-dialog__btn--save:disabled { opacity: .55; cursor: not-allowed; }

  .fc-save-dialog__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--fc-text-muted, #6b7280);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
  }
  .fc-save-dialog__close:hover { color: var(--fc-text, #111827); }

  /* ── Saved Searches panel ───────────────────────────── */
  .fc-saved-searches {
    margin-top: 12px;
    border-top: 1px solid var(--fc-border, #e5e7eb);
    padding-top: 12px;
  }

  .fc-saved-searches__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  .fc-saved-searches__title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--fc-text-muted, #6b7280);
  }

  .fc-saved-searches__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .fc-saved-searches__item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--fc-radius, 6px);
    border: 1px solid transparent;
    background: var(--fc-bg-alt, #f9fafb);
    transition: background .15s, border-color .15s;
  }
  .fc-saved-searches__item:hover {
    background: var(--fc-accent-light, #eef2ff);
    border-color: var(--fc-accent, #6366f1);
  }

  .fc-saved-searches__apply {
    flex: 1;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.875rem;
    color: var(--fc-text, #111827);
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
  }
  .fc-saved-searches__apply:hover { color: var(--fc-accent, #6366f1); }

  .fc-saved-searches__delete {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--fc-text-muted, #9ca3af);
    padding: 2px 4px;
    line-height: 1;
    font-size: 0.9rem;
    flex-shrink: 0;
    border-radius: 4px;
    transition: color .15s, background .15s;
  }
  .fc-saved-searches__delete:hover {
    color: #ef4444;
    background: #fef2f2;
  }

  .fc-saved-searches__empty {
    font-size: 0.82rem;
    color: var(--fc-text-muted, #9ca3af);
    font-style: italic;
    padding: 4px 0;
  }

  /* Guest notice */
  .fc-saved-searches__guest {
    font-size: 0.8rem;
    color: var(--fc-text-muted, #6b7280);
    background: var(--fc-bg-alt, #f3f4f6);
    border-radius: var(--fc-radius, 6px);
    padding: 8px 12px;
    margin-top: 8px;
    border-left: 3px solid var(--fc-accent, #6366f1);
  }
  .fc-saved-searches__guest a {
    color: var(--fc-accent, #6366f1);
    font-weight: 600;
  }

  /* Active state indicator */
  .fc-saved-searches__item.fc-active {
    background: var(--fc-accent-light, #eef2ff);
    border-color: var(--fc-accent, #6366f1);
  }
  .fc-saved-searches__item.fc-active .fc-saved-searches__apply {
    color: var(--fc-accent, #6366f1);
  }
  