
/* Container: centered card, minimal */
#cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  width: min(90vw, 780px);
  background: #fff;
  padding: 24px 28px;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  text-align: left;
  z-index: 9999;
  font: inherit;

}

/* Headings and text */
#cookie-banner .cb-h {
  margin: 8px 0 12px 0;
  font-size: 18px;
  font-weight: 600;
}
#cookie-banner .cookie_text {
  margin: 0 0 8px 0;
  text-align: center;
}

/* Button row */
#cookie-banner .cookie_buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
#cookie-banner button {
  cursor: pointer;
  font-family: inherit;
  padding: 14px 28px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.05s;
}
#cookie-banner .cookie_buttons_accept {
  background: #111;
  color: #fff;
  border-color: #111;
}
#cookie-banner .cookie_buttons_accept:hover {
  background: #000;
}
#cookie-banner .cookie_buttons_decline {
  color: #555;
  border-color: #ccc;
}
#cookie-banner .cookie_buttons_decline:hover {
  color: #333;
  border-color: #aaa;
}
#cookie-banner button:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Back button in prefs */
#cookie-banner #cb-save {
  color: #555;
  border-color: #ccc;
  background: none;
}
#cookie-banner .cb-back {
  cursor: pointer;
  font-family: inherit;
  padding: 14px 28px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.05s;
  background: #000;
  color: #fff;
}
/* Preferences view layout */
#cookie-banner .cb-view-prefs { font: inherit; }

#cookie-banner .cb-group {
  display: grid;
  gap: 10px;
  margin: 10px 0 16px;
}

/* Row: Label | Description | Toggle */
#cookie-banner .cb-row {
  display: grid;
  grid-template-columns: max-content 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
}

/* Left col (title) */
#cookie-banner .cb-label {
  font-weight: 600;
  white-space: nowrap;
}

/* Middle col (desc) */
#cookie-banner .cb-desc {
  color: #555;
  font-size: 14px;
  line-height: 1.35;
}

/* Right col (checkbox) */
#cookie-banner .cb-row input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #111;            /* modern browsers */
}

/* “Always on” style */
#cookie-banner .cb-row input[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Compact headings */
#cookie-banner .cb-h {
  margin: 6px 0 10px;
  font-size: 18px;
  font-weight: 600;
}

/* Legal block */
#cookie-banner .cb-legal {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  max-height: 180px;
  overflow: auto;
}
#cookie-banner .cb-legal p { margin: 0 0 8px 0; font-size: 14px; color: #444; }

/* Mobile */
@media (max-width: 520px) {
  #cookie-banner .cb-row {
    grid-template-columns: 1fr auto;         /* drop middle col wrap */
    grid-template-areas:
      "label toggle"
      "desc  desc";
    align-items: start;
  }
  #cookie-banner .cb-label { grid-area: label; }
  #cookie-banner .cb-desc  { grid-area: desc;  margin-top: 4px; }
  #cookie-banner .cb-row input[type="checkbox"] { align-self: center; }
  #cookie-banner .cb-legal {display: none;}
}