.cc-hidden {
  display: none !important;
}

.cc-banner,
.cc-modal,
.cc-placeholder {
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

.cc-banner *,
.cc-modal *,
.cc-placeholder * {
  box-sizing: border-box;
}

.cc-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 100000;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
  color: #1d1d1d;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 14px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.2);
}

.cc-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.cc-banner__text {
  flex: 1 1 560px;
}

.cc-title {
  margin: 0 0 7px;
  color: #111;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.cc-text {
  margin: 0;
  color: #444;
  font-size: 15px;
  line-height: 1.55;
}

.cc-link,
.cc-link:visited {
  color: #257b38;
  font-weight: 700;
  text-decoration: underline;
}

.cc-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.cc-button {
  appearance: none;
  min-height: 44px;
  padding: 10px 16px;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #2f7d3d;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.cc-button:hover,
.cc-button:focus-visible {
  color: #fff;
  background: #246d32;
  border-color: #246d32;
}

.cc-button--primary {
  color: #fff;
  background: #2f7d3d;
}

.cc-button:focus-visible,
.cc-link:focus-visible,
.cc-footer-button:focus-visible,
.cc-switch input:focus-visible + .cc-switch__slider {
  outline: 3px solid rgba(47, 125, 61, 0.3);
  outline-offset: 2px;
}

.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
}

.cc-modal__panel {
  width: min(100%, 620px);
  max-height: min(760px, calc(100vh - 36px));
  overflow-y: auto;
  padding: 24px;
  color: #222;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}

.cc-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.cc-modal__close {
  appearance: none;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: #222;
  background: #f1f1f1;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.cc-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 17px;
  background: #f7f7f7;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
}

.cc-category h3 {
  margin: 0 0 5px;
  color: #1b1b1b;
  font-size: 16px;
  line-height: 1.35;
}

.cc-category p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.cc-always-on {
  flex: 0 0 auto;
  color: #246d32;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.cc-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 48px;
  height: 27px;
}

.cc-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cc-switch__slider {
  position: absolute;
  inset: 0;
  background: #777;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.cc-switch__slider::before {
  position: absolute;
  bottom: 4px;
  left: 4px;
  width: 19px;
  height: 19px;
  content: "";
  background: #fff;
  border-radius: 50%;
  transition: transform 160ms ease;
}

.cc-switch input:checked + .cc-switch__slider {
  background: #2f7d3d;
}

.cc-switch input:checked + .cc-switch__slider::before {
  transform: translateX(21px);
}

.cc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

.cc-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 220px;
  padding: 28px 20px;
  color: #292929;
  text-align: center;
  background: #f3f5f3;
  border: 1px solid #d7ddd7;
  border-radius: 10px;
}

.cc-placeholder__inner {
  max-width: 520px;
}

.cc-placeholder h3 {
  margin: 0 0 8px;
  color: #1c1c1c;
  font-size: 18px;
}

.cc-placeholder p {
  margin: 0 0 15px;
  font-size: 14px;
  line-height: 1.55;
}

.cc-footer-button {
  appearance: none;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.cc-footer-button:hover {
  color: #43a653;
}

.cc-consent-note {
  margin: 0 0 12px;
  padding: 12px 14px;
  color: #493f24;
  background: #fff8df;
  border: 1px solid #eadca4;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.cc-inline-button {
  appearance: none;
  padding: 0;
  color: #246d32;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
}

[data-cookie-requires]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

@media (max-width: 820px) {
  .cc-banner {
    max-width: 560px;
    padding: 16px;
  }

  .cc-banner__content {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .cc-banner__text {
    flex: 0 0 auto;
    min-height: 0;
  }

  .cc-actions {
    justify-content: stretch;
  }

  .cc-actions .cc-button {
    flex: 1 1 auto;
  }
}

@media (max-width: 520px) {
  .cc-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-height: calc(100dvh - 20px);
    padding: 12px;
    overflow-y: auto;
    border-radius: 11px;
  }

  .cc-title {
    margin-bottom: 4px;
    font-size: 16px;
  }

  .cc-text {
    font-size: 13px;
    line-height: 1.42;
  }

  .cc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .cc-actions .cc-button {
    flex: none;
    width: 100%;
    min-height: 38px;
    padding: 8px 9px;
    font-size: 12px;
  }

  .cc-actions [data-cc-reject] {
    grid-column: 1;
    grid-row: 1;
  }

  .cc-actions [data-cc-accept] {
    grid-column: 2;
    grid-row: 1;
  }

  .cc-actions [data-cc-settings] {
    grid-column: 1 / -1;
    grid-row: 2;
  }

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

  .cc-modal__panel {
    padding: 19px;
  }

  .cc-category {
    gap: 12px;
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-button,
  .cc-switch__slider,
  .cc-switch__slider::before {
    transition: none;
  }
}
