/* 차량 비교 페이지 — 사이트 스킨 무관 공통 스타일 */
.epc-cmp {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Roboto, sans-serif;
    color: #1a1d29;
}

.epc-cmp .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.epc-cmp__head {
    text-align: center;
    margin-bottom: 28px;
}

.epc-cmp__title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.epc-cmp__desc {
    font-size: 14.5px;
    color: #6b7280;
    margin: 0;
}

.epc-cmp__desc strong {
    color: #2563eb;
    font-weight: 700;
}

.epc-cmp__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 70px 20px;
    background: #f8f9fb;
    border-radius: 20px;
    border: 1px solid #eceef2;
}

.epc-cmp__empty-icon {
    color: #b7bdc9;
}

.epc-cmp__empty p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

.epc-cmp__cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: #1a1d29;
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.epc-cmp__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(26, 29, 41, 0.22);
}

.epc-cmp__scroll-wrap {
    position: relative;
}

.epc-cmp__scroll {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid #eceef2;
    box-shadow: 0 8px 30px rgba(20, 20, 30, 0.05);
    -webkit-overflow-scrolling: touch;
}

.epc-cmp__scroll-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 10px auto 0;
    padding: 6px 14px;
    width: max-content;
    border-radius: 999px;
    background: #f0f4ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    animation: epcCmpHintSlide 1.6s ease-in-out infinite;
}

.epc-cmp__scroll-hint svg {
    flex: none;
}

@keyframes epcCmpHintSlide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

.epc-cmp__scroll-fade {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 36px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
    pointer-events: none;
    border-radius: 0 20px 20px 0;
    transition: opacity 0.2s ease;
}

.epc-cmp__scroll-wrap.is-scroll-end .epc-cmp__scroll-fade {
    opacity: 0;
}

.epc-cmp__scroll-hint.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.epc-cmp__table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background: #fff;
    table-layout: fixed;
}

.epc-cmp__table th,
.epc-cmp__table td {
    border-bottom: 1px solid #f0f1f5;
    padding: 14px 12px;
    text-align: center;
    font-size: 13.5px;
    vertical-align: middle;
}

.epc-cmp__label-col {
    width: 108px;
    min-width: 108px;
}

.epc-cmp__table tbody th {
    text-align: left;
    color: #6b7280;
    font-weight: 600;
    font-size: 12.5px;
    background: #fafbfc;
    position: sticky;
    left: 0;
    line-height: 1.4;
}

.epc-cmp__row-sub {
    font-weight: 400;
    color: #a3a9b5;
    font-size: 11px;
}

.epc-cmp__car-col {
    width: calc((100% - 108px) / var(--epc-cmp-cols, 3));
    min-width: 168px;
    padding: 18px 14px !important;
    vertical-align: top;
}

.epc-cmp__car-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.epc-cmp__remove {
    position: absolute;
    top: -6px;
    right: -2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(26, 29, 41, 0.55);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.epc-cmp__remove:hover {
    background: #ef4444;
}

.epc-cmp__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #f2f3f6;
}

.epc-cmp__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.epc-cmp__thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #b7bdc9;
    font-size: 12px;
}

.epc-cmp__car-title {
    font-weight: 700;
    font-size: 14px;
    color: #1a1d29;
    text-decoration: none;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.epc-cmp__car-title:hover {
    color: #2563eb;
}

.epc-cmp__price {
    font-weight: 800;
    font-size: 17px;
    color: #ff5722;
}

.epc-cmp__price span {
    font-size: 12px;
    font-weight: 600;
    margin-left: 2px;
    color: #ff8a5c;
}

.epc-cmp__car-col--add {
    padding: 18px 14px !important;
}

.epc-cmp__add-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    border: 1.5px dashed #d6d9e0;
    color: #9aa0ac;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.epc-cmp__add-more:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.epc-cmp__add-more-icon {
    font-size: 22px;
    font-weight: 300;
}

.epc-cmp__blank {
    background: #fcfcfd;
}

.epc-cmp__accident-badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.epc-cmp__accident-badge.is-clean {
    background: #e8f6ee;
    color: #1a9a53;
}

.epc-cmp__accident-badge.is-accident {
    background: #fdeceb;
    color: #e0432b;
}

.epc-cmp__row--pay th {
    color: #1a1d29;
}

.epc-cmp__pay {
    font-weight: 800;
    font-size: 15px;
    color: #2563eb;
}

.epc-cmp__row--action td {
    padding-top: 10px;
    padding-bottom: 18px;
}

.epc-cmp__detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 140px;
    padding: 9px 0;
    border-radius: 10px;
    background: #1a1d29;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease;
}

.epc-cmp__detail-btn:hover {
    background: #2563eb;
}

.epc-cmp__foot {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.epc-cmp__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4b5160;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    padding: 11px 22px;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(20, 20, 30, 0.05);
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.epc-cmp__back::before {
    content: '';
    width: 7px;
    height: 7px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    flex: none;
}

.epc-cmp__back:hover {
    color: #fff;
    background: #1a1d29;
    border-color: #1a1d29;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(26, 29, 41, 0.2);
}

@media (max-width: 640px) {
    .epc-cmp {
        padding: 24px 14px 64px;
    }

    .epc-cmp__title {
        font-size: 21px;
    }

    .epc-cmp__table {
        min-width: 480px;
    }

    .epc-cmp__label-col {
        width: 72px;
        min-width: 72px;
    }

    .epc-cmp__car-col {
        min-width: 136px;
    }

    .epc-cmp__car-title {
        font-size: 12.5px;
    }

    .epc-cmp__price {
        font-size: 15px;
    }

    .epc-cmp__scroll-hint {
        display: inline-flex;
    }

    .epc-cmp__scroll-fade {
        display: block;
    }

    .epc-cmp__foot {
        margin-top: 16px;
    }
}

@media (max-width: 380px) {
    .epc-cmp__table {
        min-width: 420px;
    }

    .epc-cmp__label-col {
        width: 62px;
        min-width: 62px;
    }

    .epc-cmp__car-col {
        min-width: 118px;
        padding: 14px 8px !important;
    }

    .epc-cmp__detail-btn {
        font-size: 11.5px;
        padding: 8px 0;
    }
}
