.yq-consent-banner {
  position: fixed;
  z-index: 2147483000;
  right: 16px;
  bottom: 16px;
  left: 16px;
  color: #243b53;
}

/* 0.1.3: isolate the consent layout from aggressive theme button/form rules. */
body .yq-consent-banner .yq-consent-banner__inner {
  display: flex !important;
  width: min(100% - 32px, 980px) !important;
}
body .yq-consent-banner .yq-consent-banner__copy {
  flex: 1 1 560px !important;
  min-width: 0 !important;
  max-width: 660px !important;
}
body .yq-consent-banner .yq-consent-preferences,
body .yq-consent-banner .yq-consent-banner__actions--preferences {
  display: none !important;
}
body .yq-consent-banner .yq-consent-banner__actions[data-yq-consent-overview-actions] {
  display: flex !important;
}
body .yq-consent-banner[data-preferences-mode="true"] .yq-consent-preferences {
  display: grid !important;
}
body .yq-consent-banner[data-preferences-mode="true"] .yq-consent-banner__actions--preferences {
  display: grid !important;
}
body .yq-consent-banner[data-preferences-mode="true"] .yq-consent-banner__actions[data-yq-consent-overview-actions] {
  display: none !important;
}

@media (max-width: 767px) {
  body .yq-consent-banner {
    bottom: 10px !important;
  }
  body .yq-consent-banner .yq-consent-banner__inner {
    display: block !important;
    width: calc(100% - 20px) !important;
    max-height: calc(100vh - 20px) !important;
    overflow-y: auto !important;
    padding: 16px !important;
  }
  body .yq-consent-banner .yq-consent-banner__copy {
    max-width: none !important;
  }
  body .yq-consent-banner .yq-consent-banner__actions[data-yq-consent-overview-actions] {
    display: grid !important;
    width: 100% !important;
    margin-top: 14px !important;
  }
  body .yq-consent-banner[data-preferences-mode="true"] .yq-consent-banner__actions[data-yq-consent-overview-actions] {
    display: none !important;
  }
}

.yq-consent-banner[hidden] {
  display: none !important;
}

.yq-consent-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 22px;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(16, 42, 67, .22);
}

.yq-consent-banner__copy {
  max-width: 660px;
}

.yq-consent-preferences,
.yq-consent-banner__actions--preferences {
  display: none;
}

.yq-consent-banner[data-preferences-mode="true"] .yq-consent-preferences,
.yq-consent-banner[data-preferences-mode="true"] .yq-consent-banner__actions--preferences {
  display: grid;
}

.yq-consent-banner[data-preferences-mode="true"] [data-yq-consent-overview-actions] {
  display: none;
}

.yq-consent-preferences {
  gap: 8px;
  margin-top: 14px;
}

.yq-consent-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  color: #243b53;
  background: #f8fafc;
}

.yq-consent-category strong,
.yq-consent-category span {
  display: block;
}

.yq-consent-category span {
  margin-top: 2px;
  font: 400 13px/1.4 "Work Sans", sans-serif;
}

.yq-consent-category .yq-consent-always-on {
  flex: 0 0 auto;
  margin: 0;
  color: #52667a;
  font-weight: 600;
}

.yq-consent-category input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: #0757b8;
}

.yq-consent-banner h2 {
  margin: 0 0 6px;
  color: #102a43;
  font: 600 20px/1.3 Poppins, sans-serif;
}

.yq-consent-banner p {
  margin: 0;
  font: 400 14px/1.55 "Work Sans", sans-serif;
}

.yq-consent-banner__links {
  margin-top: 6px !important;
}

.yq-consent-banner a,
.yq-cookie-preferences {
  color: #0757b8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.yq-consent-banner__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.yq-consent-banner__actions--preferences {
  grid-template-columns: 1fr;
}

.yq-consent-button {
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid #0757b8;
  border-radius: 8px;
  cursor: pointer;
  font: 600 14px/1.2 "Work Sans", sans-serif;
}

.yq-consent-button--primary {
  color: #fff;
  background: #0757b8;
}

.yq-consent-button--secondary {
  color: #0757b8;
  background: #fff;
}

.yq-consent-button:focus-visible,
.yq-cookie-preferences:focus-visible,
.yq-consent-banner a:focus-visible {
  outline: 3px solid #f17b21;
  outline-offset: 3px;
}

.yq-cookie-preferences {
  display: block;
  width: fit-content;
  min-height: 44px;
  margin: 10px auto 24px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: 500 14px/1.4 "Work Sans", sans-serif;
}

@media (max-width: 767px) {
  .yq-consent-banner {
    right: 10px;
    bottom: 76px;
    left: 10px;
  }

  .yq-consent-banner__inner,
  .yq-consent-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .yq-consent-banner__inner {
    gap: 14px;
    padding: 17px;
  }

  .yq-consent-banner__actions {
    gap: 8px;
  }

  .yq-consent-banner__actions--preferences {
    display: none;
  }

  .yq-consent-banner[data-preferences-mode="true"] .yq-consent-banner__actions--preferences {
    display: grid;
  }

  .yq-consent-button {
    width: 100%;
  }
}
