/* 18.11.2026 — krajina nákupu: výber v karte Účtu (templates/_market_switch.html) a jednorazová
   ponuka pri nesúlade krajiny a časového pásma (templates/_market_hint.html). Len web. */
.market-switch { margin: 0 0 24px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.market-switch-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--ink); }
.market-switch-lead { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.market-switch-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.market-switch-opt {
  position: relative; display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.market-switch-opt:hover, .market-switch-opt:focus-visible { border-color: var(--primary); }
.market-switch-opt.is-active { border-color: var(--primary); background: var(--primary-soft); }
.market-switch-flag { display: inline-flex; flex: 0 0 auto; }
.market-switch-flag .lang-flag { width: 28px; height: 19px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.market-switch-text { display: flex; flex-direction: column; min-width: 0; }
.market-switch-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-switch-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-switch-check { flex: 0 0 auto; width: 18px; height: 18px; margin-left: auto; color: var(--primary); }
@media (max-width: 480px) { .market-switch-opts { grid-template-columns: 1fr; gap: 8px; } }

.market-hint {
  position: fixed; z-index: 1200; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: min(420px, calc(100vw - 24px)); padding: 16px 16px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow-lg); color: var(--ink);
}
.market-hint[hidden] { display: none; }
.market-hint-close { position: absolute; top: 8px; right: 8px; display: flex; padding: 6px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.market-hint-close:hover { background: var(--surface-alt); }
.market-hint-title { margin: 0 28px 4px 0; font-size: 17px; font-weight: 700; }
.market-hint-text { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.market-hint-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.market-hint-go, .market-hint-stay {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px;
  padding: 8px 16px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.market-hint-go { flex: 1 1 auto; border: 0; background: var(--primary); color: #fff; }
.market-hint-go .lang-flag { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.market-hint-stay { border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); }
.market-hint-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .market-hint { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .market-hint-actions > * { flex: 1 1 100%; }
}
html.is-native-app .market-switch, html.is-native-app .market-hint { display: none; }
