/* WooCommerce Payment Terceiros - Styles */

/* Overlay do Lightbox */
.wpt-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    overflow-y: auto;
    padding: 20px;
}

.wpt-lightbox-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container do Lightbox */
.wpt-lightbox {
    background-color: #d9d9d9;
    border-radius: 8px;
    max-width: 950px;
    width: 100%;
    position: relative;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

/* Botão de Fechar */
.wpt-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    line-height: 1;
    padding: 0;
}

.wpt-close-btn:hover {
    color: #000;
}

/* Título do Lightbox */
.wpt-lightbox h2 {
    text-align: center;
    margin: 0 0 30px 0;
    font-size: 24px;
    font-weight: 600;
    color: #000;
}

/* Container das Opções de Pagamento */
.wpt-payment-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

/* Cada opção de pagamento */
.wpt-payment-option {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wpt-payment-option h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #000;
    line-height: 1.4;
}

/* Botões de Ação */
.wpt-btn {
    display: inline-block;
    padding: 12px 30px;
    height: 50px !important;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.wpt-btn-primary {
    background-color: #2ecc71;
    color: #fff;
}

.wpt-btn-primary:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.wpt-btn-secondary {
    background-color: transparent;
    color: #2ecc71;
    border: 2px solid #2ecc71;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wpt-btn-secondary:hover {
    background-color: #2ecc71;
    color: #fff;
}

/* Seta do botão "Prossiga" */
.wpt-arrow {
    width: 40px;
    height: 40px;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
}

/* Formulário de Dados do Titular */
.wpt-form-group {
    margin-bottom: 20px;
}

.wpt-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
}

.wpt-form-group input[type="text"],
.wpt-form-group input[type="email"],
.wpt-form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    box-sizing: border-box;
}

.wpt-form-group input:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.1);
}

/* Checkboxes personalizados */
.wpt-checkbox-group {
    margin-bottom: 20px;
}

.wpt-checkbox-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #000;
}

.wpt-checkbox-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wpt-checkbox-item {
    display: flex;
    align-items: center;
}

.wpt-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.wpt-checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
}

/* Checkbox de confirmação de política */
.wpt-confirmation {
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wpt-confirmation input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.wpt-confirmation label {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

/* Botão de Prosseguir com Seta */
.wpt-btn-with-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0 auto;
}

/* Container do Formulário */
#wpt-holder-form-container {
    display: none;
}

#wpt-holder-form-container.active {
    display: block;
}

/* Esconder o container de opções quando o formulário estiver ativo */
#wpt-payment-options-container.hidden {
    display: none;
}

/* Loading Spinner */
.wpt-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2ecc71;
    border-radius: 50%;
    animation: wpt-spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Mensagem de Erro */
.wpt-error-message {
    color: #e74c3c;
    background-color: #fadbd8;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.wpt-error-message.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .wpt-lightbox {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .wpt-payment-options {
        flex-direction: column;
    }
    
    .wpt-checkbox-options {
        grid-template-columns: 1fr;
    }
    
    .wpt-lightbox h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .wpt-lightbox {
        padding: 20px 15px;
    }
    
    .wpt-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}