.tco-page [hidden] {
    display: none !important;
}

.tco-page {
    padding: 48px 0 72px;
    color: #1f2430;
}

.tco-header {
    text-align: center;
    margin-bottom: 36px;
}

.tco-header h1 {
    margin: 0 0 10px;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.4px;
}

.tco-header p {
    margin: 0;
    color: #5c6573;
    font-size: 18px;
}

.tco-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.15fr);
    gap: 28px;
    align-items: start;
}

.tco-model-top,
.tco-distance-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    font-size: 14px;
    color: #3a4250;
}

.tco-years > p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #3a4250;
}

.tco-model-top label span,
.tco-years > p span,
.tco-km-box span span {
    color: #e11d48;
}

.tco-model {
    position: relative;
}

.tco-model-placeholder,
.tco-model-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 1px solid #d7dee8;
    background: #fff;
    border-radius: 8px;
    color: #8b95a5;
    font-size: 15px;
    padding: 12px 14px;
    cursor: pointer;
}

.tco-model-current {
    width: auto;
    border: 0;
    color: #2f6fed;
    font-weight: 600;
    padding: 0;
    background: transparent;
}

.tco-model-placeholder svg,
.tco-model-current svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.tco-model-photo {
    display: block;
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    margin-top: 4px;
    padding: 12px 16px 4px;
    background: #f7f8fa;
    border-radius: 8px;
}

.tco-model-menu {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    top: 100%;
    margin: 6px 0 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(20, 40, 80, 0.12);
}

.tco-model-menu button {
    display: block;
    width: 100%;
    text-align: start;
    border: 0;
    background: transparent;
    padding: 10px 14px;
    cursor: pointer;
}

.tco-model-menu button:hover,
.tco-model-menu button.is-active {
    background: #eef4ff;
    color: #2f6fed;
}

.tco-years {
    margin-top: 28px;
}

.tco-year-group {
    display: flex;
    gap: 8px;
}

.tco-year-group button {
    flex: 1;
    min-width: 0;
    border: 1px solid #d5dbe3;
    background: #fff;
    border-radius: 8px;
    padding: 8px 4px;
    color: #3a4250;
    cursor: pointer;
    white-space: nowrap;
}

.tco-year-group button.is-active {
    border-color: #2f6fed;
    color: #2f6fed;
    box-shadow: inset 0 0 0 1px #2f6fed;
}

.tco-distance {
    margin-top: 28px;
}

.tco-km-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    padding: 4px 10px 6px;
    min-width: 92px;
    color: #8b95a5;
    font-size: 12px;
}

.tco-km-box input {
    width: 72px;
    border: 0;
    text-align: end;
    font-size: 16px;
    color: #1f2430;
    outline: none;
    background: transparent;
}

.tco-slider {
    position: relative;
    margin-top: 12px;
    padding-top: 34px;
}

.tco-slider-track {
    position: relative;
    height: 28px;
}

.tco-slider-fill {
    position: absolute;
    top: 12px;
    height: 4px;
    border-radius: 999px;
    background: #2f6fed;
    width: 0;
}

.tco-slider-thumb {
    position: absolute;
    top: 4px;
    width: 20px;
    height: 20px;
    margin-inline-start: -10px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #2f6fed;
    box-shadow: 0 1px 4px rgba(47, 111, 237, 0.35);
    pointer-events: none;
}

.tco-slider input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.tco-slider-track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 12px;
    height: 4px;
    border-radius: 999px;
    background: #d9e4fb;
}

.tco-slider-tooltip {
    position: absolute;
    top: 0;
    z-index: 2;
    transform: translateX(-50%);
    background: #2f6fed;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 6px;
    padding: 4px 8px;
    white-space: nowrap;
    pointer-events: none;
}

.tco-slider-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #2f6fed;
}

.tco-slider-labels {
    display: flex;
    justify-content: space-between;
    color: #8b95a5;
    font-size: 13px;
    margin-top: 2px;
}

.tco-results {
    border: 1px solid #b9d0ff;
    border-radius: 12px;
    padding: 22px 22px 16px;
    box-shadow: 0 8px 24px rgba(47, 111, 237, 0.06);
}

.tco-results h2 {
    margin: 0 0 16px;
    text-align: center;
    color: #2f6fed;
    font-size: 28px;
    font-weight: 600;
}

.tco-savings {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #2f6fed;
    color: #fff;
    border-radius: 8px;
    padding: 16px 18px;
}

.tco-savings strong {
    display: block;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}

.tco-savings strong span {
    font-weight: 500;
}

.tco-savings small {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    opacity: 0.95;
}

.tco-savings-value {
    text-align: end;
}

.tco-savings-value p {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}

.tco-savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    background: #fff;
    color: #2f6fed;
    border-radius: 999px;
    padding: 3px 10px 3px 8px;
    font-weight: 700;
    font-size: 14px;
}

.tco-savings-badge svg {
    width: 16px;
    height: 16px;
}

.tco-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.tco-columns article {
    background: #f7f9fc;
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
}

.tco-columns header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    background: #eef1f6;
    color: #3a4250;
    font-weight: 700;
}

.tco-columns header svg {
    width: 16px;
    height: 16px;
}

.tco-columns header.is-ev {
    background: #2f6fed;
    color: #fff;
}

.tco-column-label {
    margin: 14px 0 0;
    color: #5c6573;
    font-size: 14px;
}

.tco-column-value {
    margin: 4px 0 16px;
    font-size: 22px;
    font-weight: 700;
}

.tco-column-value.is-ev {
    color: #2f6fed;
}

.tco-breakdown {
    margin-top: 12px;
}

.tco-breakdown-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #eef4ff;
    border-radius: 6px;
    padding: 10px 8px 12px;
    margin-bottom: 8px;
}

.tco-breakdown-row span {
    grid-column: 1 / -1;
    padding: 0 8px 6px;
    color: #3a4250;
}

.tco-breakdown-row strong {
    text-align: center;
    font-weight: 600;
}

.tco-buy {
    display: block;
    margin-top: 8px;
    background: #2f6fed;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    padding: 12px 16px;
    font-weight: 700;
}

.tco-buy:hover {
    color: #fff;
    background: #245ed4;
}

.tco-disclaimer {
    margin-top: 16px;
    color: #8b95a5;
    font-size: 12px;
    line-height: 1.45;
}

.tco-disclaimer p,
.tco-disclaimer ul {
    margin: 0;
}

.tco-disclaimer ul {
    padding-inline-start: 16px;
}


@media (max-width: 991px) {
    .tco-layout,
    .tco-columns {
        grid-template-columns: 1fr;
    }

    .tco-header h1 {
        font-size: 32px;
    }

    .tco-savings {
        align-items: flex-start;
        flex-direction: column;
    }

    .tco-savings-value,
    .tco-breakdown-row strong {
        text-align: start;
    }
}
