/* ===== LOGO DO GATEWAY ===== */
.wc_payment_method.payment_method_primepaggateway img,
img.primegap-pix-img {
    width: 52px !important;
    max-width: 52px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 8px !important;
    border-radius: 8px;
    display: inline !important;
    vertical-align: middle !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.wc_payment_method.payment_method_pushinpaygateway img {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 8px;
    padding: 12px;
    width: 120px !important;
    max-width: 120px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.wc_payment_method.payment_method_pushinpaygateway img:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* ===== SEÇÃO PIX MELHORADA ===== */
.primepag-pagamento-content.primepag-pagamento-pix {
    text-align: center;
    margin-top: 16px;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafb 0%, #f1f5f9 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.primepag-pix-qrcode {
    margin-bottom: 32px;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.primepag-pix-qrcode img {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%) !important;
    display: block !important;
    width: 220px !important;
    height: 220px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    padding: 12px !important;
    transition: all 0.3s ease !important;
}

.primepag-pix-qrcode img:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15) !important;
}

.primepag-pix-qrcode h2 {
    text-align: left;
    width: 100%;
    max-width: 350px;
    display: block;
    margin: 20px auto 28px auto;
    position: relative;
    font-size: 14px;
    background: linear-gradient(135deg, #f8fafb 0%, #f1f5f9 100%);
    color: #2c3e50;
    border-radius: 10px;
    overflow-x: auto;
    padding: 16px 18px;
    font-weight: 500;
    border: 1px solid #e8eef5;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.primepag-pix-qrcode h2 span {
    color: #1976d2 !important;
    font-weight: 600 !important;
}

.primepag-pix-qrcode h2 small {
    display: block;
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: normal;
}

/* ===== INSTRUÇÃO PIX ===== */
.pushinpay-pix-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    border: 1px solid #bbdefb;
    border-radius: 10px;
    padding: 18px;
    margin: 20px 0;
    text-align: center;
}

.pushinpay-pix-info p {
    margin: 8px 0;
    color: #1565c0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.pushinpay-pix-info .pix-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}


/* ===== BOTÕES PIX MELHORADOS ===== */
.pushinpay-pix-qrcode a.button-confirmar-pushinpay-pix {
    color: #2c5c8f !important;
    text-decoration: none;
    font-size: 16px;
}


.pushinpay-pix-qrcode a.button-confirmar-pushinpay-pix::before {
    content: '✓';
    font-size: 16px;
    font-weight: bold;
}

/* ===== SELETOR DE MÉTODOS DE PAGAMENTO ===== */
.pushinpay-payment-methods {
    margin: 25px 0;
}

.pushinpay_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    background: #fff;
}

.pushinpay_payment_methods li {
    border-bottom: 1px solid #f0f3f6;
    padding: 0;
    margin: 0;
    position: relative;
}

.pushinpay_payment_methods li:last-child {
    border-bottom: none;
}

.pushinpay_payment_methods li label {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    margin: 0;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 15px;
    color: #2c3e50;
    position: relative;
}

.pushinpay_payment_methods li label:hover {
    background: linear-gradient(135deg, #f8fafb 0%, #f1f5f9 100%);
    transform: translateX(2px);
}

.pushinpay_payment_methods li input[type="radio"] {
    margin-right: 14px;
    width: 18px;
    height: 18px;
    accent-color: #007cba;
}

.pushinpay_payment_methods li input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    border-left: 4px solid #007cba;
    font-weight: 600;
    color: #1976d2;
}

.pushinpay_payment_methods li input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #007cba;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 124, 186, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(0, 124, 186, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 124, 186, 0); }
}

/* ===== CONTEÚDO DOS MÉTODOS ===== */
.pushinpay-pagamento-content {
    margin: 18px 0;
    padding: 24px;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    background: linear-gradient(135deg, #fafbfc 0%, #f4f7fa 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FORMULÁRIO DE CARTÃO ===== */
.pushinpay-cartao-form {
    /* max-width: 520px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08); */
}

.pushinpay-cartao-form .form-row {
    margin-bottom: 20px;
    position: relative;
}

.pushinpay-cartao-form .form-row-wide {
    width: 100%;
}

.pushinpay-cartao-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.pushinpay-cartao-form .input-text,
.pushinpay-cartao-form .select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background: #fff;
    color: #2c3e50;
}

.pushinpay-cartao-form .input-text:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pushinpay-cartao-form .input-text:focus,
.pushinpay-cartao-form .select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1), 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.pushinpay-cartao-form .required {
    color: #e74c3c;
    font-size: 13px;
}

/* ===== ÍCONES NOS CAMPOS ===== */
.pushinpay-cartao-form .form-row::before {
    position: absolute;
    right: 12px;
    top: 40px;
    font-size: 18px;
    color: #a0aec0;
    z-index: 2;
    transition: color 0.3s ease;
}

/* .pushinpay-cartao-form .form-row.card-number::before {
    content: '💳';
}

.pushinpay-cartao-form .form-row.card-expiry::before {
    content: '📅';
}

.pushinpay-cartao-form .form-row.card-cvv::before {
    content: '🔒';
} */

/* .pushinpay-cartao-form .form-row.card-holder::before {
    content: '👤';
} */
 .form-row-pushinpay {
    margin-bottom: 30px;
 }

/* ===== INFORMAÇÕES DE PAGAMENTO NA THANKYOU ===== */
.pushinpay-payment-info {
    margin: 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pushinpay-pix-info .pushinpay-pix-qrcode {
    margin-bottom: 30px;
}

.pushinpay-pix-info .pushinpay-pix-qrcode img {
    background: #f2f2f2 !important;
    display: block !important;
    width: 200px !important;
    height: 200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 8px !important;
}

.pushinpay-pix-info .pushinpay-titulo-pix {
    text-align: left;
    width: 300px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    font-size: 14px;
    background: #f2f2f2;
    color: #000;
    border-radius: 8px;
    overflow-x: scroll;
    padding: 12px;
    font-weight: normal;
    margin-bottom: 24px;
}

.pushinpay-pix-info .pushinpay-titulo-pix span {
    color: #000 !important;
}

.pushinpay-pix-info .pushinpay-titulo-pix small {
    display: block;
    margin-left: auto;
    margin-right: auto;
    color: #000;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 14px;
}

/* ===== RESPONSIVO MELHORADO ===== */
@media (max-width: 768px) {
    .pushinpay-cartao-form {
        max-width: 100%;
        padding: 16px;
        margin: 0 8px;
    }
    
    .pushinpay-cartao-form .form-row > div {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 18px;
    }
    
    .pushinpay_payment_methods li label {
        padding: 16px 18px;
        font-size: 14px;
    }
    
    .pushinpay-pagamento-content {
        padding: 20px 16px;
        margin: 16px 8px;
    }
    
    .primepag-pix-qrcode img {
        width: 180px !important;
        height: 180px !important;
    }
    
    .primepag-pix-qrcode h2 {
        max-width: 100%;
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .pushinpay-pix-qrcode a.button-confirmar-pushinpay-pix {
        width: 100% !important;
        max-width: 200px;
    }
    
    .pushinpay-payment-info {
        margin: 20px 8px;
    }
}

@media (max-width: 480px) {
    .pushinpay_payment_methods li label {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .pushinpay_payment_methods li input[type="radio"] {
        width: 16px;
        height: 16px;
        margin-right: 12px;
    }
    
    .primepag-pix-qrcode img {
        width: 160px !important;
        height: 160px !important;
    }
    
    .pushinpay-cartao-form .input-text,
    .pushinpay-cartao-form .select {
        font-size: 15px;
        padding: 12px 14px;
    }
}

/* ===== ANIMAÇÕES ===== */
.pushinpay-pagamento-content {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ÍCONES DE SEGURANÇA ===== */
.pushinpay-security-icons {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pushinpay-security-icons p {
    margin: 5px 0;
    color: #666;
    font-size: 13px;
}

/* ===== VALIDAÇÃO VISUAL DOS CAMPOS ===== */
.pushinpay-cartao-form .input-text.valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

.pushinpay-cartao-form .input-text.invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* ===== INDICADORES DE BANDEIRA DO CARTÃO ===== */
.pushinpay-cartao-form .form-row.visa::after {
    content: "💳 Visa";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a1f71;
    font-size: 12px;
    font-weight: bold;
}

.pushinpay-cartao-form .form-row.mastercard::after {
    content: "💳 Mastercard";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #eb001b;
    font-size: 12px;
    font-weight: bold;
}

.pushinpay-cartao-form .form-row.amex::after {
    content: "💳 Amex";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #006fcf;
    font-size: 12px;
    font-weight: bold;
}

.pushinpay-cartao-form .form-row {
    position: relative;
}

/* ===== LOADING STATE ===== */
#place_order.loading {
    position: relative;
    color: transparent !important;
}

#place_order.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== ESTADOS HOVER E FOCUS MELHORADOS ===== */
.pushinpay_payment_methods li input[type="radio"]:focus + label {
    box-shadow: inset 0 0 0 2px #007cba;
}

.pushinpay-cartao-form .input-text:hover {
    border-color: #bbb;
}

/* ===== MELHORIAS GERAIS ===== */
.wc_payment_method.payment_method_pushinpaygateway img {
    background: #000;
    border-radius: 6px;
    padding: 9px !important;
    width: 100px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    max-width: 100px !important;
}

/* ===== TRANSIÇÕES SUAVES ===== */
.pushinpay-pagamento-content,
.pushinpay_payment_methods li label,
.pushinpay-cartao-form .input-text,
.pushinpay-cartao-form .select {
    transition: all 0.3s ease;
}

/* ===== NOTIFICAÇÕES DE ERRO ===== */
.pushinpay-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
    font-size: 14px;
}

.pushinpay-success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #c3e6cb;
    font-size: 14px;
}
