/* ============================================================================
   public/css/aicost-save.css — bookmark icons + save buttons + toast
   ============================================================================ */

/* ── Bookmark icon (used on calc cards, guide pages, compare pages) ──── */
.aic-bm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: transparent;
  color: #6b6258;
  cursor: pointer;
  transition: all .15s;
  font-size: 1rem;
  font-family: inherit;
  padding: 0;
}
.aic-bm:hover {
  background: #fff8ee;
  border-color: #d4c5b0;
  color: #2c7a4f;
}
.aic-bm:disabled {
  opacity: .5;
  cursor: wait;
}
.aic-bm::before {
  content: '🔖';
  filter: grayscale(100%);
  opacity: .55;
}
.aic-bm.is-saved::before {
  content: '⭐';
  filter: none;
  opacity: 1;
}
.aic-bm.is-saved {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #92400e;
}

/* ── Save-estimate button (in calc result panels) ──────────────────────── */
.aic-save-estimate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #fffaf3;
  border: 1.5px solid #d4c5b0;
  color: #3d2e1f;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.aic-save-estimate:hover {
  background: #2c7a4f;
  border-color: #2c7a4f;
  color: #fff;
}
.aic-save-estimate::before {
  content: '💾';
  font-size: 1rem;
}
.aic-save-estimate:disabled {
  opacity: .65;
  cursor: wait;
}

/* ── "Restored from saved" banner ──────────────────────────────────────── */
#aic-restored-banner {
  display: none;
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 12px 18px;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 10px;
  color: #065f46;
  font-size: .92rem;
}
#aic-restored-banner strong { color: #064e3b; }

/* ── Toast (bottom-right notifications) ────────────────────────────────── */
.aic-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 360px;
  padding: 14px 18px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.4;
  z-index: 9999;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
.aic-toast-visible {
  opacity: 1;
  transform: translateY(0);
}
.aic-toast a {
  color: #fbbf24;
  text-decoration: underline;
  font-weight: 700;
}
.aic-toast-success { background: #065f46; }
.aic-toast-error   { background: #991b1b; }
.aic-toast-warning { background: #92400e; }
.aic-toast-info    { background: #1e3a8a; }

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .aic-toast {
    bottom: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
}
