:root {
  --t3cc-bg: rgba(255, 255, 255, 0.94);
  --t3cc-text: #191b1f;
  --t3cc-muted: #5f6368;
  --t3cc-border: rgba(25, 27, 31, 0.10);
  --t3cc-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
  --t3cc-radius: 28px;
  --t3cc-blue: #0b57d0;
  --t3cc-blue-dark: #0842a0;
}

.thorn3-cc[hidden],
.thorn3-cc__preferences[hidden],
.thorn3-cc__gpc[hidden] {
  display: none !important;
}

.thorn3-cc {
  position: fixed;
  z-index: 999999;
  width: min(980px, calc(100vw - 32px));
  pointer-events: none;
}

.thorn3-cc--bottom-center {
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
}

.thorn3-cc--bottom-left {
  left: 24px;
  bottom: 24px;
}

.thorn3-cc--bottom-right {
  right: 24px;
  bottom: 24px;
}

.thorn3-cc__card {
  position: relative;
  color: var(--t3cc-text);
  background: var(--t3cc-bg);
  border: 1px solid var(--t3cc-border);
  border-radius: var(--t3cc-radius);
  box-shadow: var(--t3cc-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 22px;
  pointer-events: auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.thorn3-cc__close {
  position: absolute;
  top: 9px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--t3cc-muted);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.thorn3-cc__close:hover { background: rgba(0,0,0,.06); }
.thorn3-cc__close:focus-visible { outline: 2px solid var(--t3cc-blue); outline-offset: 2px; }

.thorn3-cc__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding-right: 18px;
}

.thorn3-cc__copy h2 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.thorn3-cc__copy p,
.thorn3-cc__pref-row p {
  margin: 0;
  color: var(--t3cc-muted);
  font-size: 14px;
  line-height: 1.45;
}

.thorn3-cc__privacy {
  display: inline-flex;
  margin-top: 10px;
  color: var(--t3cc-blue);
  font-weight: 650;
  font-size: 14px;
  text-decoration: none;
}

.thorn3-cc__privacy:hover,
.thorn3-cc__privacy:focus {
  color: var(--t3cc-blue-dark);
  text-decoration: underline;
}

.thorn3-cc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.thorn3-cc__btn,
.thorn3-cc-manage,
.thorn3-cc-shortcode-link {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  min-height: 42px;
  padding: 12px 18px;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.thorn3-cc__btn:hover,
.thorn3-cc-manage:hover,
.thorn3-cc-shortcode-link:hover {
  transform: translateY(-1px);
}

.thorn3-cc__btn:focus-visible,
.thorn3-cc-manage:focus-visible,
.thorn3-cc-shortcode-link:focus-visible {
  outline: 3px solid rgba(11, 87, 208, 0.24);
  outline-offset: 3px;
}

.thorn3-cc__btn--primary {
  color: #fff;
  background: var(--t3cc-blue);
}

.thorn3-cc__btn--primary:hover,
.thorn3-cc__btn--primary:focus {
  background: var(--t3cc-blue-dark);
}

.thorn3-cc__btn--secondary {
  color: var(--t3cc-text);
  background: #fff;
  border-color: var(--t3cc-border);
}

.thorn3-cc__btn--ghost {
  color: var(--t3cc-blue);
  background: transparent;
}

.thorn3-cc__preferences {
  border-top: 1px solid var(--t3cc-border);
  margin-top: 18px;
  padding-top: 18px;
}

.thorn3-cc__pref-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--t3cc-border);
}

.thorn3-cc__pref-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--t3cc-text);
  font-size: 14px;
}

.thorn3-cc__always-on {
  color: var(--t3cc-muted);
  font-size: 13px;
  font-weight: 700;
}

.thorn3-cc__toggle-row input[type="checkbox"] {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  accent-color: var(--t3cc-blue);
}

.thorn3-cc__gpc {
  background: #f1f6ff;
  border: 1px solid rgba(11, 87, 208, 0.18);
  color: var(--t3cc-blue-dark);
  border-radius: 16px;
  margin-bottom: 12px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 650;
}

.thorn3-cc__actions--prefs {
  justify-content: flex-end;
  padding-top: 16px;
}

/* Intentionally no always-visible/floating cookie-settings tab. */
.thorn3-cc-shortcode-link {
  appearance: none;
  background: transparent;
  color: inherit;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  padding: 0 0 1px;
  text-decoration: none;
}
.thorn3-cc-shortcode-link:hover { opacity: .7; }
.thorn3-cc-shortcode-link:focus-visible { outline: 2px solid var(--t3cc-blue); outline-offset: 3px; }

@media (max-width: 780px) {
  .thorn3-cc {
    width: calc(100vw - 24px);
  }

  .thorn3-cc--bottom-center,
  .thorn3-cc--bottom-left,
  .thorn3-cc--bottom-right {
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: none;
  }

  .thorn3-cc__card {
    border-radius: 22px;
    padding: 18px;
  }

  .thorn3-cc__close {
  position: absolute;
  top: 9px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--t3cc-muted);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.thorn3-cc__close:hover { background: rgba(0,0,0,.06); }
.thorn3-cc__close:focus-visible { outline: 2px solid var(--t3cc-blue); outline-offset: 2px; }

.thorn3-cc__main {
    grid-template-columns: 1fr;
  }

  .thorn3-cc__actions {
    justify-content: stretch;
  }

  .thorn3-cc__btn {
    flex: 1 1 100%;
  }
}
