:where(#tf-cookie-banner, #tf-cookie-panel, #tf-cookie-footer) {
  font: 15px/1.5 Manrope, system-ui, sans-serif;
  color: #22203a;
}
#tf-cookie-banner[hidden], #tf-cookie-footer[hidden] { display: none; }
#tf-cookie-banner, #tf-cookie-panel {
  background: #fff;
  border: 1px solid #e1ddf0;
  box-shadow: 0 16px 52px #22203a21, 0 2px 6px #22203a0d;
  box-sizing: border-box;
}
#tf-cookie-banner {
  position: fixed;
  inset: auto 20px max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  max-width: 1090px;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  margin-inline: auto;
  padding: 18px 22px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 14px 22px;
}
#tf-cookie-panel {
  width: min(524px,calc(100% - 32px));
  max-height: calc(100dvh - 28px);
  padding: 24px;
  border-radius: 22px;
}
#tf-cookie-panel::backdrop { background: #22203a65; }
:is(#tf-cookie-banner,#tf-cookie-panel) h2 {
  font: 700 clamp(20px,3vw,26px)/1.13 "Bricolage Grotesque", Manrope, system-ui, sans-serif;
  margin: 0 0 8px;
  letter-spacing: -.025em;
}
:is(#tf-cookie-banner,#tf-cookie-panel) p { margin: 0; color: #565369; }
.tf-cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
:is(#tf-cookie-banner,#tf-cookie-panel) button {
  font: 750 13px/1.25 Manrope, system-ui, sans-serif;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid #e1ddf0;
  border-radius: 999px;
  background: #fff;
  color: #22203a;
  cursor: pointer;
}
:is(#tf-cookie-banner,#tf-cookie-panel) .tf-cookie-equal {
  border-color: #5730dc;
  color: #4322b8;
  background: #f3f1fa;
}
:is(#tf-cookie-banner,#tf-cookie-panel) button:hover { background: #ece7fb; }
#tf-cookie-banner .tf-cookie-text {
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: .17em;
}
#tf-cookie-panel .tf-cookie-save { background: #5730dc; color: #fff; border-color: #5730dc; }
#tf-cookie-panel .tf-cookie-save:hover { background: #4322b8; }
.tf-cookie-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
#tf-cookie-panel [data-cookie-close] { flex: 0 0 44px; padding: 0; font-size: 22px; }
.tf-cookie-categories { display: grid; gap: 10px; margin: 18px 0; }
.tf-cookie-category {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 6px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e1ddf0;
  border-radius: 12px;
}
.tf-cookie-category h3 { margin: 0; font-size: 15px; }
.tf-cookie-category strong { font-size: 12px; color: #565369; }
.tf-cookie-category p { grid-column: 1 / -1; font-size: 14px; }
.tf-cookie-category label { display: flex; align-items: center; min-height: 44px; cursor: pointer; }
#tf-cookie-analytics { width: 22px; height: 22px; accent-color: #5730dc; margin: 0 5px; cursor: pointer; }
#tf-cookie-panel .tf-cookie-legal { margin: 14px 0 0; font-size: 14px; }
#tf-cookie-footer { max-width: 1200px; margin-inline: auto; padding: 0 28px 20px; }
#tf-cookie-footer button {
  min-height: 44px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
#tf-cookie-panel a, #tf-cookie-footer button {
  color: #4322b8;
  text-decoration: underline;
  text-underline-offset: .17em;
}
:is(#tf-cookie-banner,#tf-cookie-panel,#tf-cookie-footer) :is(button,input,a):focus-visible {
  outline: 3px solid #5730dc;
  outline-offset: 3px;
}
@media (max-width: 980px) {
  #tf-cookie-banner { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 560px) {
  #tf-cookie-banner { inset-inline: 10px; padding: 14px; }
  :is(#tf-cookie-banner,#tf-cookie-panel) .tf-cookie-actions {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  :is(#tf-cookie-banner .tf-cookie-text,#tf-cookie-panel .tf-cookie-save) { grid-column: 1 / -1; }
  #tf-cookie-panel {
    margin: auto auto 0;
    width: 100%;
    max-width: 100%;
    padding: 18px 16px max(16px,env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
  }
  #tf-cookie-footer { padding-inline: 20px; }
}
