#edd_checkout_wrap {
    background: transparent !important;
}

/* Modal do CPF */
#edd-cpf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: auto;
}

.edd-cpf-modal-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.edd-cpf-modal-content h3 {
    margin: 0 0 20px;
    color: #333;
    font-size: 1.5em;
    text-align: center;
}

.edd-cpf-description {
    margin-bottom: 20px;
    color: #666;
    text-align: center;
}

.edd-cpf-input-wrap {
    margin-bottom: 20px;
}

#edd-cpf-modal-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 18px;
    box-sizing: border-box;
    text-align: center;
    color: #000;
    letter-spacing: 1px;
    caret-color: #007bff;
    caret-width: 2px;
    background-color: #fff;
}

#edd-cpf-modal-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,.25);
    animation: caretBlink 1s infinite;
}

@keyframes caretBlink {
    0%, 100% {
        caret-color: transparent;
    }
    50% {
        caret-color: #007bff;
    }
}

#edd-cpf-modal-input::placeholder {
    color: #999;
    opacity: 0.7;
}

.edd-cpf-modal-error {
    display: none;
    color: #e2401c;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

.edd-cpf-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.edd-cpf-modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

#edd-cpf-modal-submit {
    background-color: #007bff;
    color: white;
}

#edd-cpf-modal-submit:hover {
    background-color: #0056b3;
}

#edd-cpf-modal-cancel {
    background-color: #6c757d;
    color: white;
}

#edd-cpf-modal-cancel:hover {
    background-color: #545b62;
}

/* Correções para o checkout */
#edd_checkout_form_wrap {
    background: transparent !important;
}

#edd_checkout_cart {
    background: transparent !important;
}

/* Estilo para o botão de compra desabilitado */
#edd-purchase-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Responsividade */
@media (max-width: 768px) {
    .edd-cpf-modal-content {
        margin: 20% auto;
        padding: 20px;
    }
    
    .edd-cpf-modal-buttons {
        flex-direction: column;
    }
    
    .edd-cpf-modal-buttons button {
        width: 100%;
        margin-bottom: 10px;
    }
}
