.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(44, 54, 64, 0.45);
}

.cc-overlay[hidden],
.cc-manage[hidden],
.cc-prefs[hidden],
.cc-error[hidden],
.cc-actions [hidden],
.cc-close[hidden] {
  display: none !important;
}

html.cc-lock,
html.cc-lock body {
  overflow: hidden;
}

.cc-modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 0;
  padding: 28px 28px 22px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 15px 90px -10px rgba(0, 0, 0, 0.2);
  font-family: "Nunito Sans", sans-serif;
  color: #333;
}

.cc-title {
  margin: 0 36px 12px 0;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  color: #333;
}

.cc-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin-top: 10px;
  background: #dd0e1c;
}

.cc-intro {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.cc-intro a {
  color: #0aabc6;
}

.cc-intro a:hover {
  color: #277b8c;
}

.cc-prefs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.cc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 12px 14px;
  background: #f0f2f5;
  border-radius: 3px;
  cursor: pointer;
}

.cc-row-text {
  flex: 1;
  min-width: 0;
}

.cc-row-title {
  display: block;
  margin-bottom: 4px;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.cc-row-title em {
  margin-left: 6px;
  font-family: "Nunito Sans", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #696973;
}

.cc-row-desc {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: #696973;
}

.cc-switch {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 26px;
}

.cc-switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cc-switch input:disabled {
  cursor: not-allowed;
}

.cc-switch-ui {
  display: block;
  width: 46px;
  height: 26px;
  background: #ddd;
  border-radius: 13px;
  transition: background 0.15s ease;
}

.cc-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.cc-switch input:checked + .cc-switch-ui {
  background: #0aabc6;
}

.cc-switch input:checked + .cc-switch-ui::after {
  transform: translateX(20px);
}

.cc-switch input:focus-visible + .cc-switch-ui {
  outline: 2px solid #277b8c;
  outline-offset: 2px;
}

.cc-error {
  margin: 0 0 12px;
  color: #dd0e1c;
  font-size: 14px;
}

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

.cc-btn {
  min-height: 48px;
  margin: 0;
  padding: 12px 10px;
  border-radius: 2px;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.cc-btn-primary {
  border: 2px solid #0aabc6;
  background: #0aabc6;
  color: #fff;
}

.cc-btn-primary:hover,
.cc-btn-reject:hover,
.cc-btn-settings:hover {
  border-color: #277b8c;
  background: #277b8c;
  color: #fff;
}

.cc-btn-reject,
.cc-btn-settings {
  border: 2px solid #0aabc6;
  background: #fff;
  color: #277b8c;
}

.cc-btn:focus-visible,
.cc-close:focus-visible,
.cc-manage:focus-visible {
  outline: 2px solid #277b8c;
  outline-offset: 2px;
}

.cc-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cc-close:hover {
  color: #277b8c;
}

.cc-manage {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 99990;
  padding: 10px 14px;
  border: 0;
  border-radius: 2px;
  background: #2c3640;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.cc-manage:hover {
  background: #277b8c;
}

@media (max-width: 640px) {
  .cc-modal {
    padding: 22px 16px 16px;
  }

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

  .cc-manage {
    left: 10px;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-switch-ui,
  .cc-switch-ui::after {
    transition: none;
  }
}
