/*
 * directselfpublishing.com.au — custom additions on top of the
 * Trustpilot design-system stylesheets: "We use cookies" consent
 * banner + preferences dialog.
 */

#onetrust-consent-sdk {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483646;
  font-family: Trustpilot Sans, Arial, sans-serif;
}
#onetrust-banner-sdk {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
  padding: 24px 20px 28px;
}
.ot-text {
  flex: 1 1 auto;
  max-width: 1000px;
}
.ot-heading {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #191919;
}
.ot-copy {
  margin: 0;
  font-size: 14px;
  line-height: 19px;
  color: #191919;
}
.ot-link {
  color: #191919;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ot-link:hover {
  color: #005df9;
}
.ot-actions {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.ot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 30px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, filter 0.15s ease;
}
.ot-btn-outline {
  background: #fff;
  border: 1px solid #141414;
  color: #005df9;
}
.ot-btn-outline:hover {
  background: #f4f4f4;
}
.ot-btn-primary {
  background: #005df9;
  border: 1px solid #005df9;
  color: #fffffe;
}
.ot-btn-primary:hover {
  filter: brightness(1.1);
}
.ot-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -14px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #191919;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.ot-close:hover {
  background: #f0f0f0;
}
.ot-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25, 25, 25, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ot-modal {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  padding: 28px 28px 24px;
}
.ot-modal-heading {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #191919;
}
.ot-modal-copy {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 20px;
  color: #494949;
}
.ot-toggle-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.ot-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.ot-toggle-row:last-child {
  border-bottom: 0;
}
.ot-toggle-name {
  font-size: 15px;
  font-weight: 700;
  color: #191919;
}
.ot-toggle-desc {
  margin-top: 2px;
  font-size: 13px;
  line-height: 18px;
  color: #7a7a7a;
}
.ot-switch {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #c8c8c8;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.ot-switch-on {
  background: #005df9;
}
.ot-switch-locked {
  cursor: default;
  background: #005df9;
  opacity: 0.55;
}
.ot-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}
.ot-switch-on .ot-switch-knob,
.ot-switch-locked .ot-switch-knob {
  transform: translateX(20px);
}
.ot-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 900px) {
  #onetrust-banner-sdk {
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 16px 24px;
  }
  .ot-text {
    flex: 1 1 100%;
  }
  .ot-actions {
    flex: 1 1 auto;
    justify-content: flex-start;
  }
  .ot-btn {
    min-height: 44px;
    padding: 0 22px;
  }
  .ot-close {
    position: absolute;
    top: 10px;
    right: 10px;
    margin-right: 0;
  }
}
