/*!
 * RR-team d.o.o. - saglasnost za kolačiće / cookie consent (rr-team.ba)
 * Sva dugmad za izbor imaju identičan izgled (bez isticanja jedne opcije).
 * Developed by Webpage.ba
 */

.rr-cc-banner, .rr-cc-banner *, .rr-cc-overlay, .rr-cc-overlay *, .rr-cc-ph, .rr-cc-ph *, .rr-cc-fab { box-sizing: border-box; }
.rr-cc-banner[hidden], .rr-cc-overlay[hidden], .rr-cc-fab[hidden] { display: none !important; }

.rr-cc-banner, .rr-cc-dialog, .rr-cc-ph {
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: #3b4450;
  text-align: left;
  letter-spacing: normal;
}

/* ---------- sloj 1: obavijest */
.rr-cc-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 2147482000;
  width: 440px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px 24px 20px;
  background: #fff;
  border: 1px solid #e3e6ee;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(21, 27, 38, 0.18), 0 2px 6px rgba(21, 27, 38, 0.08);
  animation: rr-cc-in 0.28s ease-out;
}

.rr-cc-banner .rr-cc-title, .rr-cc-dialog .rr-cc-title {
  margin: 0 0 8px;
  padding: 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  color: #1e2022;
}

.rr-cc-banner .rr-cc-text, .rr-cc-dialog .rr-cc-text { margin: 0 0 10px; color: #3b4450; font-size: 14px; line-height: 1.55; }

.rr-cc-banner .rr-cc-links, .rr-cc-dialog .rr-cc-links { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: #55606b; }
.rr-cc-dialog .rr-cc-links { margin: 14px 0 0; }
.rr-cc-links a, .rr-cc-links a:visited { color: #8a5d26; text-decoration: underline; text-underline-offset: 2px; }
.rr-cc-links a:hover, .rr-cc-links a:focus { color: #5f3f18; }

/* Tri dugmeta jednake širine i istog izgleda */
.rr-cc-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.rr-cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: none;
  white-space: normal;
  color: #fff;
  background: #151b26;
  border: 1px solid #151b26;
  border-radius: 8px;
  box-shadow: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.rr-cc-btn:hover { color: #fff; background: #8a5d26; border-color: #8a5d26; }
.rr-cc-btn:focus { outline: 3px solid #8a5d26; outline-offset: 2px; }
.rr-cc-btn:focus:not(:focus-visible) { outline: none; }

/* ---------- sloj 2: postavke */
.rr-cc-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(21, 27, 38, 0.55);
}

.rr-cc-dialog {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 100%;
  overflow: auto;
  padding: 24px 24px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}
.rr-cc-dialog:focus { outline: none; }

.rr-cc-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rr-cc-dialog__head .rr-cc-title { font-size: 19px; margin-top: 4px; }

.rr-cc-x {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin: -6px -8px 0 0;
  padding: 8px;
  color: #1e2022;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.rr-cc-x:hover { background: #f1f3f7; }
.rr-cc-x:focus { outline: 3px solid #8a5d26; outline-offset: 0; }
.rr-cc-x:focus:not(:focus-visible) { outline: none; }
.rr-cc-x svg { display: block; width: 24px; height: 24px; }

.rr-cc-cat { padding: 14px 0; border-top: 1px solid #e3e6ee; }
.rr-cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rr-cc-dialog .rr-cc-cat__title { margin: 0; padding: 0; font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.3; color: #1e2022; }
.rr-cc-dialog .rr-cc-cat__desc { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: #55606b; }
.rr-cc-dialog .rr-cc-actions { margin-top: 4px; padding-top: 18px; border-top: 1px solid #e3e6ee; }

.rr-cc-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: #55606b;
  background: #f1f3f7;
  border-radius: 999px;
}

/* Prekidač: nativni checkbox (role="switch"), podrazumijevano isključen */
.rr-cc-switch { position: relative; flex: 0 0 auto; display: inline-block; width: 46px; height: 26px; margin: 0; cursor: pointer; }
.rr-cc-switch__input { position: absolute; top: 0; left: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rr-cc-switch__track { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #8a94a6; border-radius: 999px; transition: background-color 0.15s ease; }
.rr-cc-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}
.rr-cc-switch__input:checked + .rr-cc-switch__track { background: #8a5d26; }
.rr-cc-switch__input:checked + .rr-cc-switch__track::after { transform: translateX(20px); }
.rr-cc-switch__input:focus + .rr-cc-switch__track { outline: 3px solid #8a5d26; outline-offset: 2px; }
.rr-cc-switch__input:focus:not(:focus-visible) + .rr-cc-switch__track { outline: none; }

.rr-cc-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rr-cc-lock, .rr-cc-lock body { overflow: hidden; }

/* ---------- zamjenski blokovi (mapa, reCAPTCHA) */
.rr-cc-blocked { min-height: 320px; }

.rr-cc-ph--map {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
  background-color: #f4f6f9;
  background-image:
    linear-gradient(rgba(21, 27, 38, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 27, 38, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
}

.rr-cc-ph__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 0 12px;
  color: #8a5d26;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(21, 27, 38, 0.12);
}
.rr-cc-ph__icon svg { display: block; width: 26px; height: 26px; }

.rr-cc-ph .rr-cc-ph__title { margin: 0 0 4px; font-size: 16px; font-weight: 500; line-height: 1.3; color: #1e2022; }
.rr-cc-ph .rr-cc-ph__text { max-width: 470px; margin: 0 auto 14px; font-size: 14px; line-height: 1.55; color: #3b4450; }
.rr-cc-ph__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; }
.rr-cc-ph__actions .rr-cc-btn { padding-left: 20px; padding-right: 20px; }
.rr-cc-ph__link, .rr-cc-ph__link:visited { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: #8a5d26; text-decoration: underline; text-underline-offset: 2px; }
.rr-cc-ph__link:hover, .rr-cc-ph__link:focus { color: #5f3f18; }
.rr-cc-ico-ext svg { display: block; width: 15px; height: 15px; }
.rr-cc-ph .rr-cc-ph__address { margin: 14px 0 0; font-size: 13px; color: #55606b; }

.rr-cc-ph--recaptcha {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 560px;
  margin: 4px 0 0;
  padding: 16px 18px;
  background: #f7f8fb;
  border: 1px solid #e3e6ee;
  border-radius: 10px;
}
.rr-cc-ph--recaptcha .rr-cc-ph__icon { flex: 0 0 auto; width: 40px; height: 40px; margin: 0; }
.rr-cc-ph--recaptcha .rr-cc-ph__icon svg { width: 24px; height: 24px; }
.rr-cc-ph--recaptcha .rr-cc-ph__body { flex: 1 1 auto; min-width: 0; }
.rr-cc-ph--recaptcha .rr-cc-ph__title { font-size: 15px; }
.rr-cc-ph--recaptcha .rr-cc-ph__text { max-width: none; margin: 0 0 12px; }
.rr-cc-ph--recaptcha .rr-cc-ph__actions { justify-content: flex-start; }
.rr-cc-ph .rr-cc-ph__alt { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #55606b; }
.rr-cc-ph__alt a, .rr-cc-ph__alt a:visited { color: #8a5d26; }

.rr-cc-guard { margin: 10px 0 0; font-size: 13.5px; font-weight: 500; line-height: 1.45; color: #b42318; }
.rr-cc-guard:empty { display: none; }

/* ---------- plutajuće dugme za ponovno otvaranje postavki */
.rr-cc-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: #fff;
  background: #151b26;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(21, 27, 38, 0.25);
  opacity: 0.92;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.rr-cc-fab--away { opacity: 0 !important; visibility: hidden; transform: translateY(10px); pointer-events: none; }
.rr-cc-fab:hover { background: #8a5d26; opacity: 1; }
.rr-cc-fab:focus { outline: 3px solid #8a5d26; outline-offset: 2px; opacity: 1; }
.rr-cc-fab:focus:not(:focus-visible) { outline: none; }
.rr-cc-fab svg { display: block; width: 24px; height: 24px; }

/* ---------- saglasnost u kontakt formi */
/* reCAPTCHA blok -> saglasnost: kompaktan razmak (umjesto 4rem iz teme) */
.rr-recaptcha-block { margin-bottom: 20px; }
.rr-form-consent { margin: 4px 0 28px; text-align: left; }
/* veći kvadratić (20 px), vertikalno centriran prema cijelom tekstu (jedan ili više redova) */
.rr-form-consent .custom-control { min-height: 22px; padding-left: 32px; }
.rr-form-consent .custom-control-label { display: block; }
.rr-form-consent .custom-control-label::before,
.rr-form-consent .custom-control-label::after { top: 50%; left: -32px; width: 20px; height: 20px; transform: translateY(-50%); }
.rr-form-consent .custom-control-label { font-size: 14px; line-height: 1.55; color: #3b4450; cursor: pointer; }
.rr-form-consent .custom-control-label a { color: #8a5d26; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- vidljiv fokus za tastaturu (tema globalno uklanja outline) */
.rr-cc-banner a:focus, .rr-cc-dialog a:focus, .rr-cc-ph a:focus, .rr-form-consent a:focus { outline: 2px solid #8a5d26; outline-offset: 2px; }
footer a:focus { outline: 2px solid currentColor; outline-offset: 2px; }
.rr-cc-banner a:focus:not(:focus-visible), .rr-cc-dialog a:focus:not(:focus-visible), .rr-cc-ph a:focus:not(:focus-visible),
.rr-form-consent a:focus:not(:focus-visible), footer a:focus:not(:focus-visible) { outline: none; }
.rr-cc-fab:focus { box-shadow: 0 0 0 2px #fff, 0 6px 18px rgba(21, 27, 38, 0.25); }
.rr-cc-ph__alt a { text-decoration: underline; text-underline-offset: 2px; }
.rr-cc-ph .rr-cc-links { margin: 12px 0 0; font-size: 12.5px; }
.rr-cc-ph--recaptcha .rr-cc-links { margin-top: 8px; }

/* ---------- polje za saglasnost: vidljiv okvir i fokus (inset sjenka, bez pomjeranja kvačice) */
.rr-form-consent .custom-control-label::before { box-shadow: inset 0 0 0 1px #8a94a6; }
.rr-form-consent .custom-control-input:checked ~ .custom-control-label::before { box-shadow: none; }
.rr-form-consent .custom-control-input:focus ~ .custom-control-label::before { box-shadow: inset 0 0 0 1px #8a94a6, 0 0 0 2px #fff, 0 0 0 4px #8a5d26; }
.rr-form-consent .custom-control-input:checked:focus ~ .custom-control-label::before { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #8a5d26; }
.rr-form-consent .custom-control-input:focus:not(:focus-visible) ~ .custom-control-label::before { box-shadow: inset 0 0 0 1px #8a94a6; }
.rr-form-consent .custom-control-input:checked:focus:not(:focus-visible) ~ .custom-control-label::before { box-shadow: none; }
.js-validate .invalid-feedback { color: #b42318; }

/* ---------- potvrda / greška nakon slanja forme (ispod dugmeta) */
.rr-form-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 560px;
  margin: 4px auto 18px;
  padding: 14px 18px;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  border: 1px solid;
  border-radius: 10px;
  animation: rr-cc-in 0.25s ease-out;
}
.rr-form-status--ok { color: #05603a; background: #ecfdf3; border-color: #abefc6; }
.rr-form-status--error { color: #912018; background: #fef3f2; border-color: #fecdca; }
.rr-form-status__icon { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; }
.rr-form-status__icon svg { display: block; width: 22px; height: 22px; }
.rr-form-status--ok .rr-form-status__icon { color: #079455; }
.rr-form-status--error .rr-form-status__icon { color: #d92d20; }
.rr-form-status p { margin: 0; color: inherit; }
.rr-form-status .rr-form-status__title { font-weight: 500; }
.rr-form-status .rr-form-status__text { margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .rr-form-status { animation: none; } }

/* ---------- poveznice na politike u podnožju: isti prikaz kao postojeće stavke liste (inline-block) */
.rr-footer-link { display: inline-block; }

/* ---------- telefon */
@media (max-width: 575.98px) {
  .rr-cc-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    max-height: 85vh;
    padding: 18px 16px 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: 14px 14px 0 0;
  }
  .rr-cc-actions { gap: 6px; }
  .rr-cc-actions .rr-cc-btn { padding-left: 6px; padding-right: 6px; }
  .rr-cc-dialog { padding: 20px 16px 16px; }
  .rr-cc-ph--recaptcha { padding: 14px; }
  .rr-cc-ph--recaptcha .rr-cc-ph__icon { display: none; }
}

@media (max-width: 359.98px) {
  .rr-cc-actions { grid-template-columns: 1fr; }
}

@keyframes rr-cc-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rr-cc-banner { animation: none; }
  .rr-cc-btn, .rr-cc-switch__track, .rr-cc-switch__track::after, .rr-cc-fab { transition: none; }
}

@media print {
  .rr-cc-banner, .rr-cc-overlay, .rr-cc-fab { display: none !important; }
}
