.cc-root,
.cc-root *,
.cc-modal-backdrop,
.cc-modal-backdrop * {
  box-sizing: border-box;
}

.cc-root {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12000;
  pointer-events: none;
  padding: 0 12px 14px;
}

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

.cc-banner {
  pointer-events: auto;
  width: min(1060px, 100%);
  margin: 0 auto;
  background: linear-gradient(160deg, #ffffff 0%, #f6f8fe 100%);
  border: 1px solid #dbe2f3;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(29, 42, 79, 0.22);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cc-copy h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1e2947;
}

.cc-copy p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #425178;
}

.cc-copy a {
  color: #1e2947;
  font-weight: 600;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 330px;
}

.cc-btn {
  border: 1px solid #d2dbef;
  border-radius: 8px;
  height: 42px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cc-btn-primary {
  background: #212f53;
  border-color: #212f53;
  color: #ffffff;
}

.cc-btn-primary:hover {
  background: #16203a;
  border-color: #16203a;
}

.cc-btn-muted {
  background: #eef2fc;
  color: #273155;
}

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

.cc-btn-ghost {
  background: #ffffff;
  color: #273155;
}

.cc-btn-ghost:hover {
  background: #f5f8ff;
}

.cc-manage {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 11990;
  display: none;
  border: 1px solid #cfd8ee;
  background: #ffffff;
  color: #273155;
  border-radius: 999px;
  height: 42px;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(20, 30, 57, 0.18);
}

.cc-manage.is-visible {
  display: inline-flex;
  align-items: center;
}

.cc-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(17, 23, 43, 0.62);
  z-index: 12500;
}

.cc-modal-backdrop.is-open {
  display: flex;
}

.cc-modal {
  width: min(620px, 100%);
  background: #ffffff;
  border: 1px solid #dbe2f3;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(17, 23, 43, 0.35);
  overflow: hidden;
}

.cc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5eaf7;
}

.cc-modal-head h3 {
  margin: 0;
  font-size: 18px;
  color: #1f2a49;
}

.cc-close {
  width: 36px;
  height: 36px;
  border: 1px solid #d2dbef;
  border-radius: 8px;
  background: #ffffff;
  color: #475a89;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cc-modal-body {
  padding: 14px 16px;
}

.cc-modal-text {
  margin: 0 0 12px;
  font-size: 14px;
  color: #43527a;
}

.cc-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 2px;
}

.cc-toggle input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

.cc-toggle-copy strong {
  display: block;
  color: #222e4f;
  font-size: 14px;
}

.cc-toggle-copy small {
  display: block;
  margin-top: 2px;
  color: #58688f;
  font-size: 12px;
}

.cc-toggle-disabled {
  opacity: 0.75;
}

.cc-modal-actions {
  padding: 14px 16px 16px;
  border-top: 1px solid #e5eaf7;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

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

@media (max-width: 860px) {
  .cc-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cc-actions {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .cc-btn {
    width: 100%;
  }

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

  .cc-manage {
    right: 10px;
    left: 10px;
    bottom: 10px;
    justify-content: center;
  }
}
