﻿/* INCI4ME R5.14 - Product comparison */
.compare-entry-card,
.compare-panel-card,
.analysis-source-note__card {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.compare-entry-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.15rem 1.25rem;
}

.compare-entry-card--pending {
    border-style: dashed;
}

.compare-entry-eyebrow {
    color: #64748b;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.compare-entry-title {
    margin-top: .15rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.compare-entry-copy {
    margin-top: .35rem;
    color: #64748b;
    font-size: .92rem;
    max-width: 760px;
}

.compare-entry-action {
    white-space: nowrap;
}

.compare-category-chip {
    display: inline-flex;
    gap: .35rem;
    margin-top: .45rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: .82rem;
}

.compare-panel-card {
    padding: 1.4rem;
}

.compare-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid #e2e8f0;
}

.compare-product-headings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1rem;
}

.compare-product-heading {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .85rem 1rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.compare-product-heading span {
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.compare-product-heading strong {
    color: #0f172a;
}

.compare-section {
    margin-top: 1.35rem;
}

.compare-section h4,
.compare-difference-card h4 {
    margin-bottom: .75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.compare-metrics-table {
    margin-bottom: 0;
}

.compare-metrics-table thead th {
    color: #475569;
    font-size: .82rem;
    font-weight: 700;
    border-bottom-width: 1px;
}

.compare-metrics-table tbody th {
    color: #334155;
    font-weight: 600;
}

.compare-metrics-table td,
.compare-metrics-table th {
    padding: .72rem .65rem;
}

.compare-info-note,
.compare-compliance-note {
    padding: .85rem 1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: .88rem;
}

.compare-common-table th,
.compare-common-table td {
    vertical-align: middle;
}

.compare-difference-card {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fbfdff;
}

.compare-ingredient-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .55rem;
}

.compare-ingredient-list li {
    padding: .65rem .7rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #edf2f7;
}

.compare-ingredient-name {
    color: #0f172a;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.compare-ingredient-meta {
    margin-top: .25rem;
    color: #64748b;
    font-size: .78rem;
}

.compare-badge {
    display: inline-flex;
    align-items: center;
    margin: .1rem .15rem .1rem 0;
    padding: .14rem .4rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.compare-badge--bio {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.compare-badge--allergen {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.compare-badge--restriction {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.compare-badge--fragrance {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.compare-badge--colorant {
    background: #faf5ff;
    color: #7e22ce;
    border-color: #e9d5ff;
}

.compare-empty {
    padding: 1rem;
    text-align: center;
    color: #94a3b8;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
}

.compare-compliance-note {
    margin-top: 1.35rem;
}

.analysis-source-note {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.analysis-source-note__card {
    padding: 1rem 1.15rem;
    background: #f8fafc;
    box-shadow: none;
}

.analysis-source-note__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .45rem;
    color: #334155;
    font-size: .92rem;
    font-weight: 700;
}

.analysis-source-note__card p {
    margin-bottom: .4rem;
    color: #64748b;
    font-size: .82rem;
    line-height: 1.5;
}

.analysis-source-note__card p:last-child {
    margin-bottom: 0;
}

.compare-modal-hint {
    padding: .75rem .85rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: .88rem;
}

@media (max-width: 767.98px) {
    .compare-entry-card,
    .compare-panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .compare-entry-action {
        width: 100%;
    }

    .compare-product-headings {
        grid-template-columns: 1fr;
    }

    .compare-panel-card {
        padding: 1rem;
    }
}

/* R5.15 PDF SHARE SUBSCRIBER GATE */
.compare-report-actions {
    align-items: center;
}

.compare-report-actions .btn {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .compare-report-actions {
        width: 100%;
        justify-content: stretch !important;
    }

    .compare-report-actions .btn {
        flex: 1 1 100%;
    }
}
/* R5.16 COMPARISON VISUAL CHARTS + PRICING */
.compare-chart-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem 1rem;
    margin: .9rem 0 1.2rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.compare-chart-column-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    min-width: 0;
    padding: .55rem .7rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    text-align: center;
}

.compare-chart-column-heading span {
    color: #64748b;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.compare-chart-column-heading strong {
    width: 100%;
    color: #0f172a;
    font-size: .92rem;
    overflow-wrap: anywhere;
}

.compare-chart-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 220px;
    padding: .7rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
}

.compare-chart-cell canvas {
    width: 100% !important;
    max-width: 300px;
    height: auto !important;
}

@media (max-width: 575.98px) {
    .compare-chart-matrix {
        gap: .55rem;
        padding: .65rem;
    }

    .compare-chart-cell {
        min-height: 175px;
        padding: .35rem;
    }

    .compare-chart-column-heading {
        padding: .45rem .35rem;
    }
}