/**
 * Gov.co (https://www.gov.co) - Gobierno de Colombia
 *  - Componente: Opcion de seleccion
 *  - Version: 4.0.0
 */

/* WorkSans-Regular */
@font-face {
  font-family: 'WorkSans-Regular';
  src: url('../assets/fonts/Work_Sans/static/WorkSans-Regular.ttf');
}

html {
  font-size: 100%; /* 100% = 16px */
}

/* checkbox */
.checkbox-seleccion-govco {
  display: block;
  cursor: pointer;
}
 
.checkbox-seleccion-govco label {
 font-size: 16px;
 color: #4b4b4b;
 font-family: WorkSans-Regular;
}

.checkbox-seleccion-govco input[type="checkbox"] + label {
  color: #4B4B4B;
  font-size: 16px;
  cursor: pointer;
}

.checkbox-seleccion-govco input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  margin: 0;
  font: inherit;
  color: #3366CC;
  width: 1.25rem;
  height: 1.25rem;
  border: 0.188rem solid #3366cc;
  transform: translateY(-0.075em);
  border-radius: 0.25rem;
  display: inline-grid;
  place-content: center;
  float: left;
  margin-right: 0.5em;
  margin-top: 0.25em;
  position: relative!important;
  opacity: 1!important;
  cursor: pointer;
}

.checkbox-seleccion-govco input[type="checkbox"]:checked::after {
  content: "";
  margin: 0;
  padding: 0;
  display: block;
  position: absolute;
  top: 0;
  left: 0.188rem;
  width: 0.438rem;
  height: 0.813rem;
  border: solid #ffffff;
  border-width: 0 0.188rem 0.188rem 0;
  transform: rotate(45deg);
  border-radius: 0.125rem;
}

.checkbox-seleccion-govco input[type="checkbox"]:not(:checked), 
.checkbox-seleccion-govco input[type="checkbox"]:checked {
  pointer-events: auto!important;
}

.checkbox-seleccion-govco input[type="checkbox"]:checked {
  background-color: #3366CC;
}

.checkbox-seleccion-govco input[type="checkbox"]:focus-visible {
  outline: max(0.125rem, 0.15em) solid #000000;
  outline-offset: max(0.125rem, 0.15em);
}

.checkbox-seleccion-govco input[type="checkbox"]:disabled {
  border: 0.188rem solid #737373;
}

.checkbox-seleccion-govco input[type="checkbox"]:checked:disabled {
  background-color: #737373;
}

.checkbox-seleccion-govco input[type="checkbox"]:disabled + label {
  color: #737373;
}

/* switch */
.switch-seleccion-govco {
 margin: 0;
 padding: 0;
 display: block;
 margin-bottom: 0.938rem;
 display: flex;
 align-items: center;
 display: block;
}
 
.switch-seleccion-govco label {
 font-size: 16px;
 color: #4b4b4b;
 font-family: WorkSans-Regular;
}

.switch-seleccion-govco input {
 margin-top: 0.563rem;
 padding: 0;
 margin: 0!important;
 cursor: pointer;
 border: 0.063rem solid #3366cc;
 height: 1.25rem;
 width: 2.25rem !important;
 position: relative!important;
 opacity: 1!important;
 background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3.8' fill='rgba(51, 102, 204)'/></svg>") !important;
}

.switch-seleccion-govco input:checked {
 background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3.8' fill='%23fff'/></svg>") !important;
 background-color: #3366cc;
 border: 0.063rem solid #3366cc;
}

.switch-seleccion-govco input:disabled {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3.8' fill='%23737373'/></svg>") !important;
  background-color: #BABABA;
  border: 0.063rem solid #737373;
}

.switch-seleccion-govco input:checked:disabled {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3.8' fill='%23fff'/></svg>") !important;
  background-color: #737373;
}

.switch-seleccion-govco input:disabled + label {
  color: #737373;
}

.switch-seleccion-govco input:focus-visible {
  outline: 0.125rem solid black;
  outline-offset: 0.188rem;
  box-shadow: none !important;
}

.switch-seleccion-govco label {
 margin: 0;
 padding: 0;
 position: relative;
 cursor: pointer;
 margin-bottom: 0;
 display: initial;
 margin-left: 0.5rem;
 font-size: 16px;
}

/* Radio button */
.radio-seleccion-govco {
  margin-bottom: 0.125rem;
}

.radio-seleccion-govco input[type="radio"] + label {
  color: #4B4B4B;
  font-size: 16px;
  font-family: WorkSans-Regular;
  margin: 0;
  line-height: 1.375rem;
  cursor: pointer;
}

.radio-seleccion-govco input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  margin: 0;
  font: inherit;
  color: #3366CC;
  width: 1.15em;
  height: 1.15em;
  border: 0.1667rem solid #3366cc;
  border-radius: 50%;
  transform: translateY(-0.075em);
  display: inline-grid;
  place-content: center;
  float: left;
  margin-right: 0.5em;
  margin-top: 0.25em;
  position: relative!important;
  opacity: 1!important;
}

.radio-seleccion-govco input[type="radio"]:hover {
  border: 0.15em solid #004884;
}

.radio-seleccion-govco input[type="radio"]:disabled {
  border: 0.15em solid #737373;
}

.radio-seleccion-govco input[type="radio"]:disabled + label {
  color: #737373;
}

.radio-seleccion-govco input[type="radio"]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em #3366CC;
}

.radio-seleccion-govco input[type="radio"]:hover::before {
  box-shadow: inset 1em 1em #004884;
}

.radio-seleccion-govco input[type="radio"]:disabled::before {
  box-shadow: inset 1em 1em #737373;
}

.radio-seleccion-govco input[type="radio"]:checked::before {
  transform: scale(1);
}

.radio-seleccion-govco input[type="radio"]:focus-visible {
  outline: max(0.125rem, 0.15em) solid #000000;
  outline-offset: max(0.125rem, 0.15em);
}

.radio-seleccion-govco input[type="radio"]:not(:checked), 
.radio-seleccion-govco input[type="radio"]:checked {
  pointer-events: all !important;
  cursor: pointer;
}
