body.cookie-modal-open { overflow: hidden; }

#cookie-banner {
  position: fixed;
  z-index: 9999;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #333;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  font-family: Prompt, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  animation: cookieSlideUp 0.4s ease-out;
}

#cookie-banner.hidden { display: none !important; }
.cookie-content { flex: 1; display: flex; align-items: center; gap: 16px; }
.cookie-text { color: #333; font-size: 14px; }

.cookie-settings-link {
  padding: 0;
  color: #164b3f;
  background: none;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.cookie-settings-link:hover { text-decoration: underline; }
.cookie-buttons { display: flex; flex-shrink: 0; align-items: center; gap: 12px; }

.cookie-btn {
  min-height: 36px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-family: Prompt, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-btn-reject { color: #333; background: #f0f0f0; border: 1px solid #d0d0d0; }
.cookie-btn-reject:hover { background: #e5e5e5; border-color: #bbb; }
.cookie-btn-accept { color: #fff; background: #164b3f; }
.cookie-btn-accept:hover { background: #143c34; }

.cookie-close,
.modal-close {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
}

.cookie-close { width: 24px; height: 24px; font-size: 18px; }
.modal-close { width: 28px; height: 28px; font-size: 24px; }
.cookie-close:hover,
.modal-close:hover { color: #333; }

@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

#cookie-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  padding: 20px;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
}

#cookie-modal.show { display: flex; }

#cookie-modal .modal-content {
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  padding: 28px;
  overflow-y: auto;
  color: #222;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  font-family: Prompt, Arial, sans-serif;
  animation: cookiePopIn 0.3s ease-out;
}

@keyframes cookiePopIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

#cookie-modal .modal-header { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
#cookie-modal .modal-header h2 { margin: 0; color: #222; font-size: 20px; letter-spacing: 0; }
.cookie-category { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #e0e0e0; }
.cookie-category:last-of-type { margin-bottom: 16px; padding-bottom: 0; border-bottom: none; }
.category-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.category-name { margin-bottom: 4px; color: #222; font-weight: 600; }
.category-desc { color: #666; font-size: 13px; }

.toggle-switch {
  position: relative;
  width: 40px;
  height: 24px;
  padding: 0;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  background: #ccc;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s ease;
}

.toggle-switch:checked { background: #164b3f; }
.toggle-switch:checked::after { left: 18px; }
.toggle-switch:disabled { opacity: 0.5; cursor: not-allowed; }
.cookie-policy-link { margin-bottom: 16px; text-align: center; font-size: 12px; }
.cookie-policy-link a { color: #164b3f; text-decoration: none; }
.cookie-policy-link a:hover { text-decoration: underline; }
.modal-footer { margin-top: 24px; display: flex; gap: 12px; }

.modal-footer button {
  padding: 10px 16px;
  flex: 1;
  border: none;
  border-radius: 6px;
  font-family: Prompt, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal-btn-reject { color: #333; background: #f0f0f0; }
.modal-btn-reject:hover { background: #e0e0e0; }
.modal-btn-accept { color: #fff; background: #164b3f; }
.modal-btn-accept:hover { background: #143c34; }

@media(max-width:700px){#cookie-banner{padding:16px;flex-direction:column;align-items:stretch;gap:12px}.cookie-buttons{width:100%}.cookie-btn{flex:1}.cookie-close{position:absolute;top:10px;right:10px}.cookie-text{padding-right:24px}#cookie-modal .modal-content{padding:20px}}

.footer-extras{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0;flex-wrap:wrap}.footer-extras nav{display:flex;gap:24px;flex-wrap:wrap}.footer-extras button{border:0;background:none;color:inherit;font:inherit;padding:0;cursor:pointer}.footer-credit{display:block;width:125px;opacity:.8}.footer-credit img{width:125px;height:auto}.footer-credit:hover{opacity:1}.legal-copy{max-width:850px;margin:0 auto}.legal-copy section{padding:32px 0;border-top:1px solid #d5d8ce;scroll-margin-top:120px}.legal-copy h2{font-size:28px;margin:0 0 20px}.legal-copy p,.legal-copy li{line-height:1.7}.legal-copy ul{padding-left:24px}.legal-copy a{text-decoration:underline}