/* Below modal-backdrop (300), clear of centered toast and mobile bottom actions. */
.homepage-recommendation {
  position: fixed;
  left: max(24px, env(safe-area-inset-left));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 240;
  width: 350px;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, .98);
  border: 1px solid #dce5f1;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease, visibility .24s;
  overflow: hidden;
}
.homepage-recommendation[hidden] { display: none; }
.homepage-recommendation.recommendation-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.recommendation-open {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 17px 12px 17px 17px;
  background: transparent;
  color: #0f172a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.recommendation-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 12px;
  color: #2563eb;
  background: linear-gradient(145deg, #eff6ff, #e0eaff);
}
.recommendation-copy { display: block; min-width: 0; flex: 1; }
.recommendation-kicker { display: block; font-size: 10.5px; font-weight: 800; color: #2563eb; letter-spacing: .8px; margin-bottom: 5px; }
.recommendation-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; font-weight: 800; line-height: 1.55; }
.recommendation-meta { display: block; margin-top: 4px; font-size: 11px; line-height: 1.5; color: #64748b; overflow-wrap: anywhere; }
.recommendation-action { display: block; color: #2563eb; font-size: 10.5px; font-weight: 700; margin-top: 7px; }
.recommendation-close { align-self: flex-start; flex-shrink: 0; width: 32px; height: 32px; margin: 5px 5px 0 0; border: 0; border-radius: 8px; background: transparent; color: #94a3b8; font-size: 22px; line-height: 1; cursor: pointer; }
.recommendation-open:hover { background: #f8faff; }
.recommendation-close:hover { color: #334155; background: #f1f5f9; }
.recommendation-open:focus-visible, .recommendation-close:focus-visible { outline: 2px solid #2563eb; outline-offset: -3px; }
@media (max-width: 640px) {
  .homepage-recommendation { left: max(16px, env(safe-area-inset-left)); bottom: calc(84px + env(safe-area-inset-bottom)); width: 330px; }
  .recommendation-open { padding: 14px; gap: 10px; }
  .recommendation-title { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .homepage-recommendation { transition: none; transform: none; }
}
@media print { .homepage-recommendation { display: none !important; } }
