/**
 * Divinium Cashback — Frontend Styles
 * Design System Premium para Divinium Peptídeos
 */

:root {
    --dc-primary: #059669;
    --dc-primary-dark: #047857;
    --dc-primary-light: #ecfdf5;
    --dc-gold: #d97706;
    --dc-gold-light: #fef3c7;
    --dc-text: #1e293b;
    --dc-muted: #64748b;
    --dc-border: #e2e8f0;
    --dc-radius: 12px;
}

/* =============================================
   WIDGET NO CARRINHO E CHECKOUT
   ============================================= */

.divinium-cashback-container {
    margin: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Card de Carteira / Saldo Disponível */
.divinium-cashback-wallet-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 1.5px solid #a7f3d0;
    border-radius: var(--dc-radius);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px -2px rgba(16, 185, 129, 0.1);
    flex-wrap: wrap;
    gap: 12px;
}

.dc-wallet-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dc-wallet-icon {
    font-size: 28px;
    line-height: 1;
    background: #dcfce7;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #86efac;
}

.dc-wallet-info {
    display: flex;
    flex-direction: column;
}

.dc-wallet-title {
    font-size: 13px;
    font-weight: 700;
    color: #065f46;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dc-wallet-amount {
    font-size: 22px;
    font-weight: 900;
    color: #047857;
    line-height: 1.2;
}

.dc-btn-apply-cashback {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dc-btn-apply-cashback:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.dc-applied-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #dcfce7;
    border: 1px solid #86efac;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #065f46;
}

.dc-btn-remove-cashback {
    background: transparent;
    color: #dc2626;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dc-btn-remove-cashback:hover {
    background: #fee2e2;
}

/* Banner Informativo de Ganho */
.divinium-cashback-notice-box {
    border-radius: var(--dc-radius);
    padding: 14px 18px;
    transition: all 0.2s ease;
}

.divinium-cashback-notice-box.is-eligible {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border-left: 4px solid #10b981;
    border: 1px solid #d1fae5;
    border-left-width: 4px;
}

.divinium-cashback-notice-box.is-pending {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0284c7;
}

.dc-notice-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dc-notice-icon {
    font-size: 22px;
    line-height: 1.2;
}

.dc-notice-text strong {
    display: block;
    font-size: 14.5px;
    color: var(--dc-text);
    margin-bottom: 3px;
}

.dc-notice-text p {
    margin: 0;
    font-size: 13px;
    color: var(--dc-muted);
    line-height: 1.45;
}

.dc-pix-highlight {
    display: inline-block;
    margin-top: 4px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #fde68a;
    font-size: 12px;
}

/* =============================================
   ÁREA DO CLIENTE (MINHA CONTA)
   ============================================= */

.divinium-cashback-myaccount-wrapper {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dc-text);
}

.dc-ma-header {
    margin-bottom: 24px;
}

.dc-ma-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.dc-ma-subtitle {
    font-size: 14px;
    color: var(--dc-muted);
    margin: 0;
}

/* Grid de Cards */
.dc-ma-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dc-ma-card {
    background: #ffffff;
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dc-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dc-card-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--dc-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.dc-card-icon {
    font-size: 20px;
}

.dc-card-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--dc-primary-dark);
    margin-bottom: 12px;
    line-height: 1.1;
}

.dc-card-value.text-amber {
    color: var(--dc-gold);
}

.dc-card-value.text-teal {
    color: #0d9488;
}

.dc-card-value.text-muted {
    color: #94a3b8;
}

.dc-tag-success {
    background: #dcfce7;
    color: #166534;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.dc-tag-warning {
    background: #fef3c7;
    color: #92400e;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.dc-tag-neutral {
    background: #f1f5f9;
    color: #475569;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.dc-tag-info {
    background: #e0f2fe;
    color: #0369a1;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Regras Box */
.dc-ma-rules-box {
    background: #f8fafc;
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius);
    padding: 16px 20px;
    margin-bottom: 28px;
}

.dc-rules-header {
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 10px;
}

.dc-rules-list {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
}

.dc-rules-list li {
    margin-bottom: 4px;
}

/* Tabela de Extrato */
.dc-ma-statement-section {
    margin-top: 10px;
}

.dc-statement-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
}

.dc-table-responsive {
    overflow-x: auto;
    border-radius: var(--dc-radius);
    border: 1px solid var(--dc-border);
}

.dc-statement-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    background: #ffffff;
}

.dc-statement-table th {
    background: #f8fafc;
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    color: #475569;
    border-bottom: 1px solid var(--dc-border);
}

.dc-statement-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.dc-statement-table tr:last-child td {
    border-bottom: none;
}

.dc-val-pos {
    color: #059669;
    font-weight: 800;
}

.dc-val-neg {
    color: #dc2626;
    font-weight: 800;
}

.dc-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-green { background: #dcfce7; color: #15803d; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-gray { background: #f1f5f9; color: #64748b; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-purple { background: #f3e8ff; color: #7e22ce; }

.dc-order-link {
    font-weight: 700;
    color: var(--dc-primary);
    text-decoration: underline;
}

.dc-empty-state {
    text-align: center;
    padding: 30px;
    background: #f8fafc;
    border-radius: var(--dc-radius);
    border: 1px dashed var(--dc-border);
}
