.epc-subpage-shell:has(.encar-detail-page),
.epc-page-shell:has(.encar-detail-page) {
    overflow: visible;
}

.encar-detail-page.epc-car-detail-page {
    max-width: var(--epc-detail-max-width, 1000px);
    width: 100%;
    margin: 50px auto 0;
    box-sizing: border-box;
    padding: 24px 10px 18px;
}

.encar-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 12px;
    align-items: start;
}

.encar-detail-layout__full {
    grid-column: 1 / -1;
}

.encar-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 148px;
    gap: 10px;
    margin-bottom: 22px;
    max-width: 100%;
    min-width: 0;
}

/* PC 폭 1200px 이상 사이트 — 썸네일 2열(8칸) */
.encar-gallery--wide {
    grid-template-columns: minmax(0, 1fr) 268px;
}

.encar-gallery__main {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    min-height: 0;
    min-width: 0;
    aspect-ratio: 16 / 10;
}

.encar-gallery__main-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

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

.encar-gallery__main-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    color: #94a3b8;
    font-size: 15px;
}

.encar-gallery__controls {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    backdrop-filter: blur(4px);
}

.encar-gallery__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    padding: 0;
}

.encar-gallery__nav svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.encar-gallery__nav:hover {
    background: rgba(255, 255, 255, 0.12);
}

.encar-gallery__counter {
    min-width: 52px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.encar-gallery__side {
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    max-width: 148px;
}

.encar-gallery--wide .encar-gallery__side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    max-width: 268px;
}

.encar-gallery__thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
    cursor: pointer;
}

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

.encar-gallery__thumb.is-on {
    border-color: #111827;
}

.encar-gallery__thumb--more::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
}

.encar-gallery__thumb-more-label {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    padding: 8px;
}

.encar-gallery__thumb-more-label svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.encar-detail-head {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eceff3;
    text-align: left;
}

.encar-detail-head__title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
    color: #111827;
    letter-spacing: -0.03em;
    text-align: left;
}

.encar-detail-head__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.encar-detail-head__meta span + span::before {
    content: "·";
    color: #d1d5db;
    margin: 0 8px;
}

.encar-detail-main {
    min-width: 0;
    grid-column: 1;
    grid-row: auto;
}

.encar-section-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    text-align: center;
}

.encar-section-title .epc-section-title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    line-height: 1.25;
    vertical-align: middle;
}

.encar-section-title .epc-section-title-row .epc-section-help {
    display: inline-flex;
    align-items: center;
    align-self: center;
    flex-shrink: 0;
    line-height: 1;
}

.encar-section-title .epc-section-title-row .epc-section-help__btn {
    position: relative;
    top: 1px;
    padding-top: 1px;
}

.encar-summary-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.encar-summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.encar-summary-card--ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.encar-summary-card__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #4b5563;
}

.encar-summary-card--ok .encar-summary-card__icon {
    background: #dcfce7;
    color: #16a34a;
}

.encar-summary-card__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.encar-summary-card__label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #9ca3af;
}

.encar-summary-card strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    color: #111827;
    font-weight: 700;
}

.encar-key-options {
    margin-bottom: 28px;
}

.encar-key-options__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.encar-key-options__grid li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 88px;
    padding: 12px 8px 10px;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
    color: #374151;
    font-weight: 600;
    word-break: keep-all;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.encar-key-options__grid li:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.encar-key-options__label {
    display: block;
}

.encar-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
}

.encar-option-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.encar-option-icon--sunroof,
.encar-option-icon--camera { background: #fef3c7; color: #d97706; }
.encar-option-icon--seat-heat,
.encar-option-icon--seat-vent,
.encar-option-icon--wheel { background: #fee2e2; color: #dc2626; }
.encar-option-icon--smartkey,
.encar-option-icon--leather { background: #f3e8ff; color: #7c3aed; }
.encar-option-icon--cruise,
.encar-option-icon--sensor { background: #ecfdf5; color: #059669; }
.encar-option-icon--default { background: #f1f5f9; color: #64748b; }

.encar-key-options:not(.is-expanded) .encar-key-options__grid li.is-extra {
    display: none;
}

.encar-key-options__toggle {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 10px 18px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.encar-key-options__toggle:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.encar-spec-panel,
.encar-seller-panel {
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.encar-spec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: min(100%, 720px);
    margin: 0 auto;
    text-align: left;
}

.encar-seller-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    text-align: left;
}

.encar-spec-list > div,
.encar-seller-list > div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.encar-spec-list > div:nth-last-child(-n+2),
.encar-seller-list > div:last-child {
    border-bottom: 0;
}

.encar-spec-list dt,
.encar-seller-list dt {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}

.encar-spec-list dd,
.encar-seller-list dd {
    margin: 0;
    font-size: 14px;
    color: #111827;
    font-weight: 600;
    word-break: keep-all;
}

.encar-spec-list__sale {
    grid-column: 1;
}

.encar-spec-list .epc-sale-method,
.encar-detail-page .epc-sale-method {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.encar-spec-list .epc-section-help,
.encar-spec-list .epc-sale-method-help,
.encar-detail-page .epc-section-help,
.encar-detail-page .epc-sale-method-help {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.encar-spec-list .epc-section-help__btn,
.encar-spec-list .epc-sale-method-help__btn,
.encar-detail-page .epc-section-help__btn,
.encar-detail-page .epc-sale-method-help__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    padding: 0;
    margin: 0;
    border: 1px solid #94a3b8;
    border-radius: 50%;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.encar-spec-list .epc-section-help__btn:active,
.encar-spec-list .epc-sale-method-help__btn:active,
.encar-detail-page .epc-section-help__btn:active,
.encar-detail-page .epc-sale-method-help__btn:active {
    background: #e2e8f0;
}

.encar-spec-list .epc-section-help__tip,
.encar-spec-list .epc-sale-method-help__tip,
.encar-detail-page .epc-section-help__tip,
.encar-detail-page .epc-sale-method-help__tip {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 30;
    min-width: 120px;
    max-width: 260px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: normal;
    word-break: keep-all;
    text-align: left;
}

.encar-spec-list .epc-section-help__tip::after,
.encar-spec-list .epc-sale-method-help__tip::after,
.encar-detail-page .epc-section-help__tip::after,
.encar-detail-page .epc-sale-method-help__tip::after {
    content: '';
    position: absolute;
    left: 14px;
    bottom: -6px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-right: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    transform: rotate(45deg);
}

.encar-spec-list .epc-section-help.is-open .epc-section-help__tip,
.encar-spec-list .epc-sale-method-help.is-open .epc-sale-method-help__tip,
.encar-detail-page .epc-section-help.is-open .epc-section-help__tip,
.encar-detail-page .epc-sale-method-help.is-open .epc-sale-method-help__tip {
    display: block;
}

.encar-detail-page .epc-section-help--wide .epc-section-help__tip,
.encar-spec-list .epc-section-help--wide .epc-section-help__tip {
    min-width: 280px;
    max-width: min(420px, 94vw);
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}

.encar-key-options,
.encar-key-options .encar-section-title {
    overflow: visible;
}

.encar-seller-panel__inner {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    width: min(100%, 720px);
    margin: 0 auto;
    text-align: left;
}

.encar-seller-panel__photo {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
    justify-self: center;
}

.encar-seller-panel__photo img {
    display: block;
    width: 100%;
    height: auto;
}

.encar-seller-list {
    grid-template-columns: 1fr;
}

/* 딜러 소개 — 상단 라벨 + 테두리 박스 (car_detail.css 와 동기) */
.epc-dealer-intro-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 16px 0 0;
    padding: 0;
    text-align: left;
}

.epc-dealer-intro-box {
    position: relative;
    border: 2px solid var(--epc-dealer-intro-accent, var(--epc-site-main, var(--maincolor, #147dc2)));
    border-radius: 10px;
    background: #f7fbff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    overflow: visible;
}

.epc-dealer-intro-box__head {
    display: block;
    width: fit-content;
    max-width: calc(100% - 24px);
    margin: -13px auto 0;
    padding: 5px 18px;
    border: 2px solid var(--epc-dealer-intro-accent, var(--epc-site-main, var(--maincolor, #147dc2)));
    border-radius: 999px;
    background: var(--epc-dealer-intro-accent, var(--epc-site-main, var(--maincolor, #147dc2)));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

.epc-dealer-intro-box__body {
    padding: 18px 16px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.72;
    color: #111827;
    word-break: keep-all;
    text-align: center;
}

.encar-seller-panel .epc-dealer-intro-panel {
    grid-column: 1 / -1;
    width: 100%;
    margin: 14px 0 0;
    padding-top: 4px;
    text-align: left;
    box-sizing: border-box;
}

.encar-seller-panel .epc-dealer-intro-box {
    --epc-dealer-intro-accent: var(--epc-site-main, var(--maincolor, #147dc2));
    background: #f4f9fd;
    border-width: 2px;
}

.encar-seller-panel .epc-dealer-intro-box__head {
    font-size: 13px;
    padding: 6px 20px;
}

.encar-seller-panel .epc-dealer-intro-box__body {
    padding: 20px 18px 18px;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 600;
    color: #111827;
}

.encar-tab-label--short {
    display: none;
}

.encar-detail-accordions {
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.encar-detail-accordion + .encar-detail-accordion {
    border-top: 1px solid #e5e7eb;
}

.encar-detail-accordion__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    background: #fff;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.encar-detail-accordion.is-open .encar-detail-accordion__head {
    border-bottom: 1px solid #f1f5f9;
}

.encar-detail-accordion__icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #6b7280;
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

.encar-detail-accordion__body {
    padding: 16px;
}

/* 상세설명 — 업로드 이미지 여백 없이 그대로 표시 */
.encar-detail-accordion#desc .encar-detail-accordion__body {
    padding: 0;
}

.encar-detail-accordion#desc .encar-detail-block__content.epc-car-detail-dealer-detail {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.encar-detail-accordion#desc .epc-car-detail-dealer-detail {
    margin: 0;
    line-height: 0;
}

.encar-detail-accordion#desc .epc-car-detail-dealer-detail img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0;
}

.encar-detail-accordion#desc .epc-car-detail-dealer-detail p,
.encar-detail-accordion#desc .epc-car-detail-dealer-detail div {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.encar-detail-accordion__body[hidden] {
    display: none;
}

.encar-detail-block {
    margin-bottom: 36px;
    scroll-margin-top: 56px;
}

.encar-detail-page .epc-car-detail-empty {
    margin: 0;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.encar-detail-page .epc-car-detail-photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.encar-detail-page .epc-car-detail-photo-item {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    overflow: hidden;
    box-sizing: border-box;
}

.encar-detail-page .epc-car-detail-photo-grid img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
    box-sizing: border-box;
}

.encar-detail-page .epc-car-detail-photo-item:hover img {
    opacity: 0.92;
}

/* 차량사진 — 상세설명과 동일하게 여백 없이 100% 표시 */
.encar-detail-accordion#photos .encar-detail-accordion__body {
    padding: 0;
}

.encar-detail-block--perf {
    text-align: center;
}

.encar-detail-page .epc-car-detail-perf-link {
    display: inline-flex;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    justify-content: center;
}

.encar-detail-block__content {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.encar-detail-aside {
    position: sticky;
    top: 16px;
    align-self: start;
    grid-column: 2;
    z-index: 8;
}

.encar-detail-aside__inner {
    max-height: calc(100vh - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.encar-detail-aside__inner::-webkit-scrollbar {
    width: 5px;
}

.encar-detail-aside__inner::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.encar-aside-phone-banner {
    margin-bottom: 10px;
    padding: 16px 14px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
    text-align: center;
    color: #fff;
}

.encar-aside-phone-banner__badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.encar-aside-phone-banner__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.encar-aside-phone-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.encar-aside-phone-banner__icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.encar-aside-phone-banner__number {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.encar-aside-phone-banner__hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82);
}

.encar-aside-card {
    padding: 18px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.1);
}

.encar-aside-card__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}

.encar-aside-card__meta {
    margin: 0 0 22px;
    font-size: 13px;
    color: #6b7280;
}

.encar-aside-price {
    padding: 18px 0 14px;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin: 6px 0 14px;
}

.encar-aside-price__label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    color: #6b7280;
}

.encar-aside-price__value {
    margin: 0;
    line-height: 1;
}

.encar-aside-price__value strong {
    font-size: 30px;
    color: #ef4444;
    letter-spacing: -0.02em;
    margin-right: 6px;
}

.encar-aside-price__value {
    font-size: 16px;
    font-weight: 700;
    color: #374151;
}

.encar-aside-installment {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #4b5563;
    white-space: nowrap;
}

.encar-aside-installment__label {
    flex: 0 0 auto;
}

.encar-aside-installment__term {
    flex: 0 0 auto;
    width: auto;
    min-width: 72px;
    max-width: 82px;
    height: 30px;
    margin: 0;
    padding: 0 20px 0 6px;
    font-size: 13px;
    font-weight: 700;
}

.encar-aside-installment__price {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    font-size: 12px;
}

.encar-aside-installment__price strong {
    font-size: 15px;
    color: #111827;
    font-weight: 800;
    margin-right: 3px;
}

.encar-aside-installment--lease {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    white-space: normal;
}

.encar-aside-installment--lease .encar-aside-installment__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
}

.encar-aside-price--lease .encar-aside-price__value {
    margin: 0;
}

.encar-lease-headline {
    margin: 0;
    padding: 4px 0 2px;
    line-height: 1.2;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.encar-lease-headline__prefix,
.encar-lease-headline__suffix {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.encar-lease-headline__amount {
    font-size: 32px;
    font-weight: 800;
    color: #f39800;
    letter-spacing: -0.02em;
    margin: 0 4px;
}

.encar-lease-schedule {
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.encar-lease-schedule .encar-section-title {
    margin-bottom: 16px;
}

.encar-lease-table-wrap {
    width: min(100%, 720px);
    margin: 0 auto;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.encar-lease-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
    background: transparent;
    border: 0;
}

.encar-lease-table__col-term {
    width: 42%;
}

.encar-lease-table__col-amount {
    width: 58%;
}

.encar-lease-table thead th {
    padding: 11px 20px;
    background: #f8fafc;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    letter-spacing: -0.01em;
}

.encar-lease-table thead th:first-child,
.encar-lease-table tbody th {
    text-align: center;
    width: 42%;
}

.encar-lease-table thead th:last-child,
.encar-lease-table tbody td {
    text-align: right;
    width: 58%;
    padding-right: 24px;
}

.encar-lease-table tbody th,
.encar-lease-table tbody td {
    padding-top: 13px;
    padding-bottom: 13px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

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

.encar-lease-table tbody th {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background: #fff;
    padding-left: 16px;
    padding-right: 16px;
}

.encar-lease-table tbody td {
    background: #fff;
}

.encar-lease-table__amount {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.encar-lease-table__unit {
    margin-left: 2px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.encar-lease-table tbody tr.is-default {
    background: linear-gradient(90deg, #fff7ed 0%, #fff 55%);
}

.encar-lease-table tbody tr.is-default th {
    color: #c2410c;
    font-weight: 700;
}

.encar-lease-table tbody tr.is-default td {
    background: transparent;
}

.encar-lease-table tbody tr.is-default .encar-lease-table__amount {
    color: #ef4444;
}

.encar-lease-table tbody tr:not(.is-default):hover th,
.encar-lease-table tbody tr:not(.is-default):hover td {
    background: #fafafa;
}

.encar-aside-inquiry textarea,
.encar-aside-inquiry input[type="text"],
.encar-aside-inquiry input[type="tel"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

.encar-aside-inquiry textarea {
    resize: vertical;
    min-height: 72px;
    background: #f9fafb;
    color: #4b5563;
}

.encar-aside-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 12px;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.encar-aside-cta svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex: 0 0 auto;
}

.encar-aside-cta:hover {
    transform: translateY(-1px);
}

.encar-aside-cta--call {
    margin-bottom: 10px;
    background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
}

.encar-aside-cta--consult {
    margin-top: 4px;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.2);
}

.encar-aside-perf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #93c5fd;
    border-radius: 12px;
    background: linear-gradient(180deg, #f0f9ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.encar-aside-perf:hover {
    transform: translateY(-1px);
    border-color: #60a5fa;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
    color: #1e40af;
}

.encar-aside-perf__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    flex: 0 0 auto;
}

.encar-aside-perf__icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.encar-aside-perf__text {
    flex: 1 1 auto;
    text-align: center;
}

.encar-aside-perf__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    opacity: 0.7;
}

.encar-aside-perf__arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.encar-options-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.encar-options-desktop {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.encar-options-mobile {
    display: none;
}

.encar-options-group {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.encar-options-group__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
}

.encar-options-group__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    color: #4b5563;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    flex: 0 0 auto;
}

.encar-options-group__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.encar-options-group__icon--exterior { color: #2563eb; }
.encar-options-group__icon--interior { color: #7c3aed; }
.encar-options-group__icon--safety { color: #059669; }
.encar-options-group__icon--comfort { color: #d97706; }

.encar-options-group__title {
    margin: 0;
    flex: 1 1 auto;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.encar-options-group__count {
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.encar-options-group__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 14px 16px 16px;
    list-style: none;
}

.encar-options-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: #9ca3af;
}

.encar-options-chip.is-on {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.encar-options-chip__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    flex: 0 0 auto;
}

.encar-options-chip__mark svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.encar-options-chip.is-on .encar-options-chip__mark {
    background: #22c55e;
    color: #fff;
}

.encar-options-chip__label {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    word-break: keep-all;
}

.encar-options-chip.is-on .encar-options-chip__label {
    font-weight: 700;
}

.encar-options-note {
    margin: 4px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.55;
    text-align: center;
}

.encar-detail-mo-actions,
.encar-mobile-actions {
    display: none;
}

.encar-lightbox__mo-bar {
    display: none;
}

.encar-lightbox__stage {
    touch-action: pan-y pinch-zoom;
}

.encar-gallery__main {
    touch-action: pan-y pinch-zoom;
}

.encar-mobile-actions__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    box-sizing: border-box;
    border: 0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: -0.02em;
}

.encar-mobile-actions__btn svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: currentColor;
}

.encar-mobile-actions__btn--call {
    color: #fff;
    background: linear-gradient(135deg, #c2410c 0%, #7c2d12 100%);
}

.encar-mobile-actions__btn--perf {
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9 0%, #1d4ed8 100%);
}

.encar-mobile-actions__btn--perf svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.encar-lightbox {
    position: fixed;
    inset: 0;
    z-index: 12000;
}

.encar-lightbox[hidden] {
    display: none !important;
}

.encar-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.encar-lightbox__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px 20px 24px;
    box-sizing: border-box;
}

.encar-lightbox__topbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-right: 0;
}

.encar-lightbox__close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
}

.encar-lightbox__close-btn svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.encar-lightbox__close {
    position: static;
}

.encar-lightbox__title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.encar-lightbox__main {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    box-sizing: border-box;
}

.encar-lightbox__stage {
    position: relative;
    width: min(100%, 980px);
    max-height: calc(100vh - 220px);
}

.encar-lightbox__stage img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 220px);
    object-fit: contain;
    border-radius: 12px;
    background: #111827;
}

.encar-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 64px;
    padding: 0;
    border: 0;
    color: #fff;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.encar-lightbox__nav--prev {
    left: 0;
    border-radius: 0 10px 10px 0;
}

.encar-lightbox__nav--next {
    right: 0;
    border-radius: 10px 0 0 10px;
}

.encar-lightbox__nav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.encar-lightbox__counter {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 4;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.encar-lightbox__footer {
    flex: 0 0 auto;
    padding: 0 14px;
}

.encar-lightbox__midbar {
    display: none;
    flex: 0 0 auto;
    justify-content: flex-end;
    align-items: center;
    min-height: 0;
    padding: 10px 0 24px;
    box-sizing: border-box;
}

.encar-lightbox__close-bottom {
    display: none;
}

.encar-lightbox__grid {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    margin-top: 18px;
    padding: 4px 14px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.encar-lightbox__grid::-webkit-scrollbar {
    height: 6px;
}

.encar-lightbox__grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

.encar-lightbox__grid-item {
    position: relative;
    display: block;
    flex: 0 0 88px;
    width: 88px;
    height: 66px;
    aspect-ratio: auto;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: #1e293b;
    cursor: pointer;
    box-sizing: border-box;
    scroll-snap-align: start;
}

.encar-lightbox__grid-item.is-on {
    border-color: #fff;
}

.encar-lightbox__grid-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.encar-lightbox__grid-item.is-on img {
    opacity: 1;
}

body.encar-lightbox-open {
    overflow: hidden;
}

@media (max-width: 999px) {
    .encar-detail-page.epc-car-detail-page {
        padding: 0 0 18px;
    }

    .encar-detail-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .encar-gallery {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
        order: 1;
    }

    .encar-gallery__main {
        border-radius: 0;
        aspect-ratio: 4 / 3;
    }

    .encar-gallery__side {
        display: flex;
        flex-direction: row;
        gap: 6px;
        max-width: none;
        padding: 8px 10px 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .encar-gallery__side::-webkit-scrollbar {
        display: none;
    }

    .encar-gallery__thumb {
        flex: 0 0 72px;
        width: 72px;
        height: 54px;
        min-height: 54px;
        scroll-snap-align: start;
    }

    .encar-detail-head {
        order: 2;
        margin-bottom: 0;
        padding: 14px 12px 12px;
        border-bottom: 0;
        text-align: left;
    }

    .encar-detail-head__title {
        font-size: 22px;
    }

    .encar-detail-aside {
        order: 3;
        position: static;
        grid-column: 1;
        padding: 0 12px;
    }

    .encar-aside-phone-banner,
    .encar-aside-cta--call,
    .encar-aside-perf,
    .encar-detail-mo-actions {
        display: none !important;
    }

    .encar-detail-aside__inner {
        max-height: none;
        overflow: visible;
    }

    .encar-aside-card {
        box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
        text-align: left;
    }

    .encar-aside-card__meta {
        margin-bottom: 18px;
    }

    .encar-aside-price {
        margin-top: 4px;
        padding-top: 16px;
    }

    .encar-aside-price__value strong {
        font-size: 26px;
    }

    .encar-aside-installment {
        flex-wrap: wrap;
        white-space: normal;
        row-gap: 6px;
    }

    .encar-mobile-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 0 0 12px;
    }

    .encar-mobile-actions__btn {
        width: 100%;
        height: 46px;
        padding: 0 10px;
    }

    .encar-mobile-actions__btn span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .encar-mobile-actions:has(.encar-mobile-actions__btn:only-child) {
        grid-template-columns: 1fr;
    }

    .encar-detail-main {
        order: 4;
        grid-column: 1;
        padding: 0 12px;
        text-align: left;
    }

    .encar-tab-label--long {
        display: none;
    }

    .encar-tab-label--short {
        display: inline;
    }

    .encar-detail-accordions {
        margin-bottom: 14px;
    }

    .encar-detail-accordion__head {
        padding: 12px 14px;
        font-size: 14px;
    }

    .encar-detail-accordion__body {
        padding: 12px;
    }

    .encar-detail-accordion#desc .encar-detail-accordion__body {
        padding: 0;
    }

    .encar-detail-accordion#photos .encar-detail-accordion__body {
        padding: 0;
    }

    .encar-detail-page .epc-car-detail-photo-grid {
        grid-template-columns: 1fr;
    }

    .encar-options-note {
        margin-top: 12px;
        text-align: left;
        font-size: 11px;
        line-height: 1.5;
    }

    .encar-key-options__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .encar-key-options__grid li {
        min-height: 80px;
    }

    .encar-options-desktop {
        display: none;
    }

    .encar-options-mobile {
        display: block;
    }

    .encar-options-mobile__tabs {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 10px;
    }

    .encar-options-mobile__tab {
        border: 1px solid #e5e7eb;
        background: #fff;
        color: #6b7280;
        border-radius: 10px;
        min-height: 36px;
        padding: 0 4px;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
    }

    .encar-options-mobile__tab.is-on {
        background: #111827;
        border-color: #111827;
        color: #fff;
    }

    .encar-options-mobile__panel {
        display: none;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #fff;
        padding: 12px;
    }

    .encar-options-mobile__panel.is-on {
        display: block;
    }

    .encar-options-mobile .encar-options-group__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0;
    }

    .encar-aside-phone-banner__number {
        font-size: 22px;
    }

    .encar-seller-panel__inner {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .encar-seller-panel__photo {
        max-width: 140px;
        margin: 0 auto;
        justify-self: center;
    }

    .encar-spec-list {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .encar-summary-cards {
        grid-template-columns: 1fr;
    }

    .encar-spec-list {
        grid-template-columns: 1fr;
    }

    .encar-key-options__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .encar-options-mobile .encar-options-group__grid {
        grid-template-columns: 1fr;
    }

    .encar-key-options__grid li {
        min-height: 76px;
        padding: 10px 6px 8px;
    }

    .encar-option-icon {
        width: 32px;
        height: 32px;
    }

    .encar-detail-accordion__head {
        font-size: 13px;
        padding: 11px 12px;
    }
}

@media (max-width: 999px) {
    .encar-lightbox__panel {
        padding: max(10px, env(safe-area-inset-top)) 14px max(8px, env(safe-area-inset-bottom));
    }

    .encar-lightbox__topbar {
        align-items: flex-start;
        margin-bottom: 8px;
        padding: 0;
    }

    .encar-lightbox__title {
        font-size: 15px;
        padding-top: 10px;
    }

    .encar-lightbox__main {
        padding: 0;
    }

    .encar-lightbox__stage {
        width: 100%;
        max-height: calc(100vh - 280px);
    }

    .encar-lightbox__stage img {
        max-height: calc(100vh - 280px);
        border-radius: 10px;
    }

    .encar-lightbox__nav {
        width: 34px;
        height: 56px;
    }

    .encar-lightbox__nav svg {
        width: 20px;
        height: 20px;
    }

    .encar-lightbox__counter {
        bottom: 10px;
        font-size: 12px;
        padding: 4px 11px;
    }

    .encar-lightbox__grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 8px;
        max-height: none;
        height: auto;
        margin-top: 4px;
        padding: 0 0 4px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .encar-lightbox__grid::-webkit-scrollbar {
        display: none;
    }

    .encar-lightbox__grid-item {
        flex: 0 0 76px;
        width: 76px;
        height: 57px;
        aspect-ratio: auto;
        scroll-snap-align: start;
        border-radius: 6px;
    }

    .encar-lightbox__grid-item.is-on {
        border-color: #fff;
        box-shadow: 0 0 0 1px #fff;
    }

    .encar-lightbox__grid-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        vertical-align: top;
    }

    .encar-lightbox__footer {
        padding: 10px 0 0;
    }

    .encar-lightbox__midbar {
        display: flex;
        justify-content: flex-end;
        padding: 8px 0 28px;
    }

    .encar-lightbox__close-bottom {
        display: inline-flex;
    }

    .encar-lightbox__mo-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .encar-lightbox__mo-bar-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 48px;
        padding: 0 12px;
        border: 0;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: -0.02em;
        text-decoration: none;
        cursor: pointer;
        box-sizing: border-box;
        transition: transform 0.12s ease, box-shadow 0.12s ease;
    }

    .encar-lightbox__mo-bar-btn:active {
        transform: scale(0.98);
    }

    .encar-lightbox__mo-bar-btn svg {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
        fill: currentColor;
    }

    .encar-lightbox__mo-bar-btn--sms {
        background: #fff;
        color: #111827;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    }

    .encar-lightbox__mo-bar-btn--call {
        background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
        color: #fff;
        box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
    }
}
