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

.cc-root {
  font-family: inherit;
}

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

.cc-banner {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 1200;
  width: min(980px, calc(100% - 1.5rem));
  border-radius: 18px;
  border: 1px solid rgba(108, 78, 255, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f9f5ff 100%);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.18);
  padding: 1rem 1rem 0.95rem;
  display: grid;
  gap: 0.9rem;
}

.cc-banner__title {
  margin: 0;
  font-size: 1.1rem;
}

.cc-banner__text {
  margin: 0.5rem 0 0;
  color: #59586a;
  line-height: 1.6;
}

.cc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cc-btn {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.58rem 0.95rem;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.cc-btn:hover {
  transform: translateY(-1px);
}

.cc-btn--equal {
  background: #5d41ef;
  color: #ffffff;
  border-color: #5d41ef;
  box-shadow: 0 10px 20px rgba(93, 65, 239, 0.24);
}

.cc-btn--equal:hover {
  background: #4f33e4;
  border-color: #4f33e4;
}

.cc-btn--ghost {
  background: #ffffff;
  color: #342f45;
  border-color: rgba(108, 78, 255, 0.32);
}

.cc-btn--ghost:hover {
  background: rgba(108, 78, 255, 0.08);
}

.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
}

.cc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 20, 31, 0.55);
}

.cc-modal__panel {
  position: relative;
  width: min(720px, calc(100% - 1.2rem));
  margin: 8vh auto 0;
  border-radius: 18px;
  border: 1px solid rgba(108, 78, 255, 0.2);
  background: #ffffff;
  box-shadow: 0 30px 62px rgba(15, 23, 42, 0.24);
  padding: 1.15rem 1.1rem 1rem;
}

.cc-modal__title {
  margin: 0;
  font-size: 1.1rem;
}

.cc-modal__text {
  margin: 0.55rem 0 0;
  color: #59586a;
  line-height: 1.6;
}

.cc-modal__privacy {
  margin: 0.45rem 0 0;
  color: #59586a;
  line-height: 1.55;
  font-size: 0.9rem;
}

.cc-modal__privacy a {
  color: #342f45;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.cc-categories {
  margin-top: 1rem;
  display: grid;
  gap: 0.68rem;
}

.cc-category {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.88rem 0.92rem;
  border-radius: 14px;
  border: 1px solid rgba(108, 78, 255, 0.16);
  background: rgba(108, 78, 255, 0.05);
}

.cc-category__copy {
  display: grid;
  gap: 0.18rem;
}

.cc-category__copy strong {
  font-size: 0.95rem;
  color: #232033;
}

.cc-category__copy span {
  font-size: 0.9rem;
  color: #59586a;
  line-height: 1.5;
}

.cc-category input[type="checkbox"] {
  inline-size: 1.15rem;
  block-size: 1.15rem;
  margin-top: 0.08rem;
  accent-color: #5d41ef;
}

.cc-modal__actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (max-width: 760px) {
  .cc-banner {
    width: calc(100% - 1rem);
    bottom: 0.55rem;
    border-radius: 14px;
    padding: 0.9rem;
  }

  .cc-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cc-btn {
    width: 100%;
  }

  .cc-modal__panel {
    margin-top: 5vh;
    border-radius: 14px;
    padding: 1rem 0.9rem 0.9rem;
  }
}
