/* TrackForge consent banner (generated). Restyle freely per site brand. */
.pipeline-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: #101418;
  color: #f3f4f6;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.pipeline-cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pipeline-cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  max-width: 960px;
  margin: 0 auto;
}

.pipeline-cookie-banner__inner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  flex: 1 1 380px;
}

.pipeline-cookie-banner__inner a {
  color: #9dd0ff;
  text-decoration: underline;
}

/* Accept sits last in the DOM, so it always lands on the right. */
.pipeline-cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.pipeline-cookie-banner__actions button {
  font: inherit;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
}

.pipeline-cookie-banner__accept {
  background: #a3e635;
  color: #171717;
}

.pipeline-cookie-banner__accept:hover {
  background: #84cc16;
}

.pipeline-cookie-banner__essential {
  background: transparent;
  color: #d0d4d9;
  border-color: #3a4048 !important;
}

@media (max-width: 560px) {
  .pipeline-cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
  /*
   * The 380px basis above is a minimum WIDTH while this is a row. Going column
   * flips the main axis, so it would become a minimum HEIGHT and pad the banner
   * out with ~380px of dead space before the buttons.
   */
  .pipeline-cookie-banner__inner p {
    flex: 0 0 auto;
  }
  /* Stay a row on mobile so Accept keeps the right-hand thumb position. */
  .pipeline-cookie-banner__actions {
    width: 100%;
  }
  .pipeline-cookie-banner__actions button {
    flex: 1 1 0;
  }
}

/* ------------------------------------------------------ preferences modal */

.pipeline-cookie-prefs {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pipeline-cookie-prefs[hidden] {
  display: none;
}

.pipeline-cookie-prefs__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 14, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pipeline-cookie-prefs.is-open .pipeline-cookie-prefs__backdrop {
  opacity: 1;
}

.pipeline-cookie-prefs__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  color: #1f2937;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 24px;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.pipeline-cookie-prefs.is-open .pipeline-cookie-prefs__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pipeline-cookie-prefs__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px 8px;
}

.pipeline-cookie-prefs__close:hover {
  color: #111827;
}

.pipeline-cookie-prefs__title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.pipeline-cookie-prefs__intro {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #4b5563;
}

.pipeline-cookie-prefs__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.pipeline-cookie-prefs__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #eef0f3;
}

.pipeline-cookie-prefs__row:first-child {
  border-top: 0;
}

.pipeline-cookie-prefs__text {
  flex: 1 1 auto;
  min-width: 0;
}

.pipeline-cookie-prefs__label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
}

.pipeline-cookie-prefs__pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f3f5;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}

.pipeline-cookie-prefs__desc {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

/* Switch */
.pipeline-cookie-switch {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-top: 2px;
}

.pipeline-cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.pipeline-cookie-switch__track {
  display: block;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #d5d9df;
  transition: background-color 0.2s ease;
}

.pipeline-cookie-switch__thumb {
  display: block;
  width: 22px;
  height: 22px;
  margin: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.pipeline-cookie-switch input:checked ~ .pipeline-cookie-switch__track {
  background: #65a30d;
}

.pipeline-cookie-switch input:checked ~ .pipeline-cookie-switch__track .pipeline-cookie-switch__thumb {
  transform: translateX(20px);
}

.pipeline-cookie-switch input:focus-visible ~ .pipeline-cookie-switch__track {
  outline: 2px solid #111827;
  outline-offset: 2px;
}

.pipeline-cookie-switch.is-locked {
  cursor: default;
  opacity: 0.65;
}

.pipeline-cookie-switch.is-locked .pipeline-cookie-switch__track {
  background: #9ca3af;
}

.pipeline-cookie-switch.is-locked .pipeline-cookie-switch__thumb {
  transform: translateX(20px);
}

.pipeline-cookie-switch__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Modal actions — "Accept all" last so it sits on the right. */
.pipeline-cookie-prefs__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.pipeline-cookie-prefs__actions button {
  font: inherit;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  flex: 1 1 0;
}

.pipeline-cookie-prefs__save {
  background: #ffffff;
  color: #111827;
  border-color: #d5d9df;
}

.pipeline-cookie-prefs__accept {
  background: #a3e635;
  color: #171717;
}

.pipeline-cookie-prefs__accept:hover {
  background: #84cc16;
}

.pipeline-cookie-prefs__reject {
  display: block;
  width: 100%;
  margin: 14px 0 0;
  padding: 4px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: #6b7280;
  text-decoration: underline;
  cursor: pointer;
}

.pipeline-cookie-prefs__reject:hover {
  color: #111827;
}

html.pipeline-cookie-prefs-open,
html.pipeline-cookie-prefs-open body {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .pipeline-cookie-banner,
  .pipeline-cookie-prefs__backdrop,
  .pipeline-cookie-prefs__dialog,
  .pipeline-cookie-switch__track,
  .pipeline-cookie-switch__thumb {
    transition: none;
  }
}
