/* Cookie banner — themed for the archive site's light UIkit look */

#cookiebanner,
.cookiebanner_container {
  font-size: 0.8125rem;
  line-height: 1.6;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  color: #444;
  padding: 1rem 1.5rem;
}

.cookiebanner_clearfix::after {
  clear: both;
  display: block;
  content: "";
}

.cookiebanner_inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookiebanner_info {
  flex: 1 1 240px;
  color: #666;
}

.cookiebanner_info a {
  color: #1e87f0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookiebanner_info a:hover {
  color: #0f6ecd;
}

.cookiebanner_settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookiebanner_button {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  outline: 0;
  cursor: pointer;
  border-radius: 2px;
  padding: 0.5rem 1.1rem;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cookiebanner_button_accept {
  background: #1e87f0;
  color: #fff;
  font-weight: 600;
}
.cookiebanner_button_accept:hover {
  background: #0f6ecd;
}

.cookiebanner_button_reject {
  background: transparent;
  color: #666;
  box-shadow: 0 0 0 1px #ccc inset;
}
.cookiebanner_button_reject:hover {
  box-shadow: 0 0 0 1px #999 inset;
  color: #333;
}

.cookiebanner_settings .cookiebanner_button:first-of-type {
  margin-left: 0.5rem;
}

.cookiebanner_checkbox_container {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 20px;
  padding-right: 2px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #666;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.cookiebanner_checkbox_container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.cookiebanner_checkmark {
  position: absolute;
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  height: 13px;
  width: 13px;
  background-color: #f4f4f4;
  border: 1px solid #ccc;
  border-radius: 1px;
  transition: background 0.2s, border-color 0.2s;
}

.cookiebanner_checkbox_container:hover input ~ .cookiebanner_checkmark {
  border-color: #999;
}
.cookiebanner_checkbox_container input:checked ~ .cookiebanner_checkmark {
  background-color: #1e87f0;
  border-color: #1e87f0;
}
.cookiebanner_checkbox_container input:disabled ~ .cookiebanner_checkmark {
  background-color: #eee;
  border-color: #ddd;
  cursor: not-allowed;
}

.cookiebanner_checkmark::after {
  content: "";
  position: absolute;
  display: none;
}
.cookiebanner_checkbox_container input:checked ~ .cookiebanner_checkmark::after {
  display: block;
}
.cookiebanner_checkbox_container .cookiebanner_checkmark::after {
  left: 4px;
  top: 1px;
  width: 3px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

@media (max-width: 640px) {
  .cookiebanner_inner {
    align-items: flex-start;
    gap: 0.875rem;
  }
  .cookiebanner_settings {
    width: 100%;
    justify-content: flex-end;
  }
}
