.enwp-pagarme-payment-form {
    margin: 20px 0;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Novo estilo para as abas */
.enwp-pagarme-tabs {
    display: flex;
    margin-bottom: 20px;
    background-color: #f3f4f6;
    border-radius: 8px;
    padding: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.enwp-pagarme-tabs button {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Ícones SVG inline */
.enwp-pagarme-tabs button svg,
.enwp-pagarme-tabs button i.fa-regular,
.enwp-pagarme-tabs button i.fa-brands {
    width: 20px;      /* garante alinhamento */
    height: 20px;     /* não faz mal ao <i>, mas mantém proporção */
    font-size: 20px;  /* necessário para Font Awesome */
    line-height: 1;   /* evita espaço extra */
    fill: currentColor;
}

.enwp-pagarme-tabs button.active {
    color: #2c5f2d;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Efeito de hover para as abas */
.enwp-pagarme-tabs button:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.6);
    color: #4b5563;
}

/* Estilo para o conteúdo das abas */
.enwp-pagarme-tab-content {
    display: none;
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
    padding: 10px;
    border-radius: 6px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.enwp-pagarme-tab-content.active {
    display: block;
}

/* Estilo para os grupos de input */
.enwp-pagarme-input-group {
    margin-bottom: 20px;
}

.enwp-pagarme-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4b5563;
}

.enwp-pagarme-input-group input,
.enwp-pagarme-input-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    background-color: #f9fafb;
}

.enwp-pagarme-input-group input:focus,
.enwp-pagarme-input-group select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    background-color: white;
}

/* Estilo para os elementos do cartão */
.enwp-pagarme-card-elements {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

/* Estilo para informações do PIX */
.enwp-pagarme-pix-info {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #bfdbfe;
    position: relative;
}

.enwp-pagarme-pix-info:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #2563eb;
    border-radius: 6px 0 0 6px;
}

.enwp-pagarme-pix-discount {
    font-weight: 700;
    color: #10b981;
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.enwp-pagarme-pix-discount:before {
    content: '\f155'; /* Ícone de desconto/dinheiro */
    font-family: dashicons, sans-serif;
}

.enwp-pagarme-error {
    color: #ef4444;
    margin-top: 5px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.enwp-pagarme-error:before {
    content: '\f158'; /* Ícone de alerta */
    font-family: dashicons, sans-serif;
}

/* Estilo para o container de documentos (CPF/CNPJ) */
.enwp-pagarme-document-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.enwp-pagarme-document-container > div {
    flex: 1;
    min-width: 200px;
}

.enwp-pagarme-document-input {
    border: 1px solid #d1d5db !important;
}

.enwp-pagarme-document-input:focus {
    border-color: #2563eb !important;
}

/* Campo obrigatório */
.field-notice {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.field-notice:before {
    content: '*';
    font-weight: bold;
}

/* Estilo para exibição do QR Code do PIX */
.enwp-pagarme-pix-container {
    margin: 20px 0;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.enwp-pagarme-pix-qrcode {
    text-align: center;
    margin-bottom: 20px;
}

.enwp-pagarme-pix-qrcode img {
    max-width: 200px;
    height: auto;
    border: 1px solid #e5e7eb;
    padding: 10px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.enwp-pagarme-pix-copy {
    margin-top: 15px;
}

.enwp-pagarme-pix-copy h4 {
    margin-bottom: 10px;
    color: #4b5563;
}

.enwp-pagarme-pix-code {
    position: relative;
    margin-top: 10px;
}

.enwp-pagarme-pix-code textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    height: 60px;
    resize: none;
    background-color: #f9fafb;
}

.enwp-pagarme-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.enwp-pagarme-copy-btn:hover {
    background-color: #1e40af;
}

.enwp-pagarme-copy-btn:active {
    transform: translateY(1px);
}

/* Responsividade */
@media (max-width: 600px) {
    .enwp-pagarme-card-elements {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .enwp-pagarme-document-container > div {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    
    .enwp-pagarme-tabs button {
        padding: 10px 8px;
        font-size: 14px;
    }
}