
.fcf-comparator,
.fcf-comparator * {
    box-sizing: border-box;
}

.fcf-comparator {
    width: 100%;
    max-width: 1240px;
    margin: 24px auto;
    padding: clamp(18px, 3vw, 34px);
    border: 1px solid #e7e7e7;
    border-radius: 22px;
    background: #fff;
    color: #222;
    font-family: inherit;
    box-shadow: 0 12px 35px rgba(0,0,0,.06);
}

.fcf-header {
    text-align: center;
    margin-bottom: 24px;
}

.fcf-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--fcf-accent);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .16em;
}

.fcf-header h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    color: #181818;
}

.fcf-header p {
    max-width: 720px;
    margin: 12px auto 0;
    color: #646464;
    font-size: 16px;
}

.fcf-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.fcf-material-button {
    appearance: none;
    width: 100%;
    min-height: 92px;
    padding: 15px;
    border: 2px solid #e3e3e3;
    border-radius: 16px;
    background: #fafafa;
    color: #222;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.fcf-material-button:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--fcf-accent) 60%, #ddd);
}

.fcf-material-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--fcf-accent) 28%, transparent);
    outline-offset: 2px;
}

.fcf-material-button.is-selected,
.fcf-material-button[aria-pressed="true"] {
    border-color: var(--fcf-accent);
    background: color-mix(in srgb, var(--fcf-accent) 10%, #fff);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--fcf-accent) 15%, transparent);
}

.fcf-material-name {
    display: block;
    margin-bottom: 5px;
    font-size: 19px;
    font-weight: 800;
}

.fcf-material-short {
    display: block;
    color: #666;
    font-size: 13px;
    line-height: 1.35;
}

.fcf-status {
    min-height: 24px;
    margin-top: 10px;
    color: #a43720;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.fcf-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 18px;
    padding: 25px;
    border: 1px dashed #d8d8d8;
    border-radius: 16px;
    color: #666;
    background: #fbfbfb;
    text-align: center;
}

.fcf-empty strong {
    color: #2d2d2d;
    font-size: 17px;
}

.fcf-results {
    margin-top: 22px;
}

.fcf-table-wrap {
    overflow-x: auto;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
}

.fcf-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background: #fff;
}

.fcf-table th,
.fcf-table td {
    min-width: 180px;
    padding: 16px;
    border-bottom: 1px solid #ececec;
    border-right: 1px solid #ececec;
    vertical-align: top;
    text-align: left;
    line-height: 1.45;
}

.fcf-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #202020;
    color: #fff;
    font-size: 16px;
}

.fcf-table thead th:first-child {
    left: 0;
    z-index: 3;
}

.fcf-table tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 210px;
    background: #f8f8f8;
    color: #2a2a2a;
    font-weight: 700;
}

.fcf-table tr:last-child th,
.fcf-table tr:last-child td {
    border-bottom: 0;
}

.fcf-table th:last-child,
.fcf-table td:last-child {
    border-right: 0;
}

.fcf-score {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.fcf-score span {
    width: 22px;
    height: 8px;
    border-radius: 999px;
    background: #e4e4e4;
}

.fcf-score span.is-filled {
    background: var(--fcf-accent);
}

.fcf-score small {
    margin-left: 5px;
    color: #656565;
    font-weight: 700;
}

.fcf-warning {
    color: #8b3c1f;
}

.fcf-shop-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 11px 17px;
    border-radius: 11px;
    background: var(--fcf-accent);
    color: #fff !important;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    transition: filter .15s ease, transform .15s ease;
}

.fcf-shop-button:hover {
    filter: brightness(.92);
    transform: translateY(-1px);
}

.fcf-shop-button:active {
    transform: translateY(1px);
    filter: brightness(.84);
}

.fcf-no-link {
    color: #777;
    font-size: 13px;
}

.fcf-mobile-cards {
    display: none;
}

@media (max-width: 900px) {
    .fcf-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .fcf-comparator {
        margin: 14px auto;
        padding: 16px;
        border-radius: 18px;
    }

    .fcf-picker {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .fcf-material-button {
        min-height: 84px;
        padding: 12px;
        border-radius: 13px;
    }

    .fcf-material-name {
        font-size: 17px;
    }

    .fcf-material-short {
        font-size: 12px;
    }

    .fcf-table-wrap {
        display: none;
    }

    .fcf-mobile-cards {
        display: grid;
        gap: 14px;
    }

    .fcf-mobile-card {
        padding: 18px;
        border: 1px solid #e7e7e7;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,.05);
    }

    .fcf-mobile-card h3 {
        margin: 0 0 6px;
        color: var(--fcf-accent);
        font-size: 25px;
    }

    .fcf-mobile-card > p {
        margin: 0 0 15px;
        color: #666;
    }

    .fcf-mobile-card dl {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 0 0 15px;
    }

    .fcf-mobile-card dl div {
        padding: 10px;
        border-radius: 10px;
        background: #f7f7f7;
    }

    .fcf-mobile-card dt {
        color: #696969;
        font-size: 12px;
    }

    .fcf-mobile-card dd {
        margin: 3px 0 0;
        color: #222;
        font-weight: 800;
    }

    .fcf-card-section,
    .fcf-card-warning {
        margin-top: 12px;
        padding: 13px;
        border-radius: 11px;
    }

    .fcf-card-section {
        background: color-mix(in srgb, var(--fcf-accent) 8%, #fff);
    }

    .fcf-card-warning {
        background: #fff4ed;
        color: #7b351c;
    }

    .fcf-card-section p,
    .fcf-card-warning p {
        margin: 5px 0 0;
    }

    .fcf-mobile-card .fcf-shop-button {
        width: 100%;
        margin-top: 15px;
    }
}

@media (max-width: 420px) {
    .fcf-picker {
        grid-template-columns: 1fr;
    }

    .fcf-material-button {
        min-height: auto;
    }
}
