/**
 Simply add .field--widget-options-buttons class to your view mode form display radio and checkbox fields
 No additional Pretty checkbox radio module required.
 */

.field--widget-options-buttons .form-type--checkbox,
.field--widget-options-buttons .form-type--radio {
  display: inline-block;
}
.field--widget-options-buttons .form-type--checkbox input[type="checkbox"],
.field--widget-options-buttons .form-type--radio input[type="radio"] {
  opacity: 0;
  position: absolute;
  display: inline-block;
}

.field--widget-options-buttons .form-boolean-group .form-type--boolean {
  margin-block: 0 !important;
}

.field--widget-options-buttons .form-type--boolean {
  margin-inline-start: 0 !important;
}

.field--widget-options-buttons .form-type--checkbox label,
.field--widget-options-buttons .form-type--radio label {
  position: relative;
  display: inline-block;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin-block: var(--space-s);
  margin-inline: 0 var(--space-s);
  padding: var(--space-xs) var(--space-s);
  font-size: calc(var(--font-size-base) - 1px);
  font-weight: 100;
  line-height: 1rem;
  text-align: center;
  box-shadow: 0px 1px 6px -1px #113399;
  border-radius: var(--button-border-radius-size);
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  transition: all 200ms ease;
  background-color: var( --button-bg-color);
}

.field--widget-options-buttons .form-type--checkbox input[type="checkbox"]:checked + label,
.field--widget-options-buttons .form-type--radio input[type="radio"]:checked + label {
  background-color: var( --color-absolutezero);
  color: white;
}
