/* Smart Flow Services - cookie consent banner (built by js/consent.js).
 *
 * Standalone on purpose: every colour/space has a literal fallback, so the same
 * file renders correctly on pages that load css/site.css (index, city, tower)
 * AND on pages that only load css/blog.css (blog, posts, legal).
 *
 * Merged into site.css by tools/build-css.mjs and mirrored verbatim at the end
 * of css/blog.css. Logical properties keep RTL and LTR identical.
 */

.sf-consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 2000; /* above the chat FABs (chat.css uses 1200) */
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 12, 20, 0.97);
  border-top: 1px solid var(--border, #2a3040);
  box-shadow: 0 -18px 45px rgba(0, 0, 0, 0.55);
  color: var(--text, #e6edf7);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: start;
}

.sf-consent[hidden] {
  display: none;
}

.sf-consent-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

.sf-consent-text {
  flex: 1 1 420px;
  min-width: 0;
}

.sf-consent-title {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 0.95rem;
}

.sf-consent-body {
  margin: 0;
  color: var(--text-dim, #9aa7b8);
  font-size: 0.86rem;
}

.sf-consent-link {
  color: var(--accent, #00e5ff);
  text-decoration: underline;
}

.sf-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sf-consent-btn {
  padding: 9px 16px;
  border: 1px solid var(--border, #2a3040);
  border-radius: 8px;
  background: transparent;
  color: var(--text, #e6edf7);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sf-consent-btn:hover {
  border-color: var(--accent, #00e5ff);
  color: #fff;
}

.sf-consent-btn-primary {
  border-color: transparent;
  background: var(--accent, #00e5ff);
  color: #04121a;
}

.sf-consent-btn-primary:hover {
  background: #4df1ff;
  color: #04121a;
}

.sf-consent-btn-link {
  padding-inline: 6px;
  border-color: transparent;
  color: var(--text-dim, #9aa7b8);
  text-decoration: underline;
}

/* --- settings panel --- */

.sf-consent-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
  max-width: 1100px;
  margin: 12px auto 0;
  padding-top: 12px;
  border-top: 1px solid var(--border, #2a3040);
}

.sf-consent-panel[hidden] {
  display: none;
}

.sf-consent-row {
  display: flex;
  flex: 1 1 320px;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}

.sf-consent-check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent, #00e5ff);
  cursor: pointer;
}

.sf-consent-copy {
  display: block;
  min-width: 0;
}

.sf-consent-row-title {
  display: block;
  color: #fff;
  font-size: 0.88rem;
}

.sf-consent-row-desc {
  display: block;
  color: var(--text-dim, #9aa7b8);
  font-size: 0.82rem;
}

/* --- keep the chat / WhatsApp FABs reachable while the banner is open --- */

body.sf-consent-open .chat-bubble,
body.sf-consent-open .chat-wa {
  transform: translateY(-84px);
}

@media (max-width: 860px) {
  body.sf-consent-open .chat-bubble,
  body.sf-consent-open .chat-wa {
    transform: translateY(-158px);
  }

  .sf-consent-actions {
    width: 100%;
  }

  .sf-consent-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
