/* TermsFeed injects its stylesheet after the site stylesheet. Scope overrides to its UI. */
.termsfeed-com---nb.termsfeed-com---nb-simple {
  position: fixed;
  inset: auto 20px max(20px, env(safe-area-inset-bottom)) auto;
  width: min(475px, calc(100% - 40px));
  max-width: none;
  height: auto;
  overflow: visible;
  background: transparent;
  font: inherit;
}

.termsfeed-com---nb.termsfeed-com---nb-simple .cc-nb-main-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(36dvh, 300px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.termsfeed-com---nb .cc-nb-main-container .cc-nb-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.termsfeed-com---nb .cc-nb-main-container .cc-nb-text-container {
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}

.termsfeed-com---nb .cc-nb-main-container .cc-nb-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.termsfeed-com---nb .cc-nb-buttons-container {
  display: flex;
  flex: none;
  gap: 8px;
}

.termsfeed-com---nb .cc-nb-buttons-container > button,
.termsfeed-com---pc-dialog .cc-cp-foot .cc-cp-foot-save {
  width: auto;
  min-height: 44px;
  margin: 0 !important;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 650 14px/1.15 "Sofia Sans", sans-serif;
  opacity: 1;
}

.termsfeed-com---nb .cc-nb-buttons-container > button { flex: 1 1 0; min-width: 44px; }
.termsfeed-com---nb .cc-nb-buttons-container > button:hover,
.termsfeed-com---pc-dialog .cc-cp-foot .cc-cp-foot-save:hover { box-shadow: var(--shadow-s); border-color: var(--orange-d); }

.termsfeed-com---pc-overlay .termsfeed-com---pc-dialog {
  position: fixed;
  inset: 50% 12px auto;
  transform: translateY(-50%);
  width: min(680px, calc(100% - 24px));
  max-width: none;
  margin: 0 auto;
  color: var(--ink);
  font: inherit;
}

.termsfeed-com---pc-dialog .cc-pc-container {
  max-height: min(82dvh, 690px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.termsfeed-com---pc-dialog .cc-pc-container :is(.cc-pc-head,.cc-cp-foot) {
  flex: none;
  background: var(--cream);
  color: var(--ink);
  border-color: var(--line);
}

.termsfeed-com---pc-dialog .cc-pc-container .cc-pc-head {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
}

.termsfeed-com---pc-dialog .cc-pc-head .cc-pc-head-title { min-width: 0; align-items: flex-start; padding: 0; }
.termsfeed-com---pc-dialog .cc-pc-head :is(.cc-pc-head-title-headline,.cc-pc-head-title-text) { color: var(--ink); }
.termsfeed-com---pc-dialog .cc-pc-head .cc-pc-head-lang { flex: 0 1 auto; min-width: 0; min-height: 0; padding: 0; }
.termsfeed-com---pc-dialog .cc-pc-head .cc-pc-head-lang-select { min-width: 0; min-height: 44px; max-width: 120px; }
.termsfeed-com---pc-dialog .cc-pc-head .cc-pc-head-close {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--ink);
}

.termsfeed-com---pc-dialog .cc-pc-container .cc-cp-body { min-height: 0; overflow: auto; }
.termsfeed-com---pc-dialog .cc-pc-container .cc-cp-body-tabs { background: var(--cream); font-family: inherit !important; }
.termsfeed-com---pc-dialog .cc-pc-container .cc-cp-body-tabs-item {
  float: none;
  box-sizing: border-box;
  background: var(--cream);
  border-color: var(--line);
}

.termsfeed-com---pc-dialog .cc-pc-container .cc-cp-body-tabs-item[active=true] {
  background: var(--orange-soft) !important;
  border-inline-start: 3px solid var(--orange-d);
}

.termsfeed-com---pc-dialog .cc-pc-container .cc-cp-body-tabs-item-link {
  min-height: 44px;
  padding: 8px;
  color: var(--ink);
  font-size: 14px;
}

.termsfeed-com---pc-dialog .cc-pc-container .cc-cp-body-content { min-width: 0; background: var(--white) !important; color: var(--ink); }
.termsfeed-com---pc-dialog .cc-pc-container .cc-cp-body-content-entry { padding: 16px; }
.termsfeed-com---pc-dialog .cc-pc-container .cc-cp-body-content-entry-title { color: var(--ink); font-size: 19px; }
.termsfeed-com---pc-dialog .cc-pc-container .cc-cp-body-content-entry-text { color: var(--ink); line-height: 1.4; }
.termsfeed-com---pc-dialog .cc-pc-container :is(.cc-cp-body-content-entry,.cc-cp-foot-byline) a { color: var(--wine); text-decoration: underline; }
.termsfeed-com---pc-dialog .cc-pc-container .cc-cp-foot { gap: 8px; padding: 8px 14px; }
.termsfeed-com---pc-dialog .cc-pc-container .cc-cp-foot-byline { padding: 0; color: var(--muted); }
.termsfeed-com---pc-dialog .cc-pc-container input[type="checkbox"].cc-custom-checkbox + label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-top: 0;
}
.termsfeed-com---pc-dialog .cc-pc-container .cc-custom-checkbox + label::before { top: 10px; border-color: var(--muted); background: var(--line); }
.termsfeed-com---pc-dialog .cc-pc-container .cc-custom-checkbox:checked + label::before { border-color: var(--green-d); background: var(--green-d); }
.termsfeed-com---pc-dialog .cc-pc-container .cc-custom-checkbox + label::after { top: 10px; border-color: var(--muted); }

.termsfeed-com---nb.termsfeed-com---nb-simple :is(button,a):focus-visible,
.termsfeed-com---pc-dialog .cc-pc-container :is(button,a,select):focus-visible,
.termsfeed-com---pc-dialog .cc-pc-container .cc-custom-checkbox:focus-visible + label::before {
  outline: 2px solid var(--wine);
  outline-offset: -2px;
}

@media (max-width: 600px) {
  .termsfeed-com---nb.termsfeed-com---nb-simple {
    inset-inline: 12px;
    /* Reserve the 44px floating preferences icon and an 8px gap. */
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 52px);
    width: auto;
  }
  .termsfeed-com---nb .cc-nb-buttons-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .termsfeed-com---nb .cc-nb-buttons-container > .cc-nb-changep { grid-column: 1 / -1; }
  .termsfeed-com---pc-dialog .cc-pc-container .cc-cp-body-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
