.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9000;  
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
    background: rgba(95,92,92,.6);
}

.custom-modal.auto .modal-content{
    height:auto !important;
    width:520px !important;
}


.modal-sub-options .option.active
{
    background-color: var(--light-grey);
}

.modal-sub-options .option
{
    cursor:pointer;
    text-align: center;
    font-size:13px;
}

.custom-modal-body p
{
    font-size:14px;
}

.modal-sub-options .option:not(:last-child)
{
    border-left:1px solid var(--light-grey);
}

.modal-sub-options 
{
    border-bottom:1px solid var(--light-grey);
}

.custom-modal.medium .modal-dialog
{
    max-width:750px;
}

.custom-modal-body
{
    overflow-y:auto;
    overflow-x:hidden;
}

.custom-modal .btn 
{
    max-width:250px;
}

.custom-modal.error-modal
{
    z-index:9500;
}

.custom-modal-footer
{
    border-top: 1px solid var(--light-border);
    background: var(--light-grey);
    box-shadow: inset 0px 12px 25px -5px #e1dcdc;
    border-radius: 0px 0px 5px 5px;
    overflow: hidden;
}

.custom-modal-header
{
    border-bottom: 1px solid var(--light-border);
    background: linear-gradient(89deg, rgba(0,0,0,1) 0%, rgb(86 17 36) 20%);   
    overflow: hidden;
    font-size: 15px;
    font-weight: bold; 
    padding-bottom:15px !important;
    color: white;
    border-radius: 5px 5px 0px 0px;
    overflow: hidden;
}

.custom-modal-footer, 
.custom-modal-header
{
    padding-left:1.5rem;
    flex-shrink:0;
    padding-right:1.5rem;
    padding-top:10px;
    padding-bottom:10px;
}

.modal-open .custom-modal {
    overflow-x: hidden;
    overflow-y: auto;
    z-index:4000;
}

.modal.fade .modal-dialog {

    transition: -webkit-transform .3s ease-out;
    transition: transform .3s ease-out;
    transition: transform .3s ease-out,-webkit-transform .3s ease-out;
    -webkit-transform: translate(0,-50px);
    transform: translate(0,-50px);

}

.modal.show .modal-dialog {
    -webkit-transform: none;
    transform: none;
}

.fade {
    transition: opacity .15s linear;
}

.custom-modal .modal-button
{
    font-size:13px;
    font-weight:900;
}

.modal-header
{
    justify-content: center;
    color:var(--irri-black);
}

.modal-dialog-centered {

    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;   
    position: fixed;
    width: 100%;
    height: calc(  100% - 3.5rem );
    justify-content: center;
    display: flex;
    align-items: center;
}

.modal-body
{
    overflow:auto;
}

.custom-modal.big .modal-dialog, 
.custom-modal.big .modal-content
{
    max-width:1110px;
}

.custom-modal.big .modal-content 
{
    height:100%;
}

.modal-dialog:has(.big-modal-content)
{
    max-width:700px !important;
}

.modal-content{

    width:96%; 
    background-color:white;   
    max-height: calc( 100% - 20px );
    border-radius:10px;    
    max-height:100%;
    box-shadow: 0px 0px 15px 1px rgba(0,0,0,0.05);

}

.modal.big .modal-content
{
    overflow:auto;
}

.modal.big .modal-content,
.modal.big .modal-dialog
{
    max-width:96%;
    max-height: 96%;
}

.custom-modal .cancel:hover{

        color:white;
        background-color:var(--red) !important;
        border-color:var(--red) !important;
}

.custom-modal .continue{

        background-color:var(--hard_green);
        border-color:var(--green);
        color:var(--button_font_color);
}

.modal-dialog {

    position: relative;
    width: auto;   
    
}

.custom-modal .modal-header{

    text-align: center;
    padding: 10px 20px;
    font-size: 18px;
    background: var(--button_color_hover);
    text-transform: uppercase;
    font-weight: 700;
}

.modal.error .modal-header{

    background:var(--red);

}

.modal.ok .modal-header{

    background:var(--green);

}

.custom-modal .header
{
    padding: 30px 20px;
    font-size:14px;
}

.custom-modal .modal-body{

    padding:30px 20px;
    font-size:14px;
    text-align:center;
    background: var(--sfondo);

}

.custom-modal .modal-body p
{
    padding: 20px 10px;
}

.custom-modal .modal-actions{

    padding:10px;
    border-top:1px solid rgba(0,0,0,0.1); 
    display:flex;
    justify-content:flex-end;
}

.custom-modal .modal-actions-load{

    padding:10px;
    border-top:1px solid rgba(0,0,0,0.1); 
    
}

.custom-modal .modal-actions-load img{

    height:50px;
    
}

.custom-modal .modal-actions div{

        margin-top:0px;     
        margin-left:10px;
}

.custom-modal .modal-actions a{

    margin-top:0px;
    width:auto;
    padding:0px 30px;
}

.mini-modal{
       
    width: 90%;
    max-width: 400px;
    border-radius: 7px;
    z-index: 9999;
    position: fixed;
    bottom: 40px;
    right: 40px;       
    font-size: 15px;
    box-shadow: 0px 0px 21px 11px #0000000d;
    color: var(--black);
    cursor: pointer;
    background: white;

}

.mini-modal-container{

    overflow:hidden;
    border-radius:7px;

}

.mini-modal .text,
.mini-modal .mini-modal-header,
.mini-modal .tip
{

    width:100%;
    text-align:center;

}

.mini-modal .text{
   
    padding:25px;
    text-align:center;   
    font-size:13px;

}

.mini-modal .tip
{

    font-size:9px;
    font-weight:700;
    text-align:right;
    padding:5px 10px;

}

.mini-modal .mini-modal-header{


    border-bottom:1px solid white;
    font-size: 16px;
    padding: 8px 20px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 700;
    background-color: var(--brand) !important;
    color:white;

}

@media( max-width:768px )
{
    .modal-content
    {
        max-height: calc( 100% - 120px );
    }
}



