/* Estilos Gerais */
.fatoripay-container {
    max-width: 500px !important;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.fatoripay-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.fatoripay-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
}

.fatoripay-header p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}


#divErro {
    display: none;
    background-color: #ffcccc;
    color: #cc0000;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

/* Seção de Valor Total */
.valor-total {
    margin: 2rem 0;
    text-align: center;
}

.total-box-title {
    font-size: 1.2rem !important;
    color: #444;
    margin: 0 0 0.5rem 0;
}

.total-box {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    padding: 1rem 2rem;
    border-radius: 8px;
    display: inline-block;
    margin: 0.5rem 0;
}

/* Formulário de Cartão de Crédito */
.creditcard-form {
    margin: 2rem 0;
}

.input-section {
    margin-bottom: 1.5rem;
}

.input-section label {
    font-size: 1rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-input,
#installments {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-family: inherit;
}

.card-input::placeholder {
    color: #aaa;
}

/* Linha de dois campos */
.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .input-section {
    flex: 1;
}

/* Botão de Pagamento */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}


.button:hover {
    filter: brightness(0.9);
}

/* Segurança */
.security-info {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
    background: #00000014;
    border-radius: 5px;
    padding: 10px;
}

.security-info .lock-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Responsividade */
@media (max-width: 600px) {
    .fatoripay-container {
        margin: 1rem;
        padding: 1rem;
    }

    .total-box {
        font-size: 2rem;
        padding: 0.75rem 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .button-group {
        flex-direction: column;
    }

    .button {
        justify-content: center;
    }
}

/* loading */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-disabled {
    pointer-events: none;
    opacity: 0.5;
}

.success-box {
    margin: 2rem 0;
    text-align: center;
    border: 1px solid #4BB543;
    border-radius: 8px;
    padding: 1rem;
    background-color: #f6fff6;
}

.success-icon {
    font-size: 3rem;
    color: #4BB543;
    margin-bottom: 1rem;
}

.payment-success-box {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    border: 2px solid #4BB543; /* Verde para destacar o sucesso */
    border-radius: 5px;
    background-color: #f6fff6; /* Fundo leve para destacar também */
}

.green-check-icon {
    font-size: 60px;
    color: #4BB543; /* Verde de "sucesso" */
    margin-bottom: 10px;
}

#fatoripay-creditcard-form .input-group{
position: relative;
}

#cardBrand{
    position: absolute;
    right: 10px;
    display: flex;
}
#cardBrandIcon{
    height: 24px;
}