/* Банер згоди на cookie (templates/store/_consent.html) і карта за кліком (templates/store/_map_click.html).
   Кольори — зі змінних теми сайту (store.css: --bg, --surface, --text, --muted, --line, --accent; скін RCWATCH: --ink). */

/* ---------- банер: компактна плашка знизу ---------- */
.ish-consent {
  position: fixed; z-index: 90; left: 16px; right: 16px;
  bottom: calc(16px + var(--ish-consent-lift, 0px) + env(safe-area-inset-bottom, 0px));
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap;
  padding: 14px 16px 14px 20px;
  background: var(--bg, #fff); color: var(--text, var(--ink, #1c1917));
  border: 1px solid var(--line, #e7e5e4); border-radius: var(--radius, 14px);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .06);
  font: 15px/1.45 var(--font-body, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  animation: ish-consent-in .25s ease-out;
}
.ish-consent[hidden] { display: none !important; }
.ish-consent__text { flex: 1 1 280px; margin: 0; }
.ish-consent__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ish-consent__btns { display: flex; gap: 8px; flex: 0 0 auto; }
.ish-consent__btn {
  min-height: 44px; padding: 10px 18px; border: 0; border-radius: var(--btn-radius, 999px); cursor: pointer;
  background: var(--accent, #1f6f5c); color: var(--on-accent, #fff); font-family: inherit; font-size: .92rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.ish-consent__btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px var(--line, #d6d3d1); }
.ish-consent__btn:hover { filter: brightness(1.08); }
.ish-consent__btn--ghost:hover { filter: none; background: var(--surface, rgba(0, 0, 0, .05)); }
.ish-consent__btn:focus-visible, .ish-consent__text a:focus-visible, .ish-consent-link:focus-visible {
  outline: 2px solid var(--accent, #1f6f5c); outline-offset: 2px;
}
@keyframes ish-consent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ish-consent { animation: none; } }

/* телефон: текст рядком, дві кнопки поруч на всю ширину — плашка ≈ 130 px, над панеллю «Оформити» */
@media (max-width: 560px) {
  .ish-consent { left: 8px; right: 8px; bottom: calc(8px + var(--ish-consent-lift, 0px) + env(safe-area-inset-bottom, 0px));
    padding: 12px; gap: 10px; font-size: 14px; }
  .ish-consent__text { flex-basis: 100%; }
  .ish-consent__btns { flex: 1 1 100%; }
  .ish-consent__btn { flex: 1 1 0; padding: 10px 12px; }
}

/* посилання «Налаштування cookie» у підвалі (templates/store/_consent_link.html) */
.ish-consent-link { background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; opacity: .85; }
.ish-consent-link:hover { opacity: 1; }

/* ---------- карта за кліком ---------- */
.map-click {
  width: 100%; height: 100%; min-height: inherit; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; text-align: center; overflow: hidden;
  background: var(--surface, #f5f5f4); color: var(--text, var(--ink, #1c1917));
}
.el-map .map-click { position: absolute; inset: 0; }
.map-click__addr { margin: 0; font-weight: 600; }
.map-click__btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; }
.map-click__show {
  min-height: 44px; padding: 10px 20px; border: 0; border-radius: var(--btn-radius, 999px); cursor: pointer;
  background: var(--accent, #1f6f5c); color: var(--on-accent, #fff); font-family: inherit; font-size: .92rem; font-weight: 600; line-height: 1.2;
}
.map-click__show:hover { filter: brightness(1.08); }
.map-click__open { color: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 2px; }
.map-click__note { margin: 0; font-size: .8rem; opacity: .7; }
.map-click__show:focus-visible, .map-click__open:focus-visible { outline: 2px solid var(--accent, #1f6f5c); outline-offset: 2px; }
