.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1d2422;
  color: #e8f0ee;
  z-index: 2000;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__text {
  flex: 1;
  min-width: 220px;
  font-size: 14px;
  line-height: 1.5;
  color: #cdd8d5;
}

.cookie-banner__text a {
  color: #7ecfbe;
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  color: #fff;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-banner__accept {
  padding: 9px 20px;
  background: #007765;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}

.cookie-banner__accept:hover {
  background: #005e52;
}

/* Secondary action ("Postavke", "Spremi odabir"). Accept and reject share the primary style:
   refusing must be as easy as accepting. */
.cookie-banner__settings {
  padding: 9px 16px;
  background: transparent;
  color: #cdd8d5;
  border: 1px solid #4a5c58;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.cookie-banner__settings:hover {
  border-color: #7ecfbe;
  color: #fff;
}

/* "Postavke kolačića" on pages without the site footer */
.cookie-settings-link {
  margin: 32px 0 16px;
  text-align: center;
  font-size: 13px;
}

.cookie-settings-link a {
  color: #6b7a77;
  text-decoration: underline;
}

/* Settings dialog */
.cookie-settings {
  margin: auto; /* the global reset zeroes the UA's centring margin */
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #1d2422;
  color: #e8f0ee;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.cookie-settings::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.cookie-settings__form {
  padding: 22px 24px;
}

.cookie-settings__title {
  margin: 0 0 16px;
  font-size: 18px;
  color: #fff;
}

.cookie-settings__option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid #33413e;
  font-size: 14px;
  line-height: 1.5;
  color: #cdd8d5;
  cursor: pointer;
}

.cookie-settings__option strong {
  color: #fff;
}

.cookie-settings__option input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #007765;
}

.cookie-settings__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 480px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .cookie-banner__actions,
  .cookie-settings__actions {
    width: 100%;
  }

  .cookie-banner__actions button,
  .cookie-settings__actions button {
    flex: 1 1 auto;
  }
}
