/* Scoped to .cc-consent-* selectors only — do not add bare element rules (a, button, p, h2),
   this stylesheet is injected into third-party lander pages and must not leak. */

.cc-consent-locked {
  overflow: hidden !important;
}

/* Bottom banner: anchored to the viewport, does not block the page.
   The root itself ignores pointer events so the lander stays usable around it. */
.cc-consent-root {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  display: flex;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cc-consent-root,
.cc-consent-root * {
  box-sizing: border-box !important;
  margin: 0;
  line-height: normal;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
  background-image: none;
  float: none !important;
}

/* Full screen variant, used when render_type is "page". */
.cc-consent-page {
  top: 0;
  align-items: center;
  background: rgba(10, 11, 14, 0.72);
  pointer-events: auto;
}

.cc-consent-panel {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 660px;
  padding: 16px 18px;
  background: #16181d;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  animation: cc-consent-rise 0.22s ease-out;
}

.cc-consent-page .cc-consent-panel {
  max-width: 520px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
}

@keyframes cc-consent-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.cc-consent-icon {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center;
  justify-content: center;
  width: 38px !important;
  height: 38px;
  border-radius: 50%;
  background: rgba(230, 160, 60, 0.14);
  color: #e0a33c;
}

.cc-consent-icon svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
}

.cc-consent-body {
  flex: 1 1 auto;
  min-width: 0;
}

.cc-consent-title {
  margin: 0 0 4px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #f4f5f7 !important;
}

.cc-consent-message {
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  color: #9aa1ad !important;
  word-break: break-word;
}

.cc-consent-link {
  color: #8b93f8 !important;
  text-decoration: underline !important;
}

.cc-consent-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center;
  gap: 10px;
}

.cc-consent-page .cc-consent-actions {
  width: 100%;
  margin-top: 20px !important;
  justify-content: flex-end;
}

.cc-consent-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  flex: 0 0 auto !important;
  padding: 10px 20px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: 9px !important;
  border: 1px solid transparent !important;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cc-consent-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.45);
}

.cc-consent-btn-accept {
  background: #4f5bd5 !important;
  color: #ffffff !important;
  border-color: #4f5bd5 !important;
}

.cc-consent-btn-accept:hover {
  background: #4450c4 !important;
}

.cc-consent-btn-reject {
  background: transparent !important;
  color: #d7dae1 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.cc-consent-btn-reject:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

@media (max-width: 640px) {
  .cc-consent-root {
    padding: 12px;
  }

  .cc-consent-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
  }

  .cc-consent-actions {
    width: 100%;
  }

  .cc-consent-actions .cc-consent-btn {
    flex: 1 1 0 !important;
  }
}
