/* CITY PIXELS SITE-WIDE INLINE FORM VALIDATION */
.cp-field-error,
.cp-form-action-error {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 93, 139, 0.78);
  border-radius: 10px;
  background: rgba(255, 93, 139, 0.12);
  color: #ffd7e3;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cp-field-error[hidden],
.cp-form-action-error[hidden] {
  display: none !important;
}

label > .cp-field-error,
fieldset > .cp-field-error,
.cp-has-field-error > .cp-field-error {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
}

.cp-has-field-error input:not([type="checkbox"]):not([type="radio"]),
.cp-has-field-error select,
.cp-has-field-error textarea,
[aria-invalid="true"]:not([type="checkbox"]):not([type="radio"]) {
  border-color: rgba(255, 93, 139, 0.88) !important;
  box-shadow: 0 0 0 2px rgba(255, 93, 139, 0.14) !important;
}

.cp-has-field-error input[type="checkbox"],
.cp-has-field-error input[type="radio"],
input[type="checkbox"][aria-invalid="true"],
input[type="radio"][aria-invalid="true"] {
  outline: 2px solid rgba(255, 93, 139, 0.88);
  outline-offset: 2px;
}

.cp-validation-action-host {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: min(100%, 560px);
  vertical-align: top;
}

.cp-validation-action-host > .cp-form-action-error {
  width: 100%;
  text-align: left;
}

[data-cp-action-error-host] > .cp-form-action-error {
  width: 100%;
}

@media (max-width: 680px) {
  .cp-validation-action-host {
    width: 100%;
  }
}
