/* Baseline contrast for every questionnaire button; variants follow. */
body .cwgdpr button {background:#285447!important;color:#fff!important;opacity:1!important;}
body .cwgdpr button span {color:inherit!important;}
body .cwgdpr button:disabled {background:#e5eae7!important;color:#4d5d55!important;opacity:1!important;}
/* Keep section navigation readable inside the shared payment layout. */
body .cwgdpr .cwgdpr-sections button:not(.cwgdpr-secondary) {
  background: #f1f6f3 !important;
  color: #243e34 !important;
  border: 1px solid #c0d2c8 !important;
  opacity: 1 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  min-height: 44px;
  padding: 11px 13px;
  box-shadow: none;
}
body .cwgdpr .cwgdpr-sections button:not(.cwgdpr-secondary):hover {
  background: #dcebe2 !important;
  color: #243e34 !important;
}
body .cwgdpr .cwgdpr-sections button[aria-current="step"]:not(.cwgdpr-secondary) {
  background: #285447 !important;
  color: #ffffff !important;
  border-color: #285447 !important;
  font-weight: 600 !important;
}
body .cwgdpr .cwgdpr-sections button span { color: inherit !important; }
body .cwgdpr .cwgdpr-sections button:focus-visible {
  outline: 3px solid #a16a13 !important;
  outline-offset: 2px;
}
body .cwgdpr .cwgdpr-sections { gap: 7px; padding: 10px; }
/* Action labels must not inherit the payment form's button colours. */
body .cwgdpr .cwgdpr-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}
body .cwgdpr .cwgdpr-actions button {
  background: #285447 !important;
  color: #ffffff !important;
  border: 1px solid #285447 !important;
  opacity: 1 !important;
  min-height: 44px;
  padding: 12px 20px;
  font-size: 14px !important;
  line-height: 1.5;
  font-weight: 600;
  white-space: normal;
  max-width: 100%;
}
body .cwgdpr .cwgdpr-actions button.cwgdpr-secondary {
  background: #ffffff !important;
  color: #285447 !important;
  border-color: #68887b !important;
}
body .cwgdpr .cwgdpr-actions button:enabled:hover {
  background: #1e4237 !important;
  color: #ffffff !important;
}
body .cwgdpr .cwgdpr-actions button:disabled {
  background: #e5eae7 !important;
  color: #4d5d55 !important;
  border-color: #b7c3bc !important;
  opacity: 1 !important;
  box-shadow: none;
  cursor: not-allowed;
}
body .cwgdpr .cwgdpr-actions button span { color: inherit !important; }

/* Shared auxiliary controls, including select-all, records and document selection. */
body .cwgdpr button.cwgdpr-secondary,
body .cwgdpr button.cwgdpr-secondary:focus {
 background:#ffffff!important;color:#285447!important;border:1px solid #68887b!important;
 opacity:1!important;min-height:44px;line-height:1.5;font-size:13px!important;
}
body .cwgdpr button.cwgdpr-secondary:enabled:hover {
 background:#dcebe2!important;color:#243e34!important;
}
body .cwgdpr button.cwgdpr-secondary:disabled {
 background:#e5eae7!important;color:#4d5d55!important;border-color:#b7c3bc!important;opacity:1!important;
}
body .cwgdpr button.cwgdpr-secondary span {color:inherit!important;}

body .cwgdpr .cwgdpr-presets button.cwgdpr-secondary,
body .cwgdpr .cwgdpr-row-actions button.cwgdpr-secondary,
body .cwgdpr .cwgdpr-record button.cwgdpr-secondary {
 background:#edf4ef!important;color:#243e34!important;border:1px solid #9fb9aa!important;
 white-space:normal;line-height:1.55;font-size:13px!important;text-align:left;
}

body .cwgdpr .cwgdpr-record-options button.cwgdpr-secondary {background:#fff!important;color:#243e34!important;border:1px solid #68887b!important;opacity:1!important;}
body .cwgdpr .cwgdpr-record-options button.cwgdpr-secondary[aria-pressed=true] {background:#285447!important;color:#fff!important;}
body .cwgdpr .cwgdpr-record label {grid-column:1/-1;}
body .cwgdpr .cwgdpr-record input {min-width:0;width:100%;box-sizing:border-box;}

/* One shared content width: do not repeatedly inset nested service stages. */
body .cw-service-payment,body .cw-questions {
 width:100%!important;max-width:1200px!important;box-sizing:border-box!important;
 margin:32px auto 56px!important;padding:0 24px!important;
}
body .cw-service-payment .cwgdpr,body .cw-questions .cwgdpr {
 width:100%!important;max-width:none!important;padding:0!important;margin:24px 0!important;box-sizing:border-box;
}
body .cwgdpr .cwgdpr-layout {grid-template-columns:220px minmax(0,1fr);gap:24px;width:100%;min-width:0;}
body .cwgdpr .cwgdpr-question-form {width:100%!important;max-width:none!important;min-width:0;box-sizing:border-box;padding:24px!important;margin:0!important;}
body .cwgdpr .cwgdpr-question {width:100%;max-width:none;min-width:0;box-sizing:border-box;padding:16px!important;margin-left:0!important;margin-right:0!important;}
body .cwgdpr .cwgdpr-record {padding:16px;min-width:0;box-sizing:border-box;}
body .cwgdpr .cwgdpr-saving,body .cwgdpr .cwgdpr-company,body .cwgdpr [data-step-progress],body .cwgdpr [data-questions] {min-width:0;box-sizing:border-box;}
body .cw-service-payment .cw-order-form,body .cw-service-payment .cw-order-next {width:100%;max-width:none;margin-left:0;margin-right:0;}
@media(max-width:960px){
 body .cwgdpr .cwgdpr-layout {grid-template-columns:minmax(0,1fr);gap:16px;}
 body .cwgdpr .cwgdpr-sections {display:flex;max-height:none;overflow-x:auto;gap:8px;}
 body .cwgdpr .cwgdpr-sections button {flex:0 0 185px;min-width:0;}
}
@media(max-width:600px){
 body .cw-service-payment,body .cw-questions {padding:0 16px!important;margin:24px auto 40px!important;}
 body .cwgdpr .cwgdpr-question-form {padding:12px!important;}
 body .cwgdpr .cwgdpr-question,body .cwgdpr .cwgdpr-record {padding:12px!important;}
}
