.cookie-consent-root {
  position: relative;
  z-index: 240;
  font-family: inherit;
}

.cc-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: none;
  z-index: 240;
}

.cc-banner.is-visible {
  display: block;
}

.cc-banner-panel {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  background: rgba(17, 17, 17, 0.96);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.28);
  backdrop-filter: blur(18px);
}

.cc-banner-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cc-banner-copy {
  flex: 1 1 340px;
}

.cc-banner-title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.cc-banner-description {
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.cc-banner-description a,
.cc-modal-copy a,
.cc-setting-description a {
  color: rgba(255, 255, 255, 0.88);
  text-underline-offset: 2px;
}

.cc-banner-actions,
.cc-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cc-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.05rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease,
    background-color 0.18s ease, color 0.18s ease;
}

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

.cc-button-primary {
  background: #ffffff;
  color: #111111;
}

.cc-button-primary:hover {
  opacity: 0.88;
}

.cc-button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}

.cc-button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cc-button-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
}

.cc-button-ghost:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.cc-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(17, 17, 17, 0.48);
  backdrop-filter: blur(6px);
  z-index: 241;
}

.cc-modal-backdrop.is-visible {
  display: block;
}

.cc-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(640px, calc(100vw - 2rem));
  max-height: min(88vh, 760px);
  overflow: auto;
  display: none;
  transform: translate(-50%, -50%);
  z-index: 242;
}

.cc-modal.is-visible {
  display: block;
}

.cc-modal-panel {
  background: #111111;
  color: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 70px rgba(17, 17, 17, 0.35);
  overflow: hidden;
}

.cc-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1rem;
}

.cc-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.45rem;
}

.cc-modal-copy {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.cc-close {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cc-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.cc-settings {
  padding: 0 1.5rem 1.5rem;
}

.cc-setting {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-setting:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-setting-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.cc-setting-title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cc-setting-description {
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

.cc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cc-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.cc-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cc-switch-track {
  position: relative;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.cc-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.18s ease;
}

.cc-switch input:checked + .cc-switch-track {
  background: rgba(255, 255, 255, 0.9);
}

.cc-switch input:checked + .cc-switch-track::after {
  transform: translateX(20px);
  background: #111111;
}

.cc-switch-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.cc-modal-footer {
  padding: 0 1.5rem 1.5rem;
}

.cc-modal-actions {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 720px) {
  .cc-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .cc-banner-panel,
  .cc-modal-header,
  .cc-settings,
  .cc-modal-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cc-setting-top {
    flex-direction: column;
  }

  .cc-badge {
    min-width: 0;
  }

  .cc-button {
    width: 100%;
    justify-content: center;
  }

  .cc-banner-actions,
  .cc-modal-actions {
    width: 100%;
  }
}
