
/**
FORM
 */
.tcs-cms-form-row {
  margin-bottom: 1rem;
}
.tcs-cms-form-row label {
  width: 100%;
}
.tcs-cms-form-row label .form-control {
  margin-top: 0.5rem;
}
.hide-layout {
  visibility: hidden;
  height: 0;
}
.tcs-form-input[data-has-error=true] {
  border-color: #BF2D2F;
}
.tcs-submit-error {
  margin-top: 0.5rem;
  color: #BF2D2F;
  display: none;
}
.tcs-error-show {
  display: block !important;
}
.tcs-submit-button {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}
.tcs-submit-button svg {
  height: 2em;
  margin: -0.5rem 0;
}
.tcs-submit-clickable {

}
.tcs-submit-processing,
.tcs-submit-success {
  display: none;
}
.btn:disabled {
  color: var(--btn-color);
}


/*
Toggles input
 */
.tcs-toggles-input {
  position: relative;
}

.tcs-toggles-input legend {
  font-size: 1rem;
}

.tcs-toggles-input-options {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
}

.tcs-toggles-input-option {
  box-sizing: border-box;
  width: 168px;
  min-width: 168px;
  min-height: 168px;
  aspect-ratio: 1 / 1;
  height: auto;
  align-self: flex-start;
  position: relative;
  padding: 0;
}

@media (max-width: 986px) {
  .tcs-toggles-input-options {
    flex-wrap: wrap;
  }
  .tcs-toggles-input-option {
    flex: 0 0 120px;   /* start at 200px; allow flex shrinking */
    min-width: 120px;
    min-height: 120px;
  }
  .tcs-toggles-input-option-content label {
    font-size: 0.9rem;
    line-height: 1.1rem;
  }
}
@media (max-width: 440px) {
  .tcs-toggles-input-options {
    position: relative;
    width: 100%;
    gap: 4%;
    row-gap: 12px;
  }
  .tcs-toggles-input-option {
    flex: 0 0 48%;
    min-width: 48%;
    min-height: 48%;
  }
  .tcs-toggles-input-option-content label {
    font-size: 0.9rem;
    line-height: 1.1rem;
  }
}

.tcs-toggles-input-option input[type=checkbox] {
  appearance: none;
  width: 100%;
  height: 100%;
  position: absolute;
  cursor: pointer;
  z-index: 2;
  background: none;
}

.tcs-toggles-input-option input[type=checkbox]:hover {
  background: rgba(237, 211, 142, 0.3);
}

.tcs-toggles-input-option input[type=checkbox]:checked {
  border-bottom: 2px solid var(--bs-primary)
}

.tcs-toggles-input-option-content {
  z-index: 1;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  user-select: none;
  padding: 5% 5% 0;
  gap: 8px;
  fill: #64696d;
}
.tcs-toggles-input-option-content img,
.tcs-toggles-input-option-content svg {
  height: 40%;
}
.tcs-toggles-input-option-content label {
  height: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.col-md-6 .tcs-toggles-input-option-content label {

}
.col-md-12 .tcs-toggles-input-option-content label {

}

.tcs-toggles-input-option input[type=checkbox]:checked + .tcs-toggles-input-option-content {
  background-color: var(--btn-primary-background);
  color: var(--btn-primary-foreground);
  fill: var(--btn-primary-foreground);
  border-color: var(--btn-primary-glow);
}
.tcs-toggles-input-option input[type=checkbox]:checked {
  border-color: var(--btn-primary-glow);
}

.tcs-toggles-input-option-content label {
  text-align: center;
}

/**
TCS Checkbox input
 */
.tcs-checkbox-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.tcs-checkbox-wrapper label {
  margin: 0;
  cursor: pointer;
}
.tcs-checkbox-wrapper + .form-subline {
  margin-top: 0.25rem;
}
.tcs-checkbox-input {
  width: 24px !important;
  height: 24px !important;
  padding: 0;
  float: left;
  margin-right: 0.5rem;
  position: relative;
  cursor: pointer;
}
.tcs-checkbox-svg {
  position: absolute;
  left: 2px;
  width: 20px;
  height: 20px;
}
.tcs-checkbox-input:hover {
  background: rgba(237, 211, 142, 0.3);
}

.tcs-checkbox-input:checked {
  background-color: var(--btn-primary-background);
  border-color: var(--btn-primary-glow);
}

.tcs-checkbox-input:checked::after {
  content: "+";
  font-size: 24px;
  position: absolute;
  right: 5px;
  top: 3px;
  transform: rotate(45deg);
}

.regex-hidden {
  display: none;
}
.regex-error {
  color: #BF2D2F;
}
