:root {
  --cc-dark: #2f3742;
  --cc-dark-hover: #252c35;
  --cc-text: #25282b;
  --cc-muted: #5c5e61;
  --cc-border: #e4e6e8;
  --cc-soft: #eef3f6;
  --cc-white: #fff;
  --cc-font: Arial, Helvetica, sans-serif;
}

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

.cc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cc-lock-scroll {
  overflow: hidden;
}

.cc-banner,
.cc-overlay,
.cc-link-btn {
  box-sizing: border-box;
  font-family: var(--cc-font);
}

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

.cc-banner {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 999998;
  width: 336px;
  max-width: calc(100vw - 28px);
  overflow: hidden;
  color: var(--cc-text);
  background: var(--cc-white);
  border-radius: 7px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .18);
  animation: ccFadeUp .2s ease both;
}

.cc-banner-inner {
  padding: 17px 19px 15px;
}

.cc-banner-title {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

.cc-banner-text {
  margin: 0 0 20px;
  color: #4e5053;
  font-size: 14px;
  line-height: 1.55;
}

.cc-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-btn {
  min-height: 61px;
  padding: 14px 28px;
  border: 0;
  border-radius: 9px;
  appearance: none;
  font: 700 18px/1.2 var(--cc-font);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.cc-banner .cc-btn {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 5px;
  font-size: 14px;
}

.cc-btn-primary {
  color: var(--cc-white);
  background: var(--cc-dark);
}

.cc-btn-primary:hover {
  background: var(--cc-dark-hover);
}

.cc-btn-muted {
  color: #25282b;
  background: #eaf0f3;
}

.cc-btn-muted:hover {
  background: #dfe7eb;
}

.cc-btn-reject {
  color: #25282b;
  border: 1px solid #cfd7dc;
  background: #fff;
}

.cc-btn-reject:hover {
  background: #f3f6f8;
}

.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .88);
  animation: ccFade .15s ease both;
}

.cc-modal {
  display: flex;
  flex-direction: column;
  width: 720px;
  max-width: calc(100vw - 48px);
  height: auto;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  color: var(--cc-text);
  background: var(--cc-white);
  border-radius: 7px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .3);
  animation: ccZoom .15s ease both;
}

.cc-modal:focus {
  outline: none;
}

.cc-modal-header {
  position: relative;
  flex: 0 0 72px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--cc-border);
}

.cc-modal-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

.cc-close {
  position: absolute;
  top: 15px;
  right: 24px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #eaf0f3;
  cursor: pointer;
}

.cc-close::before,
.cc-close::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 12px;
  width: 18px;
  height: 2px;
  background: #25282b;
}

.cc-close::before {
  transform: rotate(45deg);
}

.cc-close::after {
  transform: rotate(-45deg);
}

.cc-modal-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 22px 24px 26px;
}

.cc-modal-intro {
  max-width: 600px;
  margin: 0 0 32px;
  color: #5b5d60;
  font-size: 14px;
  line-height: 1.5;
}

.cc-modal-intro a {
  color: #373a3d;
  font-weight: 700;
  text-decoration: none;
}

.cc-modal-body {
  display: grid;
  gap: 6px;
}

.cc-section {
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--cc-soft);
}

.cc-section.open {
  border-color: #dadddf;
  background: var(--cc-white);
}

.cc-section-head {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 59px;
  padding: 10px 16px;
  color: var(--cc-text);
  text-align: left;
  border: 0;
  background: transparent;
  font-family: var(--cc-font);
  cursor: pointer;
}

.cc-section.open .cc-section-head {
  border-bottom: 1px solid #dadddf;
}

.cc-arrow {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dbe4e9;
}

.cc-arrow::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 7px;
  width: 6px;
  height: 6px;
  border-right: 2px solid #33404a;
  border-bottom: 2px solid #33404a;
  transform: rotate(45deg);
  transition: transform .15s ease, top .15s ease;
}

.cc-section.open .cc-arrow::before {
  top: 8px;
  transform: rotate(225deg);
}

.cc-section-title {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.cc-section-content {
  display: none;
  padding: 16px;
  color: #5a5d60;
  font-size: 14px;
  line-height: 1.5;
}

.cc-section-content p {
  margin: 0;
}

.cc-table-wrap {
  width: 100%;
  margin-top: 14px;
  overflow-x: auto;
}

.cc-cookie-table {
  width: 100%;
  border-collapse: collapse;
  color: #4f5255;
  font-size: 12px;
}

.cc-cookie-table th,
.cc-cookie-table td {
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #dadddf;
}

.cc-cookie-table th {
  color: #303438;
  background: #eef3f6;
  font-weight: 700;
}

.cc-section-content .cc-no-cookies {
  margin-top: 12px;
  font-style: italic;
}

.cc-section.open .cc-section-content {
  display: block;
}

.cc-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex: 0 0 auto;
}

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

.cc-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd8df;
  cursor: pointer;
  transition: background-color .15s ease;
}

.cc-slider::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 26px;
  height: 26px;
  border: 1px solid #bac4c9;
  border-radius: 50%;
  background: var(--cc-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  transition: transform .15s ease;
}

.cc-slider::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 9px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #aebec6;
  border-bottom: 2px solid #aebec6;
  transform: rotate(-45deg);
  transition: transform .15s ease;
}

.cc-switch input:checked + .cc-slider {
  background: var(--cc-dark);
}

.cc-switch input:checked + .cc-slider::before,
.cc-switch-required .cc-slider::before {
  transform: translateX(24px);
}

.cc-switch input:checked + .cc-slider::after,
.cc-switch-required .cc-slider::after {
  transform: translateX(24px) rotate(-45deg);
  border-color: #2f3742;
}

.cc-switch-required .cc-slider {
  background: #dce7ec;
  cursor: default;
}

.cc-switch input:focus-visible + .cc-slider,
.cc-close:focus-visible,
.cc-btn:focus-visible,
.cc-section-head:focus-visible,
.cc-link-btn:focus-visible {
  outline: 3px solid #4c8bf5;
  outline-offset: 2px;
}

.cc-modal-footer {
  flex: 0 0 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 24px;
  border-top: 1px solid var(--cc-border);
  background: var(--cc-white);
}

.cc-modal-footer .cc-btn {
  min-width: 0;
  flex: 1 1 0;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 5px;
  font-size: 14px;
}

.cc-modal-footer .cc-btn-muted {
  min-width: 174px;
}

.cc-section-head:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: -2px;
}

.cc-link-btn {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 999997;
  padding: 10px 13px;
  color: var(--cc-dark);
  border: 1px solid var(--cc-border);
  border-radius: 5px;
  background: var(--cc-white);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
  font-size: 13px;
  cursor: pointer;
}

@keyframes ccFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ccZoom {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes ccFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .cc-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-width: none;
  }

  .cc-banner-inner {
    padding: 20px;
  }

  .cc-banner-title {
    margin-bottom: 12px;
    font-size: 21px;
  }

  .cc-banner-text {
    margin-bottom: 20px;
    font-size: 16px;
  }

  .cc-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .cc-modal {
    width: 100%;
    max-width: none;
    height: 94vh;
    border-radius: 12px 12px 0 0;
  }

  .cc-modal-header {
    flex-basis: 78px;
    padding: 0 20px;
  }

  .cc-modal-title {
    font-size: 22px;
  }

  .cc-close {
    top: 14px;
    right: 14px;
    width: 48px;
    height: 48px;
  }

  .cc-close::before,
  .cc-close::after {
    top: 23px;
    left: 14px;
    width: 20px;
  }

  .cc-modal-main {
    padding: 20px;
  }

  .cc-modal-intro {
    margin-bottom: 28px;
    font-size: 16px;
  }

  .cc-section-head {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    min-height: 74px;
    padding: 12px;
  }

  .cc-arrow {
    width: 25px;
    height: 25px;
  }

  .cc-section-title {
    font-size: 16px;
  }

  .cc-switch {
    width: 58px;
    height: 30px;
  }

  .cc-slider::before {
    width: 28px;
    height: 28px;
  }

  .cc-slider::after {
    top: 8px;
    left: 9px;
  }

  .cc-switch input:checked + .cc-slider::before,
  .cc-switch-required .cc-slider::before {
    transform: translateX(28px);
  }

  .cc-switch input:checked + .cc-slider::after,
  .cc-switch-required .cc-slider::after {
    transform: translateX(28px) rotate(-45deg);
  }

  .cc-section-content {
    padding: 16px;
    font-size: 16px;
  }

  .cc-cookie-table {
    min-width: 620px;
    font-size: 13px;
  }

  .cc-modal-footer {
    flex-direction: column;
    flex: 0 0 auto;
    gap: 10px;
    padding: 14px 20px 20px;
  }

  .cc-modal-footer .cc-btn,
  .cc-modal-footer .cc-btn-muted {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 12px;
    font-size: 14px;
  }

  .cc-link-btn {
    left: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner,
  .cc-overlay,
  .cc-modal {
    animation: none;
  }
}
