#cookie-consent-root,
#cookie-consent-root * {
  box-sizing: border-box;
}

#cookie-consent-root {
  color: #1f2937;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

#cookie-consent-root [hidden] {
  display: none !important;
}

.cc-modal-open {
  overflow: hidden;
}

.cc-banner {
  position: fixed;
  z-index: 2147483645;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1rem;
  background: #fff;
  border-top: 4px solid #a1c930;
  box-shadow: 0 -8px 30px rgba(17, 24, 39, 0.18);
}

.cc-banner__content {
  display: flex;
  width: min(100%, 80rem);
  margin: 0 auto;
  align-items: center;
  gap: 1.5rem;
}

.cc-banner__copy {
  flex: 1 1 34rem;
}

.cc-banner h2,
.cc-dialog h2 {
  margin: 0 0 0.5rem;
  color: #111827;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.cc-banner p,
.cc-dialog p {
  margin: 0;
}

.cc-policy-link {
  display: inline-block;
  margin-top: 0.65rem;
  color: #365314;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cc-actions {
  display: flex;
  gap: 0.75rem;
}

.cc-actions--banner {
  flex: 0 1 43rem;
}

.cc-button,
.cc-close,
.cc-footer-button {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 0.6rem;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.cc-button {
  min-height: 3rem;
  flex: 1 1 0;
  padding: 0.7rem 1rem;
}

.cc-button--choice {
  color: #17200c;
  background: #88bc32;
  border-color: #88bc32;
}

.cc-button--primary {
  color: #17200c;
  background: #88bc32;
  border-color: #88bc32;
}

.cc-button--secondary {
  color: #365314;
  background: #fff;
  border-color: #88bc32;
}

.cc-button:hover,
.cc-close:hover,
.cc-footer-button:hover {
  color: #fff;
  background: #15803d;
  border-color: #15803d;
}

.cc-button:focus-visible,
.cc-close:focus-visible,
.cc-footer-button:focus-visible,
.cc-policy-link:focus-visible,
.cc-category input:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 3px;
}

.cc-overlay {
  position: fixed;
  z-index: 2147483646;
  inset: 0;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: 1rem;
  background: rgba(17, 24, 39, 0.72);
}

.cc-dialog {
  width: min(100%, 43rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: clamp(1.1rem, 4vw, 2rem);
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.cc-dialog__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  justify-content: space-between;
}

.cc-close {
  flex: 0 0 auto;
  padding: 0.45rem 0.7rem;
  color: #17200c;
  background: #88bc32;
  border-color: #88bc32;
}

.cc-categories {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0.5rem;
}

.cc-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 1rem;
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
}

.cc-category__text label {
  color: #111827;
  font-size: 1.05rem;
  font-weight: 700;
}

.cc-category__text p {
  margin-top: 0.25rem;
  color: #4b5563;
  font-size: 0.93rem;
}

.cc-category input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  accent-color: #587814;
  cursor: pointer;
}

.cc-category input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.cc-status {
  grid-column: 2;
  color: #365314;
  font-size: 0.78rem;
  font-weight: 700;
}

.cc-actions--dialog {
  margin-top: 1.5rem;
}

.cc-footer-control {
  position: fixed;
  z-index: 2147483644;
  bottom: 0.75rem;
  left: 0.75rem;
}

.cc-footer-button {
  padding: 0.55rem 0.8rem;
  color: #17200c;
  background: #88bc32;
  border-color: #88bc32;
  box-shadow: 0 3px 12px rgba(17, 24, 39, 0.28);
  font-size: 0.875rem;
}

@media (max-width: 850px) {
  .cc-banner__content,
  .cc-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cc-banner__content {
    gap: 1rem;
  }

  .cc-actions--banner {
    flex-basis: auto;
  }

  .cc-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cc-banner {
    max-height: 90vh;
    overflow-y: auto;
    padding: 0.85rem;
  }

  .cc-banner h2,
  .cc-dialog h2 {
    font-size: 1.3rem;
  }

  .cc-dialog__header {
    flex-direction: column-reverse;
  }

  .cc-close {
    align-self: flex-end;
  }

  .cc-category {
    padding: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #cookie-consent-root *,
  #cookie-consent-root *::before,
  #cookie-consent-root *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
