/* ── Swap root ── */
.zm-swap-root,
#zm-swap-root {
    position: relative;
    background: transparent;
}

/* ── Both screens — hidden by default ── */
.zm-screen {
    width: 100%;
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

/* ── Active screen ── */
.zm-screen.is-active {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* ── Exit screen ── */
.zm-screen.is-exit {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
}

/* ── Back bar ── */
.zm-back-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.zm-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px solid #e8e8e8;
    border-radius: 999px;
    padding: 8px 18px 8px 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.zm-btn-back:hover {
    border-color: #e87722;
    color: #e87722;
    background: #fff6ee;
}

.zm-btn-back svg {
    flex-shrink: 0;
    transition: transform 0.15s;
}

.zm-btn-back:hover svg {
    transform: translateX(-3px);
}

.zm-detail-heading {
    font-family: 'Oxanium', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Background helpers ── */
.bg-grey  { background-color: #D9D9D9; }
.bg-white { background-color: #FFFFFF; }

/* ── Variation card ── */
.zm-var-card {
    border: 1.5px solid #e8e8e8;
    border-radius: 14px;
    padding: 18px 16px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.zm-var-card:hover {
    border-color: #e87722;
    box-shadow: 0 4px 20px rgba(232, 119, 34, 0.10);
}

/* ── Card header ── */
.zm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.zm-car-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    margin: 0;
}

.zm-car-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    flex-shrink: 0;
}

.zm-car-rating i { color: #f5a623; }

/* ── Image slider ── */
.zm-img-slider {
    border-radius: 12px;
    background: #f7f8fa;
    overflow: hidden;
}

.zm-slider-wrap {
    overflow: hidden;
    width: 100%;
}

.zm-slider-track {
    display: flex;
    transition: transform 0.38s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.zm-slider-track img {
    width: 100%;
    flex-shrink: 0;
    object-fit: contain;
    height: 170px;
    padding: 10px 20px;
    display: block;
}

.zm-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 6px 0 10px;
}

.zm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background .2s, transform .2s;
    flex-shrink: 0;
}

.zm-dot.active {
    background: #f5a623;
    transform: scale(1.25);
}

/* ── Tags ── */
.zm-car-specs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.zm-car-specs span {
    background: #f0f2f5;
    color: #555;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
}

/* ── Price section ── */
.zm-price-section {
    background: #f7f8fa;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Cash price row */
.zm-cash-row {
    display: flex;
    justify-content: flex-end;
}

.zm-cash-label {
    display: block;
    font-size: 11px;
    color: #888;
    text-align: right;
    margin-bottom: 2px;
}

.zm-cash-val {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    text-align: right;
}

/* ── Radio month buttons ── */
.zm-month-radios {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.zm-month-radios label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.zm-month-radios input[type="radio"] {
    accent-color: #f5a623;
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Monthly price columns ── */
.zm-monthly-prices {
    display: flex;
    gap: 0;
}

.zm-mo-item {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    border-radius: 8px;
    transition: background .15s;
}

.zm-mo-label {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 2px;
}

.zm-mo-val {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #3b82f6;
}

.zm-mo-item.active-price {
    background: #fff3e0;
    border-radius: 8px;
}

.zm-mo-item.active-price .zm-mo-val {
    color: #f5a623;
}

/* ── Action button ── */
.zm-card-action {
    margin-top: auto;
}

.zm-btn-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #f5a623;
    color: #fff !important;
    border: none;
    border-radius: 30px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .1s;
}

.zm-btn-quote:hover {
    background: #e09500;
    transform: scale(1.02);
    color: #fff !important;
    text-decoration: none;
}

.zm-btn-quote svg {
    flex-shrink: 0;
}

/* ── Var name ── */
.zm-var-name {
    font-family: 'Oxanium', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
}

/* ── Car image ── */
.zm-var-image {
    background: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zm-var-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ── Active monthly price ── */
.zm-active-price {
    font-family: 'Oxanium', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #e87722;
    background: #fff6ee;
    border: 1px solid #f5c490;
    border-radius: 8px;
    text-align: center;
    padding: 9px 12px;
    margin-top: 12px;
}

/* ── View Specs CTA ── */
.zm-btn-specs {
    background: #e87722;
    color: #fff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    padding: 11px 16px;
    text-decoration: none !important;
    transition: background 0.18s, transform 0.1s;
    margin-top: auto;
    display: block;
    text-align: center;
}

.zm-btn-specs:hover {
    background: #cf6610;
    color: #fff !important;
}

.zm-btn-specs:active {
    transform: scale(0.98);
}

/* ── SCREEN A list cards: keep “AED …/mo” on one line ── */
.zm-card-model-row {
    align-items: center;
}

.zm-card-model-title {
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.35;
}

.zm-list-card-price-mo {
    display: inline-block;
    white-space: nowrap;
    font-family: 'Oxanium', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #121212;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* ── Responsive ── */
@media (max-width: 575px) {
    .zm-detail-heading {
        display: none;
    }

    .zm-cash-price {
        font-size: 18px;
    }

    .zm-slider-track img {
        height: 140px;
    }

    .zm-month-radios {
        gap: 6px;
    }

    .zm-month-radios label {
        font-size: 11px;
    }
}