/* „Попитай ни“ — плаващ бутон и прозорец в цветовете на GEORIS MOBILE (тъмносиньо, златно, кремаво) */
.ask-fab {
  position: fixed; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 250;
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 52px; padding: 0 1.25rem 0 1rem;
  border: 2px solid #b08d3c; border-radius: 999px; background: #0b1b34; color: #f8efd9;
  font: 700 0.98rem/1 inherit; letter-spacing: 0.01em; cursor: pointer;
  box-shadow: 0 10px 28px rgba(11, 27, 52, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.ask-fab svg { width: 22px; height: 22px; color: #d2b25f; flex: none; }
.ask-fab:hover { background: #12294d; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(11, 27, 52, 0.4); }
.ask-fab:focus-visible, .ask__close:focus-visible, .ask__action:focus-visible, .ask__links a:focus-visible, .ask__copy:focus-visible { outline: 3px solid #175cff; outline-offset: 2px; }
.ask-fab.is-open { background: #12294d; }

.ask {
  position: fixed; right: 1rem; bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 64px); z-index: 250;
  width: min(360px, calc(100% - 2rem)); max-height: calc(100% - 7rem); overflow: auto;
  border: 1px solid #eadcbd; border-radius: 20px; background: #f8efd9; color: #0b1b34;
  box-shadow: 0 24px 60px rgba(11, 27, 52, 0.35);
}
.ask[hidden] { display: none; }
.ask__head { position: relative; display: flex; align-items: center; gap: 0.8rem; padding: 1rem 3rem 1rem 1rem; background: #0b1b34; color: #f8efd9; border-bottom: 3px solid #b08d3c; }
.ask__mark { flex: none; width: 40px; height: 40px; }
.ask__titles h2 { margin: 0 0 0.2rem; font-size: 1.15rem; font-weight: 700; color: #fff; }
.ask__titles p { margin: 0; font-size: 0.86rem; line-height: 1.4; color: #cdd8f0; }
.ask__close { position: absolute; top: 0.6rem; right: 0.6rem; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #f8efd9; cursor: pointer; }
.ask__close:hover { background: rgba(255, 255, 255, 0.12); }
.ask__close svg { width: 20px; height: 20px; }
.ask__body { display: grid; gap: 0.7rem; padding: 1rem; }
.ask__action {
  display: flex; align-items: center; gap: 0.7rem; width: 100%; min-height: 52px; padding: 0.7rem 1rem; box-sizing: border-box;
  border: 2px solid transparent; border-radius: 14px; background: #fffcf5; color: #0b1b34; font: 650 0.98rem/1.25 inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.ask__action svg { width: 22px; height: 22px; flex: none; }
.ask__action--primary { background: linear-gradient(180deg, #2a6dff 0%, #175cff 100%); color: #fff; box-shadow: 0 6px 16px rgba(23, 92, 255, 0.3); }
.ask__action--primary:hover { background: #0f4be0; }
.ask__action--off { border: 1px dashed #c9b88e; background: transparent; color: #565f7a; cursor: default; font-weight: 600; }
.ask__hint { margin: 0; font-size: 0.86rem; line-height: 1.5; color: #3a4560; }
.ask__copy { margin-left: 0.3rem; padding: 0.25rem 0.7rem; border: 1px solid #b08d3c; border-radius: 999px; background: #fffcf5; color: #0b1b34; font: 600 0.82rem/1.2 inherit; cursor: pointer; }
.ask__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; padding-top: 0.2rem; }
.ask__links a { color: #0b1b34; font-size: 0.9rem; font-weight: 600; text-decoration: underline; text-decoration-color: #b08d3c; text-underline-offset: 3px; }
.ask__links a:hover { color: #175cff; }

@media (max-width: 720px) {
  .ask-fab { right: 0.75rem; min-height: 48px; padding: 0 1rem 0 0.85rem; font-size: 0.92rem; }
  .ask { left: 0.75rem; right: 0.75rem; width: auto; bottom: calc(max(0.75rem, env(safe-area-inset-bottom)) + 60px); }
}
@media (prefers-reduced-motion: reduce) { .ask-fab { transition: none; } }
@media print { .ask-fab, .ask { display: none; } }

/* място под футъра, за да не се крие текстът зад плаващия бутон */
.site-footer { padding-bottom: 4.25rem; }

/* согласие преди зареждане на чата (tawk.to) */
.chat-consent { position: fixed; inset: 0; z-index: 330; display: grid; place-items: center; padding: 1rem; background: rgba(8, 22, 51, 0.6); }
.chat-consent__box { width: min(440px, 100%); max-height: calc(100% - 2rem); overflow: auto; padding: 1.25rem; border: 1px solid #eadcbd; border-top: 4px solid #b08d3c; border-radius: 18px; background: #f8efd9; color: #0b1b34; box-shadow: 0 24px 60px rgba(11, 27, 52, 0.45); }
.chat-consent__box:focus { outline: none; }
.chat-consent h2 { margin: 0 0 0.6rem; font-size: 1.2rem; font-weight: 800; }
.chat-consent p { margin: 0 0 0.7rem; font-size: 0.93rem; line-height: 1.55; color: #26304a; }
.chat-consent a { color: #0b1b34; font-weight: 650; text-decoration: underline; text-decoration-color: #b08d3c; text-underline-offset: 3px; }
.chat-consent__actions { display: grid; gap: 0.5rem; margin: 0.9rem 0; }
.chat-consent__actions button { min-height: 48px; padding: 0.6rem 1rem; border-radius: 14px; font: 700 0.98rem/1.2 inherit; cursor: pointer; }
.chat-consent__yes { border: 2px solid #102747; background: #102747; color: #f8efd9; }
.chat-consent__yes:hover { background: #12294d; }
.chat-consent__no { border: 2px solid #c9b88e; background: #fffcf5; color: #0b1b34; }
.chat-consent button:focus-visible, .chat-consent a:focus-visible { outline: 3px solid #175cff; outline-offset: 2px; }
.chat-consent__alt { margin: 0 !important; font-size: 0.85rem !important; color: #565f7a !important; }
@media print { .chat-consent { display: none; } }
