/* =========================================================================
   Cookie Consent — Tuzlanska Biciklijada
   Self-contained, namespaced under .cc-* so it never collides with the
   Unify theme's generic classes (.btn, .container, .well, .footer ...).
   Dark skin + green accent (#72c02c) to match assets/css/theme-skins/dark.css
   ========================================================================= */

.cc-banner,
.cc-overlay,
.cc-reopen {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}
.cc-banner *,
.cc-overlay * {
  box-sizing: border-box;
}

/* ---------- Bottom banner ---------- */
.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: #1a1a1a;
  color: #e9e9e9;
  border-top: 3px solid #72c02c;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.45);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.cc-banner__text {
  flex: 1 1 460px;
  min-width: 260px;
  font-size: 13.5px;
  line-height: 1.55;
}
.cc-banner__title {
  display: block;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}
.cc-banner__text a {
  color: #8fd14f;
  text-decoration: underline;
}
.cc-banner__text a:hover {
  color: #a6e06a;
}
.cc-banner__links {
  margin-top: 6px;
  display: block;
  font-size: 12.5px;
}
.cc-banner__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ---------- Buttons ---------- */
.cc-btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 22px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.cc-btn:focus {
  outline: 2px solid #8fd14f;
  outline-offset: 2px;
}
.cc-btn--accept {
  background: #72c02c;
  border-color: #72c02c;
  color: #fff;
}
.cc-btn--accept:hover {
  background: #639e2e;
  border-color: #639e2e;
}
.cc-btn--reject {
  background: transparent;
  border-color: #6d6d6d;
  color: #e9e9e9;
}
.cc-btn--reject:hover {
  border-color: #9a9a9a;
  background: rgba(255, 255, 255, 0.06);
}
.cc-btn--settings {
  background: transparent;
  border-color: #72c02c;
  color: #8fd14f;
}
.cc-btn--settings:hover {
  background: rgba(114, 192, 44, 0.12);
}

/* Consent banner: render all three actions (Odbij sve / Prilagodi / Prihvati sve)
   as the same green-outlined style. Scoped to the banner so the settings modal's
   primary "Sačuvaj postavke" button keeps its solid-green emphasis. */
.cc-banner__actions .cc-btn--accept,
.cc-banner__actions .cc-btn--reject,
.cc-banner__actions .cc-btn--settings {
  background: transparent;
  border-color: #72c02c;
  color: #8fd14f;
}
.cc-banner__actions .cc-btn--accept:hover,
.cc-banner__actions .cc-btn--reject:hover,
.cc-banner__actions .cc-btn--settings:hover {
  background: rgba(114, 192, 44, 0.12);
  border-color: #8fd14f;
}

/* ---------- Settings overlay + modal ---------- */
.cc-overlay {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.cc-modal {
  background: #1f1f1f;
  color: #e9e9e9;
  width: 100%;
  max-width: 580px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 6px;
  border-top: 3px solid #72c02c;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  padding: 26px 28px;
}
.cc-modal__title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px;
}
.cc-modal__intro {
  font-size: 13px;
  line-height: 1.55;
  color: #c7c7c7;
  margin: 0 0 18px;
}
.cc-cat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid #353535;
}
.cc-cat__body {
  flex: 1 1 auto;
}
.cc-cat__name {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px;
}
.cc-cat__always {
  font-size: 11px;
  font-weight: 600;
  color: #8fd14f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 8px;
}
.cc-cat__desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: #bdbdbd;
  margin: 0;
}
.cc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}

/* ---------- Toggle switch ---------- */
.cc-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  flex: 0 0 auto;
  margin-top: 2px;
}
.cc-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.cc-switch__slider {
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #555;
  border-radius: 24px;
  transition: background 0.2s ease;
}
.cc-switch__slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.cc-switch input:checked + .cc-switch__slider {
  background: #72c02c;
}
.cc-switch input:checked + .cc-switch__slider:before {
  transform: translateX(22px);
}
.cc-switch input:disabled + .cc-switch__slider {
  background: #3f6b22;
  cursor: not-allowed;
  opacity: 0.85;
}
.cc-switch input:focus + .cc-switch__slider {
  outline: 2px solid #8fd14f;
  outline-offset: 2px;
}

/* ---------- Persistent re-open button ---------- */
.cc-reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 99998;
  background: #1a1a1a;
  color: #e9e9e9;
  border: 1px solid #72c02c;
  border-radius: 30px;
  padding: 9px 16px 9px 13px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  gap: 7px;
}
.cc-reopen:hover {
  background: #242424;
  border-color: #8fd14f;
}
.cc-reopen i {
  color: #8fd14f;
}

/* ---------- Blocked-content placeholders ---------- */
.cc-placeholder {
  background: #2a2a2a;
  border: 1px dashed #4a4a4a;
  color: #cfcfcf;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 24px 18px;
  min-height: 220px;
}
.cc-placeholder--fill {
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 0;
  margin: 0;
}
.cc-placeholder__icon {
  font-size: 26px;
  color: #8fd14f;
}
.cc-placeholder__text {
  font-size: 13px;
  line-height: 1.5;
  max-width: 360px;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .cc-banner {
    padding: 16px;
    gap: 12px;
  }
  .cc-banner__actions {
    width: 100%;
  }
  .cc-banner__actions .cc-btn {
    flex: 1 1 auto;
  }
  .cc-modal {
    padding: 20px 18px;
  }
}
