/**
 * Estilos para o botao de upload personalizado
 */

/* Ocultar o input nativo do JetFormBuilder */
.original-upload-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

/* Estilo para o botao personalizado */
.custom-upload-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: #1f4bff;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    outline: none;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: -24px;
    gap: 8px;
	position: absolute;
    right: 0px;
	top: 15px;
}

.custom-upload-button svg {
    width: 25px;
    height: 25px;
    fill: #03a9f4;
}

.custom-upload-button:hover,
.custom-upload-button:focus {
    color: #0f2acc;
    border-color: rgba(15, 42, 204, 0.6);
	transform: scale(0.95);
}

.jet-form-builder__field-wrap input[name="perfil_img"] {
    position: relative;
}

.custom-upload-button:focus-visible {
    outline: 2px solid rgba(31, 75, 255, 0.45);
    outline-offset: 4px;
}



/* Estilo para o botao personalizado */
.custom-upload-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0px;
}

.custom-remove-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: red;
    background-color: red;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
	position: absolute;
    right: 0px;
    top: 45px;
}

.custom-remove-button.is-visible {
    display: inline-flex;
}

.custom-remove-button svg {
    width: 22px;
    height: 22px;
    stroke: white;
    fill: none;
}
.custom-remove-button:hover,
.custom-remove-button:focus {
    color: #d13131;
	transform: scale(0.95);
}
.custom-remove-button:focus-visible {
    outline: 2px solid rgba(245, 70, 70, 0.4);
    outline-offset: 4px;
}
