.vt-la-frontend-widget {
font-family: inherit;
--vt-la-radius: 12px;
--vt-la-border: #e5e7eb;
--vt-la-bg: #f8fafc;
--vt-la-text: #1e293b;
--vt-la-muted: #64748b;
--vt-la-accent: #6366f1;
--vt-la-green: #059669;
--vt-la-amber: #d97706;
--vt-la-blue: #3b82f6;
} .vt-la-promoted-badge {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 6px;
flex-wrap: wrap;
width: 100%;
box-sizing: border-box;
padding: 8px 14px;
border-radius: 8px;
font-size: 13px;
font-weight: 600;
background: linear-gradient(135deg, #f59e0b, #f97316);
color: #fff;
margin-bottom: 16px;
box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}
.vt-la-badge-icon {
display: inline-flex;
align-items: center;
}
.vt-la-badge-icon svg { width: 14px; height: 14px; }
.vt-la-badge-dates { font-weight: 400; opacity: 0.9; font-size: 12px; }
.vt-la-badge-remaining { font-weight: 400; opacity: 0.75; font-size: 11px; } .vt-la-score-inline {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 18px;
padding: 14px 16px;
background: var(--vt-la-bg);
border: 1px solid var(--vt-la-border);
border-radius: var(--vt-la-radius);
}
.vt-la-score-mini {
width: 48px;
height: 48px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background: conic-gradient(var(--vt-la-green) calc(var(--score) * 1%), #e2e8f0 calc(var(--score) * 1%));
position: relative;
flex-shrink: 0;
}
.vt-la-score-mini::before {
content: '';
position: absolute;
width: 36px;
height: 36px;
border-radius: 50%;
background: var(--vt-la-bg);
}
.vt-la-score-mini span {
position: relative;
z-index: 1;
font-size: 15px;
font-weight: 700;
color: var(--vt-la-text);
}
.vt-la-score-text {
font-size: 13px;
color: var(--vt-la-muted);
line-height: 1.4;
} .vt-la-stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
}
.vt-la-stat-item {
background: var(--vt-la-bg);
border: 1px solid var(--vt-la-border);
border-radius: var(--vt-la-radius);
padding: 14px 12px;
text-align: center;
transition: border-color 0.2s, box-shadow 0.2s;
}
.vt-la-stat-item:hover {
border-color: #c7d2fe;
box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}
.vt-la-stat-value {
font-size: 22px;
font-weight: 700;
color: var(--vt-la-text);
line-height: 1.2;
}
.vt-la-stat-label {
font-size: 11px;
color: var(--vt-la-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-top: 4px;
font-weight: 500;
} .vt-la-stats-inline {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
font-size: 13px;
color: #374151;
}
.vt-la-inline-stat strong { font-weight: 700; }
.vt-la-sep { color: #d1d5db; } .vt-la-funnel-title,
.vt-la-actions-title,
.vt-la-device-title,
.vt-la-fe-recs-title,
.vt-la-fe-trend-title,
.vt-la-benchmark-title,
.vt-la-fe-cost-title {
font-size: 11px;
font-weight: 700;
color: var(--vt-la-accent);
margin-bottom: 10px;
text-transform: uppercase;
letter-spacing: 1px;
display: flex;
align-items: center;
gap: 6px;
}
.vt-la-funnel-title::before,
.vt-la-actions-title::before,
.vt-la-device-title::before,
.vt-la-fe-recs-title::before,
.vt-la-fe-trend-title::before,
.vt-la-benchmark-title::before,
.vt-la-fe-cost-title::before {
content: '';
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--vt-la-accent);
flex-shrink: 0;
} .vt-la-funnel,
.vt-la-actions-breakdown,
.vt-la-device-breakdown,
.vt-la-fe-recs,
.vt-la-fe-trend,
.vt-la-benchmark,
.vt-la-fe-cost {
margin-top: 18px;
padding: 16px;
background: var(--vt-la-bg);
border: 1px solid var(--vt-la-border);
border-radius: var(--vt-la-radius);
} .vt-la-funnel-step {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 8px;
}
.vt-la-funnel-step:last-child { margin-bottom: 0; }
.vt-la-funnel-label {
width: 85px;
font-size: 11px;
font-weight: 500;
color: var(--vt-la-muted);
text-align: right;
flex-shrink: 0;
}
.vt-la-funnel-bar {
flex: 1;
height: 20px;
background: #e2e8f0;
border-radius: 6px;
overflow: hidden;
}
.vt-la-funnel-fill {
height: 100%;
border-radius: 6px;
transition: width 0.4s ease;
min-width: 3px;
}
.vt-la-funnel-value {
width: 80px;
font-size: 12px;
color: var(--vt-la-text);
font-weight: 700;
flex-shrink: 0;
}
.vt-la-funnel-conv {
display: inline-block;
font-size: 10px;
color: var(--vt-la-green);
font-weight: 500;
margin-left: 4px;
background: #ecfdf5;
padding: 1px 5px;
border-radius: 4px;
} .vt-la-actions-title::before { background: var(--vt-la-amber); }
.vt-la-action-row {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 6px;
}
.vt-la-action-row:last-child { margin-bottom: 0; }
.vt-la-act-label {
width: 130px;
font-size: 11px;
font-weight: 500;
color: var(--vt-la-muted);
text-align: right;
flex-shrink: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-flex;
align-items: center;
justify-content: flex-end;
gap: 5px;
}
.vt-la-act-icon {
display: inline-flex;
align-items: center;
color: var(--vt-la-amber);
flex-shrink: 0;
}
.vt-la-act-icon svg { width: 14px; height: 14px; }
.vt-la-act-bar {
flex: 1;
height: 16px;
background: #e2e8f0;
border-radius: 5px;
overflow: hidden;
}
.vt-la-act-fill {
height: 100%;
background: linear-gradient(90deg, #fbbf24, #f59e0b);
border-radius: 5px;
min-width: 3px;
transition: width 0.3s ease;
}
.vt-la-act-count {
width: 32px;
font-size: 12px;
color: var(--vt-la-text);
font-weight: 700;
text-align: right;
flex-shrink: 0;
} .vt-la-device-title::before { background: var(--vt-la-blue); }
.vt-la-device-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
}
.vt-la-device-card {
background: #fff;
border: 1px solid var(--vt-la-border);
border-radius: 10px;
padding: 14px;
text-align: center;
transition: box-shadow 0.2s;
}
.vt-la-device-card:hover {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.vt-la-device-icon {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 6px;
color: var(--vt-la-blue);
}
.vt-la-device-icon svg { width: 24px; height: 24px; }
.vt-la-device-name {
font-size: 12px;
font-weight: 700;
color: var(--vt-la-text);
margin-bottom: 10px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.vt-la-device-stats { display: flex; flex-direction: column; gap: 6px; }
.vt-la-device-stat {
display: flex;
justify-content: space-between;
align-items: baseline;
padding: 0 2px;
}
.vt-la-device-val { font-size: 14px; font-weight: 700; color: var(--vt-la-text); }
.vt-la-device-lbl { font-size: 10px; color: var(--vt-la-muted); font-weight: 500; } .vt-la-fe-recs-title::before { background: var(--vt-la-green); }
.vt-la-fe-rec {
padding: 10px 14px;
border-radius: 8px;
margin-bottom: 6px;
font-size: 12px;
line-height: 1.5;
display: flex;
align-items: flex-start;
gap: 8px;
border: 1px solid transparent;
}
.vt-la-fe-rec:last-child { margin-bottom: 0; }
.vt-la-fe-rec-icon {
flex-shrink: 0;
display: inline-flex;
align-items: center;
margin-top: 1px;
}
.vt-la-fe-rec-icon svg { width: 14px; height: 14px; }
.vt-la-fe-rec-success .vt-la-fe-rec-icon { color: #059669; }
.vt-la-fe-rec-warning .vt-la-fe-rec-icon { color: #d97706; }
.vt-la-fe-rec-success {
background: #ecfdf5;
color: #065f46;
border-color: #a7f3d0;
}
.vt-la-fe-rec-warning {
background: #fffbeb;
color: #92400e;
border-color: #fde68a;
} .vt-la-fe-trend-title::before { background: #8b5cf6; }
.vt-la-fe-trend canvas { max-height: 160px; } .vt-la-fe-cost-title::before { background: var(--vt-la-green); }
.vt-la-fe-cost-grid {
display: flex;
gap: 12px;
flex-wrap: wrap;
}
.vt-la-fe-cost-item {
display: flex;
flex-direction: column;
padding: 10px 16px;
background: #fff;
border: 1px solid var(--vt-la-border);
border-radius: 8px;
min-width: 80px;
transition: box-shadow 0.2s;
}
.vt-la-fe-cost-item:hover {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.vt-la-fe-cost-val {
font-size: 18px;
font-weight: 700;
color: var(--vt-la-text);
}
.vt-la-fe-cost-lbl {
font-size: 10px;
color: var(--vt-la-muted);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.3px;
margin-top: 2px;
} @media (max-width: 600px) {
.vt-la-stats-grid { grid-template-columns: repeat(2, 1fr); }
.vt-la-funnel-label, .vt-la-act-label { width: 70px; font-size: 10px; }
.vt-la-device-grid { grid-template-columns: 1fr; }
.vt-la-fe-cost-grid { gap: 8px; }
.vt-la-fe-cost-item { min-width: 60px; padding: 8px 12px; }
.vt-la-fe-cost-val { font-size: 15px; }
} .vt-la-promoted-badge.vt-la-plan-badge {
background: linear-gradient(135deg, #059669, #10B981);
box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}
.vt-la-plan-badge .vt-la-plan-prefix {
font-weight: 400;
opacity: 0.85;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.vt-la-plan-badge .vt-la-plan-meta {
width: 100%;
margin-top: 4px;
font-size: 11px;
font-weight: 400;
opacity: 0.85;
} .vt-la-benchmark-table {
width: 100%;
border-collapse: collapse;
font-size: 12px;
}
.vt-la-benchmark-table th {
text-align: right;
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.3px;
color: var(--vt-la-muted);
padding: 0 0 8px;
}
.vt-la-benchmark-table th:first-child { text-align: left; }
.vt-la-benchmark-table td {
padding: 6px 0;
text-align: right;
border-top: 1px solid var(--vt-la-border);
font-variant-numeric: tabular-nums;
}
.vt-la-bm-metric {
text-align: left !important;
font-weight: 600;
color: var(--vt-la-text);
}
.vt-la-bm-mine { font-weight: 700; color: var(--vt-la-text); }
.vt-la-bm-up   { color: var(--vt-la-green); font-weight: 600; }
.vt-la-bm-down { color: #dc2626; font-weight: 600; }
.vt-la-bm-flat { color: var(--vt-la-muted); } .vt-la-ml-wrap { margin-top: 16px; overflow-x: auto; }
.vt-la-ml-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vt-la-ml-table th {
text-align: right;
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.3px;
color: var(--vt-la-muted);
padding: 0 10px 8px;
white-space: nowrap;
}
.vt-la-ml-table th:first-child { text-align: left; }
.vt-la-ml-table td {
padding: 8px 10px;
text-align: right;
border-top: 1px solid var(--vt-la-border);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.vt-la-ml-table td:first-child { text-align: left; white-space: normal; }
.vt-la-ml-table a { color: var(--vt-la-text); font-weight: 600; text-decoration: none; }
.vt-la-ml-table a:hover { color: var(--vt-la-accent); }
.vt-la-empty-msg { color: var(--vt-la-muted); font-style: italic; }