/* Dealer self-serve: /for-dealers, /dealers/:slug/claim and /dealer/:id (views/dealer-accounts).
   Loaded after dealdesk.css and leads.css, whose desk-* and lead-* classes these pages share. */

.dealer-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.dealer-search .input {
    flex: 1 1 280px;
    min-width: 0;
}

.dealer-results {
    display: grid;
    gap: 0;
    margin-top: 14px;
    list-style: none;
    border-top: 1px solid var(--line);
}

.dealer-results li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.dealer-results__name {
    display: block;
    font-weight: 600;
}

.dealer-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 24px);
}

.dealer-plan--featured {
    border-color: var(--ink);
    box-shadow: 0 0 0 1px var(--ink);
}

.dealer-plan__name {
    color: var(--text-3);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dealer-plan__price {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.dealer-plan__price span {
    color: var(--text-2);
    font-size: 1rem;
    font-weight: 500;
}

.dealer-plan__items {
    display: grid;
    gap: 8px;
    margin: 16px 0 18px;
    padding-left: 18px;
    color: var(--text-2);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.dealer-side-list {
    color: var(--text-2);
}

.verified-pill {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-family: var(--font-body, inherit);
    font-size: 0.8125rem;
    font-weight: 600;
    vertical-align: middle;
}

.dealer-stats {
    margin-top: 0;
}

.dealer-pricing tbody th {
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.dealer-pricing tbody th .muted {
    display: block;
    font-weight: 400;
}

.dealer-pricing__sub {
    display: block;
    color: var(--text-3);
    font-size: 0.75rem;
}

.dealer-pricing__verdict {
    min-width: 200px;
    color: var(--text-2);
    font-size: 0.875rem;
    line-height: 1.45;
}

.dealer-upsell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.dealer-upsell p {
    flex: 1 1 320px;
}

.dealer-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    list-style: none;
}

@media (max-width: 720px) {
    .dealer-plans {
        grid-template-columns: minmax(0, 1fr);
    }

    .dealer-search .btn {
        width: 100%;
    }
}

/* Dashboard: promote your cars (views/dealer-accounts/promote-section.ejs) */
.promote-price {
    margin-left: 8px;
    color: var(--text-3);
    font-family: var(--font-body, inherit);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Screen-reader-only labels in these tables are absolutely placed: keep them inside the scroller */
.promote-table {
    position: relative;
}

.promote-table tbody th {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.9375rem;
    color: var(--text);
}

.promote-kind {
    display: block;
    color: var(--text-3);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.promote-sub {
    display: block;
    color: var(--text-3);
    font-size: 0.75rem;
    font-weight: 400;
}

.promote-warn {
    display: block;
    margin-top: 4px;
    color: var(--danger, #b42318);
    font-size: 0.8125rem;
    font-weight: 500;
}

.promote-label {
    display: inline-block;
    padding: 2px 9px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.promote-label--great,
.promote-label--good {
    border-color: var(--success, #1f7a4d);
    color: var(--success, #1f7a4d);
}

.promote-buy {
    white-space: nowrap;
}

.promote-on {
    color: var(--success, #1f7a4d);
    font-weight: 600;
}

.promote-move {
    display: flex;
    gap: 6px;
    align-items: center;
}

.promote-move .select {
    min-height: 36px;
    min-width: 180px;
    font-size: 0.875rem;
}

.promote-change {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.promote-phone-only {
    display: none;
}

/* Phones: each car, offer or placement is a stacked card, with its button in view */
@media (max-width: 720px) {
    .promote-phone-only {
        display: inline;
    }

    .promote-table thead {
        display: none;
    }

    .promote-table,
    .promote-table tbody,
    .promote-table tr,
    .promote-table th,
    .promote-table td {
        display: block;
        width: 100%;
    }

    .promote-table tr {
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
    }

    .promote-table tr:last-child {
        border-bottom: 0;
    }

    .promote-table tbody th,
    .promote-table td,
    .promote-table td.is-num {
        padding: 2px 0;
        border-bottom: 0;
        text-align: left;
    }

    .promote-table tbody th {
        margin-bottom: 4px;
    }

    .promote-table .promote-buy,
    .promote-table .promote-change {
        margin-top: 8px;
    }

    .promote-move {
        flex-wrap: wrap;
    }

    .promote-move .select {
        flex: 1 1 180px;
    }
}
