/* Zajednički elementi: tipografija, mobilni izbornik i cookie privola */

.mobile-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 23px;
  height: 2px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, .58);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 111;
  width: min(86vw, 360px);
  padding: max(16px, env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));
  background: #121316;
  color: #fff;
  box-shadow: -24px 0 60px rgba(0, 0, 0, .34);
  transform: translateX(105%);
  transition: transform .28s ease;
  overflow-y: auto;
}

.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-overlay.is-open { opacity: 1; visibility: visible; }
body.mobile-menu-open { overflow: hidden; }

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #2a2d34;
}

.mobile-nav-logo {
  width: 120px;
  height: auto;
  display: block;
  padding: 4px;
  border-radius: 6px;
  background: #fff;
}

.mobile-nav-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #4a4c53;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font: 400 32px/1 Arial, sans-serif;
  cursor: pointer;
}

.mobile-nav-links {
  display: grid;
  margin-top: 10px;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 8px 4px;
  border-bottom: 1px solid #2a2d34;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
}

.mobile-nav-links a::after {
  content: "→";
  color: #ffc800;
}

.mobile-nav-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.mobile-nav-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 2px solid #ffc800;
  border-radius: 4px;
  color: #ffc800;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
}

.mobile-nav-actions a:last-child {
  background: #ffc800;
  color: #121316;
}

/* Cookie privola */
.cookie-consent {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: none;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid #3a3c42;
  border-left: 7px solid #ffc800;
  border-radius: 8px;
  background: #121316;
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

.cookie-consent.is-visible { display: block; }

.cookie-consent-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.cookie-consent h2 {
  max-width: none;
  margin: 0 0 6px;
  color: #fff;
  font-size: 22px;
}

.cookie-consent p {
  margin: 0;
  color: #d0d0ca;
  font-size: 16px;
  line-height: 1.55;
}

.cookie-consent p a {
  color: #ffc800;
  text-decoration-thickness: 2px;
}

.cookie-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #4a4c53;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

.cookie-option.is-required { cursor: default; }

.cookie-option input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  padding: 0;
  accent-color: #ffc800;
}

.cookie-option strong,
.cookie-option small { display: block; }
.cookie-option small { margin-top: 2px; color: #bdbdb6; font-size: 13px; font-weight: 500; }

.cookie-consent-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-consent button {
  min-height: 50px;
  padding: 12px 18px;
  border: 2px solid #ffc800;
  border-radius: 4px;
  background: transparent;
  color: #ffc800;
  font: 700 17px/1.2 Manrope, system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-consent button[data-cookie-all] {
  background: #ffc800;
  color: #121316;
}

/* Čitljivost teksta i veći gumbi */
.btn,
button[type="submit"],
.wz-nav .btn,
.header-cta {
  font-size: 18px !important;
}

.wz-hp {
  position: fixed !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@media (min-width: 961px) {
  .pill,
  .trust,
  .qcard > p,
  form label,
  .note,
  header nav,
  header .tel,
  .eb,
  .card p,
  .pt span,
  .nums span,
  .who,
  footer,
  .wz-prog span,
  .wz-q .n,
  .wz-chip,
  .wz-f label,
  .wz-err,
  .wz-consent,
  .wz-back,
  .wz-status {
    font-size: 16px !important;
  }
}

@media (max-width: 960px) {
  .mobile-menu-toggle { display: flex; }
  header .wrap,
  .site-header .wrap { padding-right: 16px; }
  .cookie-consent { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .cookie-consent-inner { grid-template-columns: 1fr; gap: 18px; }
  .cookie-options { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cookie-consent {
    left: 12px;
    right: 12px;
    padding: 20px 18px;
  }
  .cookie-consent-actions { display: grid; grid-template-columns: 1fr; }
  .cookie-consent button { width: 100%; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-nav-overlay { transition: none; }
}
