.intl-tel-input {
    max-width: 180px;
}

.intl-tel-input .country-list {
    border-radius: 5px;
}

input:focus {
    outline: none
}

input[type="password"] {
	-webkit-text-security:disc;
}

input:not([type="checkbox"]) {
    font-size: 1rem;
    border: 1px solid var(--gray);
    border-radius: 10px;
    min-width: max-content;
    max-width: 600px;
    min-height: 36px !important;
    padding: 7px;
    width: 100%;
}

input[readonly]:not([type="file"]),
select[readonly],
textarea[readonly],
input:disabled,
select:disabled,
textarea:disabled {
    background-color: var(--gray-light-3);
    border-color: var(--gray) !important;
    cursor: default;
    pointer-events: none !important;
}

input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
  height: 16px;
  width: 16px;
  transition: all 0.15s ease-out 0s;
  background: var(--gray-light-2);
  border: none;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  outline: none;
  z-index: calc(var(--low-level) - 2);
  border-radius: 3px;
}

input[type="checkbox"]:hover {
  background: var(--gray-light);
}

input[type="checkbox"]:checked {
  background: var(--blue);
}

input[type="checkbox"]:checked::before {
  width: 16px;
  height: 16px;
  display:flex;
  content: '\f00c';
  font-size: 10px;
  font-weight:bold;
  position: absolute;
  align-items:center;
  justify-content:center;
  font-family:'Font Awesome 5 Free';
}

input[type="checkbox"]:checked::after {
  background: var(--blue);
  content: '';
  display: block;
}

.input-file {
    background-color: unset !important; 
    border: none;
    color: var(--black-light);
    border: 1px solid var(--gray-dark);
    padding: 8px !important;
    cursor: pointer !important;
    border-radius: 10px !important;
    display: flex;
    align-items: center;
    position: relative;
}

.input-file::file-selector-button {
    color: var(--white);
    background: var(--black-light);
    border: none;
    border-radius: 8px;
    padding: 8px;
    text-transform: uppercase;
    font-size: 0.7em;
    cursor: pointer !important;
    position: absolute;
    right: 0px;
    top: 3px;
    transition: all 0.25s;
}

.input-file:hover::file-selector-button {
    background-color: var(--gray-dark);
    transition: all 0.25s;
}

input::-webkit-input-placeholder {
    color: var(--gray-light) !important;
}

input[type="color"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 80px;
    height: 80px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0px;
}

input[type="color"]::-webkit-color-swatch {
    border-radius: 15px;
    border: 3px solid var(--gray-light-2);
}

input[type="color"]::-moz-color-swatch {
    border-radius: 15px;
    border: none;
}

input:focus {
    outline: none
}

textarea {
    padding: 7px;
    border: 1px solid var(--gray);
    border-radius: 10px;
    width: 100%;
    min-height: 36px !important;
    max-height: 350px !important;
    max-width: 600px;
    resize: vertical;
}

select {
    font-size: 1rem;
    padding: 7px;
    border: 1px solid var(--gray);
    border-radius: 10px;
    width: 100%;
    min-height: 36px !important;
    max-width: 600px;
}

select>option {
    border-radius: 3px;
}

input:required,
textarea:required,
select:required {
    border-left: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
}

input[readonly]:required,
textarea[readonly]:required,
select[readonly]:required,
input:disabled:required,
textarea:disabled:required,
select:disabled:required {
    border-left: 2px solid var(--gray) !important;
    border-right: 2px solid var(--gray) !important;
}

.invalid-field {
    border-color: var(--orange) !important;
}

@media only screen and (max-width: 600px) {
    textarea,
    input,
    select {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .input-addon > textarea,
    .input-addon > input,
    .input-addon > select {
        min-width: auto !important;
    }
}

input[type='date'] {
    max-width: 100px !important;
}

.input-addon {
    border: 1px solid var(--gray);
    border-radius: 5px;
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
}

.input-addon > input:read-only,
.input-addon > input {
    border: none !important;
}

.input-addon > *:first-child.addon{
    border-radius: 4px 0px 0px 4px;    
}

.input-addon > *:last-child.addon{
    border-radius: 0px 4px 4px 0px;    
}

.input-addon > *:last-child.addon,
.input-addon > *:first-child.addon{
    background-color: var(--gray-light-3);
    padding: 7px 10px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-addon:has(input:read-only) > *:last-child.addon,
.input-addon:has(input:read-only) > *:first-child.addon{
    background-color: var(--graylight2);
}

.input-addon:has(input:required) {
    border-left: 2px solid var(--primary-color-light);
    border-right: 2px solid var(--primary-color-light);
}

.input-addon:has(input:read-only) {
    border-left: 2px solid var(--gray);
    border-right: 2px solid var(--gray);
}

/* slider */
.slider {
    display: flex;
    align-items: center;
    min-width: 100%;
}

.slider::after {
    color: var(--range-color);
    content: "%";
}

.slider input[type='number'] {
    border: 0px;
    width: 45px;
    text-align: right;
    color: var(--range-color);
    -moz-appearance: textfield;
}

.slider input[type='number']::-webkit-inner-spin-button,
.slider input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.slider input[type="range"] {
    padding: 0px;
    -webkit-appearance: none !important;
    height: 2px;
    background: var(--range-color);
    border: none;
    outline: none;
}

.slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width: 15px;
    height: 15px;
    background: var(--range-color);
    border: 2px solid var(--white);
    border-radius: 50%;
    cursor: pointer;
}

.slider input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--range-color);
}


/* radio */

.radio-container {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.radio-container.center{
    justify-content: center;
}

.radio-container.right{
    justify-content: right;
}

.radio-container.space-between{
    justify-content: space-between;
}

.radio-container.space-around{
    justify-content: space-around;
}

.radio-container label {
    display: flex;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.radio-container label input {
    position: absolute;
    left: -9999px;
}

.radio-container label input:checked+span {
    background-color: color-mix(in srgb, var(--white) 90%, var(--radio-color));
    border: 1px solid color-mix(in srgb, var(--white) 60%, var(--radio-color));
    color: var(--radio-color) !important;
    pointer-events: none;
}

.radio-container label input:checked+span:before {
    box-shadow: inset 0 0 0 0.6em var(--radio-color);
}

.radio-container label:has(input:checked),
.radio-container label:has(input[readonly]){
    pointer-events: none;
}

.radio-container label input[readonly]+span,
.radio-container label input:disabled+span {
    color: var(--gray) !important;
    cursor: default !important;
    pointer-events: none;
}

.radio-container label input[readonly]+span:before,
.radio-container label input:disabled+span:before {
    box-shadow: inset 0 0 0 0.2em var(--gray-light-4);
    pointer-events: none;
}

.radio-container label input[readonly]:checked+span,
.radio-container label input:disabled:checked+span {
    background-color: var(--gray-light-4);
    border: 1px solid var(--gray);
    color: var(--gray-dark) !important;
    pointer-events: none;
}

.radio-container label input[readonly]:checked+span:before,
.radio-container label input:disabled:checked+span:before {
    box-shadow: inset 0 0 0 0.6em var(--gray-dark);
    pointer-events: none;
}

.radio-container label span {
    display: flex;
    align-items: center;
    border-radius: 99em;
    transition: 0.25s ease;
    padding: 7px;
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--gray-dark-2);
    background-color: var(--gray-light-3);
    border: 1px solid var(--gray-light-2);
}

.radio-container:not(.wordless) label span {
    padding: 10px 15px;
}

.radio-container label span:before {
    display: flex;
    flex-shrink: 0;
    content: "";
    background-color: var(--white);
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    transition: 0.25s ease;
    box-shadow: inset 0 0 0 0.2em var(--gray-dark);
}

.radio-container:not(.wordless) label span:before {
    margin-right: 10px;
}

/* toggle */

label:has(> .switch-toggle) {
    display: flex;
    gap: 5px;
    align-items: center;
}

.switch-toggle input[type=checkbox],
.switch-toggle input[type=radio] {
    height: 0;
    width: 0;
    visibility: hidden;
    position: absolute;
    pointer-events: auto;
}

.switch-toggle label {
    cursor: pointer;
    text-indent: -9999px;
    width: 40px;
    height: 20px;
    background: var(--gray-light);
    display: block;
    border-radius: 100px;
    position: relative;
    font-size: 10px;
    border: 1px solid var(--gray-light);
}

.switch-toggle label:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: var(--white);
    border-radius: 90px;
    transition: 0.3s;
}

.switch-toggle label:has(> input:checked),
.switch-toggle label:has(> input:checked+input),
.switch-toggle input:checked+label,
.switch-toggle input:checked+input+label {
    background: var(--toggle-color);
    border: 1px solid var(--toggle-color);
}

.switch-toggle label:has(> input[readonly]),
.switch-toggle label:has(> input[readonly]+input),
.switch-toggle label:has(> input:disabled),
.switch-toggle label:has(> input:disabled+input),
.switch-toggle input[readonly]+label,
.switch-toggle input[readonly]+input+label,
.switch-toggle input:disabled+label,
.switch-toggle input:disabled+input+label {
    background: var(--gray-light-3) !important;
    border: 1px solid var(--gray-light-2) !important;
    pointer-events: none !important;
    cursor: default !important;
}

.switch-toggle label:has(> input[checked][readonly]),
.switch-toggle label:has(> input[checked][readonly]+input),
.switch-toggle label:has(> input[checked]:disabled),
.switch-toggle label:has(> input[checked]:disabled+input),
.switch-toggle input[checked][readonly]+label,
.switch-toggle input[checked][readonly]+input+label,
.switch-toggle input[checked]:disabled+label,
.switch-toggle input[checked]:disabled+input+label {
    background: var(--primary-color-light) !important;
    border: 1px solid var(--primary-color-light) !important;
}

.switch-toggle label:has(> input):before,
.switch-toggle label:has(> input+input):before,
.switch-toggle input+label:before,
.switch-toggle input+input+label:before {
    position: absolute;
    top: 5px;
    left: 35px;
    width: 16px;
    height: 16px;
    border-radius: 90px;
    transition: 0.3s;
    text-indent: 0;
    color: var(--white);
}

.switch-toggle label:has(> input:checked):before,
.switch-toggle label:has(> input:checked+input):before,
.switch-toggle input:checked+label:before,
.switch-toggle input:checked+input+label:before {
    position: absolute;
    top: 5px;
    left: 10px;
    width: 16px;
    height: 16px;
    border-radius: 90px;
    transition: 0.3s;
    text-indent: 0;
    color: var(--white);
}

.switch-toggle label:has(> input:checked):after,
.switch-toggle label:has(> input:checked+input):after,
.switch-toggle input:checked+label:after,
.switch-toggle input:checked+input+label:after {
    left: calc(100% - 2px);
    transform: translateX(-100%);
}

.switch-toggle label:active:after {
    width: 16px;
}

.toggle-switchArea {
    margin: 10px 0 10px 0;
}

.switch-toggle.contrast label:has(> input:checked),
.switch-toggle label:has(> input:checked+input),
.switch-toggle.contrast input:checked+label,
.switch-toggle input:checked+input+label {
    border: 1px solid var(--white);
}


/* switch-field */

.switch-field {
	display: flex;
	overflow: hidden;
    min-width: fit-content;
}

.switch-field input {
	position: absolute !important;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	width: 1px;
	border: 0;
	overflow: hidden;
}

.switch-field label {
	background-color: var(--gray-light-3);
	color: rgba(0, 0, 0, 0.6);
	text-align: center;
	border: 1px solid var(--gray-light-2);
	transition: all 0.25s;
    padding-inline: 15px;
    min-height: 36px;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    line-height: 0.8rem;
}

.switch-field label:hover {
	cursor: pointer;
}

.switch-field input:checked + label {
	background-color: var(--primary-color);
	border: 1px solid var(--primary-color);
	box-shadow: none;
    color: var(--white);
    pointer-events: none;
}

.switch-field input:disabled + label {
    cursor: default;
    pointer-events: none;
}

.switch-field input:disabled:checked + label {
    background-color: var(--gray-light);
	border: 1px solid var(--gray-light);
    color: var(--gray-dark);
}

.switch-field label:first-of-type {
	border-radius: 8px 0 0 8px;
}

.switch-field label:last-of-type {
	border-radius: 0 8px 8px 0;
}

/* picture ------------- */
.picture-area {
    max-width: fit-content;
    display: grid;
    gap: 10px;
}

.picture-content {
    padding: 10px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--gray-light-2);
    height: 250px;
    width: 250px;
}

.picture-main {
    background-position: center;
    background-repeat: no-repeat;
    height: 226px;
    width: 226px;
    border-radius: 50%;
    cursor: pointer !important;
    background-color: var(--gray-light-2);
}

.picture-change {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.8;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    text-align: center;
}

.picture-change * {
    font-size: 0.8rem !important;
}

.picture-content.rectangle {
    border-radius: 40px;
    height: 200px;
    width: 350px;
}

.picture-content.rectangle .picture-main {
    height: 175px;
    width: 325px;
    border-radius: 30px;
}

.picture-content.rectangle .picture-change {
    border-radius: 30px;
}

.picture-change>div div:first-child {
    font-size: 1.5rem;
    color: var(--white);
}

.picture-change>div div:last-child {
    margin-top: 5px;
    font-size: 1rem;
    color: var(--white);
}

.picture-main:hover .picture-change {
    display: grid;
}

.search-tab {
    margin-bottom: 5px;
}

.search-tab input {
    border-radius: 8px !important;
}

/* 
    elementos de formularios ajustes apenas em < 600 devido a iframes 
*/
@media only screen and (max-width: 1080px) {
    .radio-container label span {
        font-size: 0.8rem;
    }
}

