/* Estilos da Modal */
.custom-payment-modal-content {
    padding: 24px 42px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-height: 98%;
    width: 48%;
    overflow-y: auto;
}

/* Nova camada de fundo personalizada */
.custom-payment-modal-backdrop.fade.in {
    position: relative;
    top: -1170px;
    left: -200%;
    width: 4200px;
    height: 3800px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* Estilos adicionais para garantir compatibilidade */
body.custom-payment-modal-open {
    overflow: hidden; /* Impede a rolagem da página principal enquanto o modal está aberto */
}

.custom-payment-modal-header {
    padding: 12px 0 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

.custom-payment-modal-header button {
    color: rgba(0, 0, 0, 0.5);
    font-size: 40px;
    font-weight: 600;
    margin: -12px -36px;
}
.custom-payment-modal-header button:hover {
    color: rgba(52, 166, 191, 1);
    background: none;
}

@media (max-width: 993px) {
    .custom-payment-modal-content {
        width: 95%; /* Ocupa quase toda a largura da tela em dispositivos pequenos */
        max-width: none; /* Remove o limite máximo de largura */
    }
}

.close{
    float: right;
}

.custom-payment-modal-discount {
    display: inline-block;
    padding: 6px 12px !important;
    background-color: #E98F96; 
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
}

/* Estilos das Linhas */
.custom-payment-modal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-payment-modal-row div:first-child{
    text-align: left;
    padding-left: 24px;
}
.custom-payment-modal-row div:last-child{
    padding-right: 24px;
}
.custom-payment-modal-row div{
    text-align: right;
    padding: 4px;
    margin: 4px 0;
}

.custom-payment-modal-col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.custom-payment-modal-col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Cores de Fundo Alternadas */
.custom-payment-modal-bg-gray {
    background-color: #F5F5F5; /* Cinza claro para linhas alternadas */
}

.custom-payment-modal-bg-transparent {
    background-color: transparent;
}

/* Estilos dos Ícones */
.custom-payment-modal-icon {
    vertical-align: middle;
    margin-right: 8px;
    color: #555; /* Cor dos ícones */
}

/* Estilos do Rodapé da Modal */
.custom-payment-modal-footer {
    border-top: 1px solid #E0E0E0;
    padding-top: 16px;
    margin-top: 16px;
    text-align: right;
}

/*.custom-payment-modal-footer .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}*/

.custom-payment-modal-info{
    margin: 24px 0;
}

.modal-backdrop.in{
    display: none;
}