﻿.modal {
    transition: opacity 0.15s linear;
    width: 100% !important;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.modal input {
    height: 40px;
    border: 1px solid #CBC9C9;
    border-radius: 4px;
    background-color: #FFFFFF;
    font-family: "NunitoSans Regular";
    font-size: 16px !important;
    padding-left: 10px;
    color: #333F48;
    width: 100%;
}

.modal p {
    min-height: 40px;
    color: #333F48;
    font-size: 14px;
    margin-bottom: 0;
}

.modal .modal-button-section button {
    width: 190px;
    height: 40px;
}

.modal .modal-button-section > div:not(:only-child) > button {
    width: 100%;
}

.modal-dialog {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow-y: initial !important;
}

.modal-body-section {
    max-height: calc(100vh - 35vh);
    overflow-x: hidden;
    overflow-y: auto;
    margin-left: 5px;
    margin-right: 5px;
    padding-left: 35px;
    padding-right: 35px;
    scrollbar-color: #333F48 #CBC9C9;
    scrollbar-width: thin;
}

.modal-body-section::-webkit-scrollbar-track
{
    -webkit-box-shadow: inset 0 0 1px rgba(0,0,0,0.3);
    border-radius: 2px;
    background-color: #CBC9C9;
}

.modal-body-section::-webkit-scrollbar
{
    width: 4px;
    background-color: #CBC9C9;
}

.modal-body-section::-webkit-scrollbar-thumb
{
    border-radius: 2px;
    -webkit-box-shadow: inset 0 0 1px rgba(0,0,0,.3);
    background-color: #333F48;
}

.modal-container {
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center !important;
    align-items: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    min-height: 100vh;
    padding-bottom: 56px;
}

.modal .modal-header {
    border: 0 !important;
    height: 40px;
}

.modal .modal-header .close > span:hover{
    color: #777777;
}

.modal .modal-body {
    padding-top: 0 !important;
    padding-bottom: 40px;
    padding-left: 0;
    padding-right: 0;
}

.modal-body-content-section {
    padding-top: 16px;
    padding-bottom: 32px;
}

.modal-body-content-section.body-input-form {
    padding-top: 32px;
}

.modal .modal-content {
    border-radius: 0 !important;
}

.modal textarea {
    border-radius: 4px;
}

.modal-button-section {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    margin-left: -15px;
    margin-right: -15px;
}

.modal-button-section .btn-vascopay-primary-link.text-left {
    padding-left: 0;
    padding-right: 0;
}

.form-group {
    margin-bottom: 16px;
}

.modal input[disabled], input[disabled]:hover,
.modal select[disabled], select[disabled]:hover {
    background-color:#F8F8F8 !important; 
    color: #979797;
}

.modal select[disabled], select[disabled]:hover {
    background: transparent url("../Content/icon/arrow-down-disabled.svg") no-repeat right 16px center;
}

.modal .input-group {
    margin-bottom: unset;
}

.modal select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 2px 30px 2px 8px;
    border: 1px solid #CBC9C9;
    border-radius: 4px;
    background: transparent url("../Content/icon/arrow-down.svg") no-repeat right 16px center;
    height: 40px;
}

.modal input::-webkit-input-placeholder,
.modal input::-ms-input-placeholder,
.modal input::placeholder,
.modal textarea::-webkit-input-placeholder,
.modal textarea::-ms-input-placeholder,
.modal textarea::placeholder{
    color: #979797;
    font-size: 16px;
    font-family: "NunitoSans Regular";
}

.ui-datepicker.ui-widget.ui-widget-content.ui-helper-clearfix.ui-corner-all {
    z-index: 1051 !important;
}

@media (max-width: 575px) {
    .popup-modal .modal-content {
        width: unset;
        height: unset;
    }
    
    .modal .modal-button-section button {
        text-align: center !important;
    }

    .modal .modal-button-section > div:not(:only-child):first-child {
        padding-bottom: 0.5rem !important;
    }
}

@media (max-width: 767px) {
    .popup-modal .modal-content {
        width: unset;
        height: unset;
    }
}

@media (min-width: 768px) {
    .modal-dialog {
        max-width: 600px;
        margin: 30px auto;
    }
    
    .modal-lg,
    .modal-xl {
        width: 80%;
    }
}

@media (min-width: 992px) {
    .modal-lg {
        max-width: 850px;
    }
    
    .modal-xl {
        max-width: 900px;
    }
    
    .modal-xl {
        width: 90%;
    }
}

@media (min-width: 1200px) {
    .modal-lg {
        max-width: 1000px;
    }
    
    .modal-xl {
        width: 95%;
        max-width: 1200px;
    }
}
