/* Site-owned controls; selectors retain the existing public markup contract. */
#itp-cookie-notice.itp-cookie-card {
  position: fixed;
  z-index: 100000;
  box-sizing: border-box;
  min-width: 0;
  width: min(420px, calc(100% - 40px));
  max-width: calc(100% - 40px);
  height: auto;
  top: auto;
  left: auto;
  right: auto;
  inset-inline-start: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  border: 1px solid #dce0e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 32px rgb(21 32 50 / 14%);
  color: #343b46;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  text-align: start;
}
#itp-cookie-notice.itp-cookie-card[hidden] { display: none !important; }
#itp-cookie-notice.itp-cookie-card,
#itp-cookie-notice.itp-cookie-card * { box-sizing: border-box; }
#itp-cookie-notice.itp-cookie-card .cookie-notice-container,
#itp-cookie-notice.itp-cookie-card .cookie-revoke-container {
  padding: 20px;
  text-align: start;
}
#itp-cookie-notice.itp-cookie-card #itp-cookie-message {
  display: block;
  padding-inline-end: 20px;
  margin: 0 0 15px;
  color: #343b46;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#itp-cookie-notice.itp-cookie-card .itp-cookie-policy-link {
  display: inline;
  color: #374d70;
  font-size: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: normal;
}
#itp-cookie-notice.itp-cookie-card #itp-cookie-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  margin: 0;
}
#itp-cookie-notice.itp-cookie-card .cn-button.itp-cookie-choice {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  max-width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #bcc4cf;
  border-radius: 7px;
  background: #f5f6f8;
  color: #253144;
  box-shadow: none;
  font: 600 13px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
#itp-cookie-notice.itp-cookie-card .cn-button.itp-cookie-choice:hover {
  border-color: #78889f;
  background: #eaf0f8;
  color: #1e2c42;
}
#itp-cookie-notice.itp-cookie-card .cn-close-icon {
  position: absolute;
  cursor: pointer;
  top: 9px;
  right: auto;
  inset-inline-end: 9px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  opacity: 1;
}
#itp-cookie-notice.itp-cookie-card .cn-close-icon::before,
#itp-cookie-notice.itp-cookie-card .cn-close-icon::after {
  position: absolute;
  content: '';
  width: 1.5px;
  height: 14px;
  top: 9px;
  left: 15px;
  background: #697586;
}
#itp-cookie-notice.itp-cookie-card .cn-close-icon:hover { background: #f0f3f7; }
#itp-cookie-notice.itp-cookie-card .cn-close-icon::before { transform: rotate(45deg); }
#itp-cookie-notice.itp-cookie-card .cn-close-icon::after { transform: rotate(-45deg); }
#itp-cookie-notice.itp-cookie-card :is(button, a):focus-visible,
.itp-cookie-preferences-footer .itp-cookie-preferences-link:focus-visible {
  outline: 2px solid #365d92;
  outline-offset: 3px;
}
.itp-cookie-preferences-footer {
  position: relative;
  padding: 10px 20px;
  background: transparent;
  color: #59616e;
  text-align: center;
}
.itp-cookie-preferences-footer .itp-cookie-preferences-link {
  display: inline-block;
  padding: 4px 8px;
  color: #59616e;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font: 400 12px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer .itp-cookie-preferences-footer,
.site-footer .itp-cookie-preferences-footer .itp-cookie-preferences-link { color: #c4ccd8; }
@media (max-width: 600px) {
  #itp-cookie-notice.itp-cookie-card {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    inset-inline-start: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    border-radius: 12px;
  }
  #itp-cookie-notice.itp-cookie-card .cookie-notice-container,
  #itp-cookie-notice.itp-cookie-card .cookie-revoke-container { padding: 17px; }
  #itp-cookie-notice.itp-cookie-card #itp-cookie-message { margin-bottom: 12px; font-size: 12px; }
  #itp-cookie-notice.itp-cookie-card #itp-cookie-buttons { gap: 8px; }
  #itp-cookie-notice.itp-cookie-card .cn-button.itp-cookie-choice { font-size: 12px; }
}

/* The preferences entry belongs only in the native footer slot. */
#itp-cookie-preferences-footer[hidden] { display: none !important; }
