/* Dark theme */

:root {
  --ycf-accent-color: #059ce2;
  --ycf-accent-color-darker: #0483be;
  --ycf-base-text-color: #ffffff;
  --ycf-light-text-color: #aaaebd;
  --ycf-danger-color: #ef325f;
  --ycf-danger-color-lighten: #fff0f0;
  --ycf-danger-color-darker: #ed1245;
  --ycf-base-border-color: #343434;
  --ycf-base-x-spacing: 16px;

  --ycf-form-font-family: inherit;
  --ycf-form-font-family-monospace: 'Consolas', monospace;

  --ycf-form-max-width: 700px;
  --ycf-form-background-color: #191c23;
  --ycf-form-border-width: 1px;
  --ycf-form-border-color: var(--ycf-base-border-color);
  --ycf-form-border-radius: 1rem;
  --ycf-form-title-size: 1.25rem;
  --ycf-form-title-margin-bottom: 1.5rem;
  --ycf-form-group-title-size: 1.125rem;
  --ycf-form-group-title-border-color: var(--ycf-base-border-color);

  --ycf-link-color: var(--ycf-base-text-color);

  --ycf-field-text-color: var(--ycf-base-text-color);
  --ycf-field-placeholder-color: var(--ycf-light-text-color);
  --ycf-field-helper-text-color: var(--ycf-light-text-color);
  --ycf-field-background-color: #25252d;
  --ycf-field-border-color: var(--ycf-base-border-color);
  --ycf-field-border-color-focus: var(--ycf-accent-color);
  --ycf-field-border-width: 1px;
  --ycf-field-border-radius: 0.375rem;
  --ycf-boolean-field-border-color: #404040;
  --ycf-boolean-field-background-color: #30303b;
  --ycf-boolean-field-background-color-checked: var(--ycf-accent-color);
  --ycf-boolean-field-border-radius: 0.25rem;

  --ycf-button-border-radius: 0.5rem;

  --ycf-button-primary-text-color: #fff;
  --ycf-button-primary-background-color: var(--ycf-accent-color);
  --ycf-button-primary-background-color-hover: var(--ycf-accent-color-darker);
  --ycf-button-primary-background-color-disabled: var(--ycf-accent-color-darker);
  --ycf-button-primary-border-color: var(--ycf-accent-color);
  --ycf-button-primary-border-color-hover: var(--ycf-accent-color-darker);
  --ycf-button-primary-border-color-disabled: var(--ycf-accent-color-darker);
  --ycf-button-primary-focus-visible-color: var(--ycf-accent-color-darker);

  --ycf-button-danger-text-color: #fff;
  --ycf-button-danger-background-color: var(--ycf-danger-color);
  --ycf-button-danger-background-color-hover: var(--ycf-danger-color-darker);
  --ycf-button-danger-background-color-disabled: var(--ycf-danger-color);
  --ycf-button-danger-border-color: var(--ycf-danger-color);
  --ycf-button-danger-border-color-hover: var(--ycf-danger-color-darker);
  --ycf-button-danger-border-color-disabled: var(--ycf-danger-color);
  --ycf-button-danger-focus-visible-color: var(--ycf-danger-color-darker);

  --ycf-button-light-text-color: #fff;
  --ycf-button-light-background-color: #343434;
  --ycf-button-light-background-color-hover: #454545;
  --ycf-button-light-background-color-disabled: #25252d;
  --ycf-button-light-border-color: #343434;
  --ycf-button-light-border-color-hover: #454545;
  --ycf-button-light-border-color-disabled: #25252d;
}

/* Overwrites */

:root {
  --ycf-accent-color: #ffffff;
  --ycf-accent-color-darker: rgba(255, 255, 255, 0.7);
  --ycf-light-text-color: #6c757d;
  --ycf-danger-color: #d2383f;
  --ycf-base-border-color: #ced4da;

  --ycf-form-background-color: unset;
  --ycf-form-border-width: 0;
  --ycf-form-border-radius: 0;
  --ycf-form-title-size: 20px;
  --ycf-form-group-title-size: 18px;
  --ycf-form-title-margin-bottom: 24px;
  --ycf-form-group-title-border-color: var(--ycf-base-border-color);

  --ycf-link-color: #e7347f;

  --ycf-field-text-color: var(--ycf-base-text-color);
  --ycf-field-placeholder-color: rgb(255 255 255 / 60%);
  --ycf-field-background-color: #000;
  --ycf-field-border-radius: 0;
  --ycf-boolean-field-border-color: #e0e6f0;
  --ycf-boolean-field-background-color: var(--ycf-link-color);
  --ycf-boolean-field-border-radius: 50%;

  --ycf-button-primary-text-color: #000;
  --ycf-button-border-radius: 0px;

  --ycf-button-light-text-color: #212529;
  --ycf-button-light-background-color: #eaeaea;
  --ycf-button-light-background-color-hover: #dae0e5;
  --ycf-button-light-background-color-disabled: #eaeaea;
  --ycf-button-light-border-color: #eaeaea;
  --ycf-button-light-border-color-hover: #dae0e5;
  --ycf-button-light-border-color-disabled: #f3f3f3;
}

/* outer */

.yepcode-form-wrapper {
  margin-bottom: 32px;
}

.yepcode-form-wrapper>.yepcode-form-outer,
.yepcode-form-wrapper>.yepcode-loading-overlay-root {
  padding: 0 !important;
}

/* form group */

.yepcode-form .form-group {
  margin-bottom: 16px !important;
  font-size: 100%;
}

.yepcode-form .form-group.field.field-object,
.yepcode-form .row {
  margin-bottom: 0 !important;
}

.yepcode-form > .form-group,
.yepcode-form > .form-group > .form-group,
.mb-0.form-group {
  margin-bottom: 0 !important;
}

.yepcode-form .field {
  font-size: normal !important;
}

/* input */

.yepcode-form input[type=email],
.yepcode-form input[type=number],
.yepcode-form input[type=password],
.yepcode-form input[type=text],
.yepcode-form select,
.yepcode-form textarea {
  font-size: 16px !important;
  padding: 8px 10px !important;
}

.yepcode-form input {
  padding: 10px 16px !important;
}

/* label */

.yepcode-form .form-group > .form-label {
  margin: 0 0 4.8px !important;
}

.yepcode-form .form-group > .form-label,
.yepcode-form [id^=root_][id$="__title"] {
  font-size: 13px !important;
  color: #a1a1a1;
}

/* checkbox */

.yepcode-form .field-boolean {
  margin-bottom: 0 !important;
}

.yepcode-form input[type=checkbox] + label {
  line-height: normal !important;
  font-size: 12px !important;
}

.yepcode-form input[type=checkbox] + label::before {
  background-color: transparent !important;
}

.yepcode-form input[type=checkbox]:checked + label::before {
  background-color: var(--ycf-link-color) !important;
}

.yepcode-form .form-check-input:checked ~ .form-check-label::before,
.yepcode-form .form-check-input[type='checkbox']:checked ~ .form-check-label::after {
  border-color: transparent !important;
}

.yepcode-form .form-check-label::before,
.yepcode-form .form-check-label::after {
  width: 16px !important;
  height: 16px !important;
}

.yepcode-form input[type=checkbox] + label {
  font-size: 12px !important;
  line-height: normal !important;
}

.yepcode-form .form-check {
  padding-left: 28px !important;
}

/* button */

.yepcode-form .btn-primary {
  width: 100%;
}

.yepcode-form .btn {
  padding: 12px 24px !important;
  line-height: 15px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
}

/* help text */

.yepcode-form .text-muted {
  font-size: 13px !important;
  line-height: 20px !important;
}

/* danger */

.yepcode-form .form-text {
  margin-top: 4px !important;
  font-size: 13px !important;
}

.yepcode-form .field-error.has-error.has-danger small p {
  margin: .3em 0 .6em !important;
  font-size: 13px !important;
  line-height: normal !important;
}

.yepcode-form .field-error.has-error.has-danger small ul {
  margin: 10px 0 !important;
  font-size: 16px !important;
  padding: 12px 16px !important;
  line-height: normal !important;
}

.yepcode-form .field-error.has-error.has-danger .list-group {
  background-color: transparent !important;
  margin-top: 4px;
  margin-left: 4px;
  margin-bottom: 0;
}

.yepcode-form .field-error.has-error.has-danger .list-group p {
  margin: 0 !important;
}

.yepcode-form .field-error.has-error.has-danger .form-group input {
  border-color: var(--ycf-danger-color) !important;
}

/* link */

.yepcode-form .form-check-label a {
  text-decoration: none;
}