.filter-product-cards {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.filter-product-comparison {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto 28px;
}

.filter-product-comparison:empty {
    display: none;
}

.filter-product-comparison-hint {
    display: none;
    margin: 0 0 8px;
    color: #1B2A4A;
    font-size: .85rem;
}

.filter-product-comparison-scroll {
    overflow-x: auto;
    border: 1px solid rgba(10,22,40,0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15,23,38,0.06);
}

.filter-product-comparison-scroll:focus-visible {
    outline: 3px solid #27ae60;
    outline-offset: 3px;
}

.filter-product-comparison-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    color: #4B5B72;
    font-size: .9rem;
    table-layout: fixed;
}

.filter-product-comparison-table caption {
    padding: 18px 20px 14px;
    color: #1B2A4A;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
}

.filter-product-comparison-table th,
.filter-product-comparison-table td {
    padding: 13px 16px;
    border-top: 1px solid rgba(10,22,40,0.1);
    overflow-wrap: anywhere;
    text-align: left;
    vertical-align: top;
}

.filter-product-comparison-table thead th {
    border-top: 0;
    background: #f4faff;
    color: #1B2A4A;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.filter-product-comparison-table thead th:not(:first-child) {
    border-left: 1px solid rgba(10,22,40,0.08);
}

.filter-product-comparison-table tbody th {
    width: 22%;
    color: #1B2A4A;
    font-weight: 700;
}

.filter-product-comparison-table tbody td + td {
    border-left: 1px solid rgba(10,22,40,0.08);
}

.filter-product-comparison-table tbody tr:first-child td,
.filter-product-comparison-table tbody tr:first-child th {
    border-top-color: #d5e9f6;
}

.filter-product-cards-message {
    margin: 0 0 18px;
    padding: 14px 18px;
    border: 1px solid #d5e9f6;
    border-radius: 8px;
    background: #f4faff;
    color: #1B2A4A;
    text-align: center;
}

.filter-product-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}

.filter-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 24px;
    border: 1px solid rgba(10,22,40,0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15,23,38,0.06);
}

.filter-product-card-emphasis {
    border-color: #5dade2;
    box-shadow: 0 12px 32px rgba(27,42,74,0.12);
}

.filter-product-card-skeleton {
    gap: 16px;
}

.filter-product-skeleton-bar {
    display: block;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e7eff5 25%, #f5f9fc 50%, #e7eff5 75%);
    background-size: 200% 100%;
    animation: filter-product-skeleton-shimmer 1.4s ease-in-out infinite;
}

.filter-product-skeleton-tier {
    width: 28%;
    height: 10px;
}

.filter-product-skeleton-title {
    width: 78%;
    height: 25px;
}

.filter-product-skeleton-details {
    display: grid;
    min-height: 5.4em;
    align-content: start;
    gap: 11px;
}

.filter-product-skeleton-details .filter-product-skeleton-bar:nth-child(2) {
    width: 86%;
}

.filter-product-skeleton-details .filter-product-skeleton-bar:nth-child(3) {
    width: 66%;
}

.filter-product-skeleton-price {
    width: 72%;
    height: 30px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(10,22,40,0.1);
    border-radius: 0;
    background-clip: content-box;
}

.filter-product-skeleton-button {
    width: 100%;
    height: 46px;
    border-radius: 8px;
}

@keyframes filter-product-skeleton-shimmer {
    to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .filter-product-skeleton-bar {
        animation: none;
    }
}

.filter-product-card-tier {
    margin-bottom: 10px;
    color: #1B2A4A;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.filter-product-card h3 {
    min-height: 2.8em;
    margin: 0 0 16px;
    color: #0F172A;
    font-size: 1.22rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.filter-product-card-details,
.filter-product-card-details-empty {
    min-height: 5.4em;
    margin: 0 0 18px;
    color: #4B5B72;
    font-size: .9rem;
}

.filter-product-card-details {
    padding-left: 18px;
}

.filter-product-card-details li + li {
    margin-top: 6px;
}

.filter-product-card-details li {
    overflow-wrap: anywhere;
}

.filter-product-card-details strong {
    color: #1B2A4A;
}

.filter-product-card-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: auto 0 14px;
    padding-top: 15px;
    border-top: 1px solid rgba(10,22,40,0.1);
    color: #4B5B72;
    font-size: .88rem;
}

.filter-product-card-price strong {
    color: #1B2A4A;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.28rem;
    white-space: nowrap;
}

.filter-product-card-availability {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: #4B5B72;
    font-size: .85rem;
}

.filter-product-card-status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #91a0b3;
}

.filter-product-card-status-dot-available {
    background: #27ae60;
}

.filter-product-card-availability strong {
    color: #1B2A4A;
}

.filter-product-card-button {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: #27ae60;
    color: #fff;
    font: 600 .95rem 'DM Sans', sans-serif;
    cursor: pointer;
}

.filter-product-card-button:disabled {
    background: #d9e0e8;
    color: #58677a;
    cursor: not-allowed;
}

.filter-product-card-button:not(:disabled):hover {
    background: #219653;
}

.filter-product-card-button:focus-visible,
.wf-order-form input:focus-visible,
.wf-order-form button:focus-visible {
    outline: 3px solid #27ae60;
    outline-offset: 3px;
}

.wf-order-form-wrap {
    width: min(100% - 40px, 760px);
    margin: 34px auto 0;
    padding: 24px;
    border: 1px solid rgba(10,22,40,0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15,23,38,0.06);
}

.wf-order-form-wrap[hidden] {
    display: none;
}

.wf-order-form-wrap h3 {
    margin-bottom: 5px;
    color: #1B2A4A;
}

.wf-order-form-wrap > p {
    margin-bottom: 16px;
    color: #4B5B72;
}

.wf-order-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wf-order-form label {
    display: grid;
    gap: 5px;
    color: #1B2A4A;
    font-size: .84rem;
    font-weight: 600;
}

.wf-order-form .wf-order-form-full {
    grid-column: 1 / -1;
}

.wf-order-form input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(10,22,40,0.2);
    border-radius: 7px;
    background: #fff;
    color: #0F172A;
    font: 400 .95rem 'DM Sans', sans-serif;
}

.wf-order-form button {
    grid-column: 1 / -1;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: #27ae60;
    color: #fff;
    font: 600 .95rem 'DM Sans', sans-serif;
    cursor: pointer;
}

.wf-order-form button:disabled {
    opacity: .7;
    cursor: wait;
}

.wf-order-status {
    margin: 12px 0 0;
    color: #1B2A4A;
    font-size: .9rem;
}

@media (max-width: 760px) {
    .filter-product-comparison-hint {
        display: block;
    }

    .filter-product-comparison-table {
        border-collapse: separate;
        border-spacing: 0;
    }

    .filter-product-comparison-table thead th:nth-child(2),
    .filter-product-comparison-table tbody td:nth-child(2) {
        position: sticky;
        left: 0;
        border-right: 1px solid rgba(10,22,40,0.16);
    }

    .filter-product-comparison-table thead th:nth-child(2) {
        z-index: 2;
        background: #f4faff;
    }

    .filter-product-comparison-table tbody td:nth-child(2) {
        z-index: 1;
        background: #fff;
    }

    .filter-product-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .filter-product-card h3,
    .filter-product-card-details,
    .filter-product-card-details-empty {
        min-height: 0;
    }
}

@media (max-width: 520px) {
    .filter-product-cards,
    .filter-product-comparison,
    .wf-order-form-wrap {
        width: min(1120px, calc(100% - 28px));
    }

    .filter-product-comparison-table {
        min-width: 620px;
    }

    .filter-product-comparison-table th,
    .filter-product-comparison-table td {
        padding: 11px 12px;
        font-size: .86rem;
    }

    .filter-product-card,
    .wf-order-form-wrap {
        padding: 19px;
    }

    .wf-order-form {
        grid-template-columns: 1fr;
    }

    .wf-order-form .wf-order-form-full {
        grid-column: auto;
    }
}
