:root {
    --mw-blue: #123b73;
    --mw-blue-2: #0b2d58;
    --mw-red: #c92f3c;
    --mw-green: #239a52;
    --mw-ink: #172033;
    --mw-muted: #667085;
    --mw-bg: #f3f5f8;
    --mw-border: #dbe1ea;
    --mw-radius: 14px
}

.mw-body {
    background: var(--mw-bg);
    color: var(--mw-ink);
    font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif
}

.mw-topbar {
    background: var(--mw-blue-2);
    color: #fff;
    font-size: .82rem;
    padding: .45rem 0
}

.mw-topbar a {
    color: #fff;
    text-decoration: none
}

.mw-header .navbar-brand img {
    height: 48px;
    max-width: 190px;
    -o-object-fit: contain;
    object-fit: contain
}

.mw-header .nav-link {
    color: #24324a;
    font-weight: 600
}

.mw-footer {
    background: #17212d;
    color: #cbd5e1
}

.mw-footer a {
    color: #cbd5e1;
    display: block;
    margin: .45rem 0;
    text-decoration: none
}

.footer-logo {
    max-height: 48px;
    max-width: 190px
}

.mw-form-hero,
.mw-listing-hero {
    background: linear-gradient(135deg, #e9f0fb, #fff);
    border-bottom: 1px solid var(--mw-border);
    padding: 2.5rem 0
}

.mw-form-hero h1,
.mw-listing-hero h1 {
    color: var(--mw-blue);
    font-weight: 800
}

.mw-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    margin-top: 1.6rem
}

.mw-steps span {
    color: #4b5565;
    font-weight: 600
}

.mw-steps b {
    align-items: center;
    background: #e3ecfb;
    border-radius: 50%;
    color: var(--mw-blue);
    display: inline-flex;
    height: 34px;
    justify-content: center;
    margin-right: .45rem;
    width: 34px
}

.mw-form-container {
    max-width: 1050px;
    padding-top: 2rem
}

.mw-form-card {
    background: #fff;
    border: 1px solid var(--mw-border);
    border-radius: var(--mw-radius);
    box-shadow: 0 8px 28px rgba(25, 39, 65, .06);
    margin-bottom: 1.5rem;
    padding: 1.75rem
}

.mw-card-heading {
    align-items: flex-start;
    border-bottom: 1px solid #eef1f5;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem
}

.mw-card-heading>div {
    align-items: center;
    display: flex;
    gap: .75rem
}

.mw-card-heading h2 {
    font-size: 1.35rem;
    margin: 0
}

.mw-card-heading p {
    color: var(--mw-muted);
    font-size: .9rem;
    margin: 0
}

.mw-card-number {
    align-items: center;
    background: var(--mw-blue);
    border-radius: 9px;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    width: 34px
}

.mw-car-selector {
    background: #fff;
    border: 1px solid #ccd5e0;
    border-radius: .5rem;
    color: #4b5565;
    display: flex;
    justify-content: space-between;
    padding: .85rem 1rem;
    text-align: left;
    width: 100%
}

.mw-car-selector:focus,
.mw-car-selector:hover {
    border-color: #2d72d9;
    box-shadow: 0 0 0 .2rem rgba(45, 114, 217, .15);
    outline: 0
}

.mw-honeypot {
    left: -10000px !important;
    opacity: 0 !important;
    position: absolute !important
}

.mw-chip {
    background: #fff;
    border: 1px solid #73a4ea;
    border-radius: 999px;
    color: #2460a9;
    font-size: .82rem;
    margin: .15rem;
    padding: .32rem .7rem
}

.mw-chip:hover {
    background: #eef5ff
}

.mw-dropzone {
    align-items: center;
    background: #fbfdff;
    border: 2px dashed #6b9fe5;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 230px;
    padding: 2rem;
    text-align: center;
    transition: .2s
}

.mw-dropzone.dragover {
    background: #eaf3ff;
    border-color: #1f6fd1
}

.mw-dropzone i {
    color: #4285d4;
    font-size: 2.5rem;
    margin-bottom: .8rem
}

.mw-dropzone h3 {
    font-size: 1.1rem
}

.mw-dropzone small {
    color: var(--mw-muted);
    margin-top: .8rem
}

.mw-image-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(5, minmax(0, 1fr))
}

.mw-image-item {
    aspect-ratio: 4/3;
    background: #eef1f5;
    border: 1px solid var(--mw-border);
    border-radius: 10px;
    cursor: grab;
    overflow: hidden;
    position: relative
}

.mw-image-item.dragging {
    opacity: .45
}

.mw-image-item img {
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%
}

.mw-cover-badge {
    background: #1a7f45;
    border-radius: 5px;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    left: .4rem;
    padding: .15rem .4rem;
    position: absolute;
    top: .4rem
}

.mw-upload-progress {
    background: #fff9;
    font-size: .7rem;
    inset: auto 0 0;
    padding: .3rem;
    position: absolute
}

.mw-upload-progress>span {
    animation: mwprogress 1.2s infinite;
    background: #2a7be4;
    display: block;
    height: 4px;
    width: 35%
}

.mw-image-actions {
    bottom: .35rem;
    display: flex;
    gap: .25rem;
    position: absolute;
    right: .35rem
}

.mw-image-actions button {
    background: #fff;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 2px 8px #0003;
    color: #1f2937;
    height: 31px;
    width: 31px
}

.mw-image-actions button:hover {
    background: var(--mw-blue);
    color: #fff
}

@keyframes mwprogress {
    0% {
        width: 10%
    }

    50% {
        width: 75%
    }

    to {
        width: 100%
    }
}

.mw-features {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.mw-feature-group {
    border: 1px solid #edf0f4;
    border-radius: 10px;
    padding: 1rem
}

.mw-feature-group h6 {
    color: var(--mw-blue);
    font-weight: 800
}

.mw-feature-group .form-check {
    margin: .45rem 0
}

.mw-catalog-modal {
    overflow: hidden
}

.mw-catalog-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: min(66vh, 580px)
}

.mw-catalog-column {
    border-right: 1px solid var(--mw-border);
    min-width: 0
}

.mw-catalog-column:last-child {
    border: 0
}

.mw-catalog-column header {
    background: #fafbfc;
    border-bottom: 1px solid var(--mw-border);
    padding: 1rem
}

.mw-catalog-column h3 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase
}

.catalog-list {
    height: calc(100% - 92px);
    overflow: auto;
    padding: .4rem
}

.catalog-item {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 7px;
    color: #252f3f;
    display: flex;
    justify-content: space-between;
    margin: .12rem 0;
    padding: .7rem .65rem;
    text-align: left;
    width: 100%
}

.catalog-item:hover {
    background: #eef4ff
}

.catalog-item.selected {
    background: #e5efff;
    color: #175eb7;
    font-weight: 700
}

.catalog-item.popular:after {
    background: #fff2cd;
    border-radius: 4px;
    color: #8b6200;
    content: "Popular";
    font-size: .62rem;
    margin-left: .35rem;
    padding: .12rem .3rem
}

.catalog-empty {
    color: #8a94a6;
    font-size: .85rem;
    padding: 1.4rem;
    text-align: center
}

.mw-detail-section,
.mw-filter-card,
.mw-seller-card {
    background: #fff;
    border: 1px solid var(--mw-border);
    border-radius: var(--mw-radius);
    padding: 1.25rem
}

.mw-filter-card h2 {
    font-size: 1.2rem
}

.mw-car-card {
    background: #fff;
    border: 1px solid var(--mw-border);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 250px 1fr;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: .2s
}

.mw-car-card:hover {
    box-shadow: 0 12px 30px rgba(20, 40, 75, .1);
    transform: translateY(-1px)
}

.mw-card-image {
    background: #e6eaf0;
    display: block;
    min-height: 190px
}

.mw-card-image img {
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%
}

.mw-no-image {
    align-items: center;
    color: #98a2b3;
    display: flex;
    font-size: 3rem;
    height: 100%;
    justify-content: center
}

.mw-card-content {
    padding: 1.2rem
}

.mw-card-content h3 {
    font-size: 1.25rem
}

.mw-card-content h3 a {
    color: var(--mw-blue);
    text-decoration: none
}

.mw-detail-price,
.mw-price {
    color: var(--mw-red);
    font-size: 1.25rem;
    font-weight: 800
}

.mw-price small {
    color: var(--mw-green);
    font-size: .7rem
}

.mw-location {
    color: var(--mw-muted);
    white-space: nowrap
}

.mw-spec-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1rem 0
}

.mw-spec-row span {
    background: #f0f3f8;
    border-radius: 6px;
    font-size: .82rem;
    padding: .4rem .65rem
}

.mw-card-footer {
    border-top: 1px solid #eef1f5;
    color: var(--mw-muted);
    display: flex;
    font-size: .78rem;
    justify-content: space-between;
    padding-top: .75rem
}

.mw-empty-state {
    background: #fff;
    border: 1px dashed var(--mw-border);
    border-radius: var(--mw-radius);
    padding: 4rem 1rem;
    text-align: center
}

.mw-empty-state i {
    color: #91a0b6;
    font-size: 3rem
}

.mw-gallery {
    background: #fff;
    border: 1px solid var(--mw-border);
    border-radius: var(--mw-radius);
    padding: .75rem
}

.mw-gallery-main {
    background: #111;
    border-radius: 10px;
    height: 510px;
    overflow: hidden
}

.mw-gallery-main img {
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    width: 100%
}

.mw-gallery-thumbs {
    display: flex;
    gap: .5rem;
    overflow: auto;
    padding-top: .6rem
}

.mw-gallery-thumbs button {
    border: 2px solid transparent;
    border-radius: 7px;
    height: 66px;
    min-width: 90px;
    overflow: hidden;
    padding: 0
}

.mw-gallery-thumbs img {
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%
}

.mw-detail-section {
    margin-top: 1rem
}

.mw-detail-section h2 {
    color: var(--mw-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem
}

.mw-detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.mw-detail-grid div {
    border-bottom: 1px solid #edf0f4;
    padding-bottom: .7rem
}

.mw-detail-grid span {
    color: var(--mw-muted);
    display: block;
    font-size: .78rem
}

.mw-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
}

.mw-feature-tags span {
    background: #eef7f1;
    border-radius: 7px;
    color: #24633b;
    padding: .45rem .7rem
}

.mw-feature-tags i {
    margin-right: .4rem
}

.mw-seller-card {
    top: 100px
}

.mw-seller-card h1 {
    font-size: 1.4rem
}

.mw-similar-card {
    background: #fff;
    border: 1px solid var(--mw-border);
    border-radius: 10px;
    color: var(--mw-ink);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: .8rem;
    text-decoration: none
}

.mw-similar-card img {
    aspect-ratio: 4/3;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%
}

.mw-similar-card span,
.mw-similar-card strong {
    padding: .35rem .8rem 0
}

.mw-success-card {
    background: #fff;
    border: 1px solid var(--mw-border);
    border-radius: 18px;
    margin: 3rem auto;
    max-width: 650px;
    padding: 3.5rem 2rem;
    text-align: center
}

.mw-success-icon {
    align-items: center;
    background: #e4f7eb;
    border-radius: 50%;
    color: #168542;
    display: flex;
    font-size: 2rem;
    height: 72px;
    justify-content: center;
    margin: 0 auto 1rem;
    width: 72px
}

.pre-line {
    white-space: pre-line
}

#batteryCapacityWrap,
#customShadeWrap,
.registration-dependent {
    display: none
}

@media(max-width:991.98px) {
    .mw-catalog-columns {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory
    }

    .mw-catalog-column {
        min-width: 78vw;
        scroll-snap-align: start
    }

    .mw-image-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .mw-features {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .mw-gallery-main {
        height: 420px
    }

    .mw-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:767.98px) {
    .mw-card-heading {
        display: block
    }

    .mw-card-heading p {
        margin-top: .6rem
    }

    .mw-form-card {
        padding: 1.15rem
    }

    .mw-steps {
        gap: .7rem;
        justify-content: flex-start
    }

    .mw-steps span {
        font-size: .8rem
    }

    .mw-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .mw-car-card,
    .mw-features {
        grid-template-columns: 1fr
    }

    .mw-card-image {
        height: 230px
    }

    .mw-gallery-main {
        height: 320px
    }

    .mw-detail-grid {
        grid-template-columns: 1fr
    }

    .mw-location {
        white-space: normal
    }

    .mw-catalog-column {
        min-width: 88vw
    }
}

.catalog-section-label {
    color: #7b8798;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: .7rem .65rem .3rem;
    text-transform: uppercase
}
/* v4: always-visible submission action. */
.car-ad-submit{align-items:center;background:#15803d!important;border:1px solid #166534!important;border-radius:9px!important;box-shadow:0 7px 18px rgba(21,128,61,.22)!important;color:#fff!important;display:inline-flex!important;font-weight:750!important;justify-content:center;min-width:210px;opacity:1!important;padding:13px 24px!important}.car-ad-submit:hover{background:#166534!important;color:#fff!important;transform:translateY(-1px)}.car-ad-submit:disabled{background:#6b8f77!important;border-color:#5f7f6b!important;color:#fff!important;opacity:.8!important}
