#wil-parts-search {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
}

.wps-ddl-wrap {
    position: relative;
    display: flex;
    gap: 30px;
    padding: 10px 0;
}

#wps-ddl-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    pointer-events: none;
}

#wps-ddl-loading[hidden] {
    display: none;
}

.wps-spinner-sm {
    width: 28px;
    height: 28px;
    border-width: 3px;
}

/* ── Loading overlay ────────────────────────────────── */
.wps-vehicles-wrap {
    position: relative;
    min-height: 120px;
}

#wps-vehicles-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    z-index: 10;
    border-radius: 16px;
}

#wps-vehicles-loading[hidden] {
    display: none;
}

.wps-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: wps-spin 0.75s linear infinite;
}

@keyframes wps-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Recent Arrivals ────────────────────────────────── */
#matching-vehicles {
    padding: 20px 0;
}

#matching-vehicles-swiper {
    padding-bottom: 72px !important;
}

/* Nav buttons — black circle, bottom corners (direct children only) */
#matching-vehicles-swiper > .swiper-button-prev,
#matching-vehicles-swiper > .swiper-button-next {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    top: auto;
    bottom: 0;
    margin-top: 0;
    z-index: 11 !important;
}

#matching-vehicles-swiper > .swiper-button-prev {
    left: 0;
}

#matching-vehicles-swiper > .swiper-button-next {
    right: 0;
}

#matching-vehicles-swiper > .swiper-button-prev::after,
#matching-vehicles-swiper > .swiper-button-next::after {
    font-size: 16px;
    font-weight: 900;
}

/* Outer pagination — centered, same baseline as buttons */
#matching-vehicles-swiper > .swiper-pagination {
    bottom: 16px;
}

#matching-vehicles-swiper > .swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ff770052;
    opacity: 1;
}

#matching-vehicles-swiper > .swiper-pagination .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* ── Inner image swiper ───────────────────────────── */
.wps-img-swiper {
    height: 100%;
}

.wps-img-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wps-img-placeholder {
    background: #d1d5db;
    height: 100%;
}

.wps-img-swiper .swiper-button-prev,
.wps-img-swiper .swiper-button-next {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    margin-top: -16px;
}

.wps-img-swiper .swiper-button-prev::after,
.wps-img-swiper .swiper-button-next::after {
    font-size: 11px;
    font-weight: 900;
}

.wps-img-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.wps-img-swiper .swiper-pagination-bullet-active {
    background: #fff;
}

/* ── Modal ──────────────────────────────────────────── */
.wps-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.wps-modal-overlay[hidden] {
    display: none;
}

.wps-modal-box {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 680px;

    position: relative;
    padding: 24px;

    > div {
        position: relative;
        max-height: 90vh;
        overflow-y: auto;
    }
}

.wps-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
    background-color: transparent !important;
    color: #9ca3af !important;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.wps-modal-days-badge {
    position: absolute;
    top: 10px;
    right: 50px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
}

/* Gallery */
.wps-modal-gallery-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 60px 0 14px;
}

.wps-modal-main-wrap {
    flex: 1;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: #e5e7eb;
}

.wps-modal-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wps-modal-prev,
.wps-modal-next {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #000 !important;
    border: none;
    cursor: pointer;
    font-size: 44px !important;
    line-height: 22px !important;
    color: #fff;
    display: flex;
    align-items: end;
    justify-content: center;
    border-radius: 22px !important;
    font-weight: normal !important;
}

.wps-modal-prev:hover,
.wps-modal-next:hover {
    background: rgba(0, 0, 0, 0.22);
}

/* Thumbnails */
.wps-modal-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.wps-modal-thumb {
    width: 80px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.55;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition:
        opacity 0.15s,
        border-color 0.15s;
}

.wps-modal-thumb.active,
.wps-modal-thumb:hover {
    opacity: 1;
    border-color: var(--primary-color);
}

.wps-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info */
.wps-modal-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
    margin: 0 0 12px;
    line-height: 1.3;
}

ul.wps-modal-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    li {
        padding: 0;
        margin: 0;
        font-size: 14px;
        color: #374151;
    }
}

.wps-modal-meta span {
}

.wps-modal-info {
    position: relative;
}
/* Call button */
.wps-modal-sms,
.wps-modal-call {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
}
.wps-modal-sms {
    right: 80px;
    background-color: transparent !important;
}

/* Count heading */
.wps-vehicles-count {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #111;
}

/* Self-service pricing */
.wps-vehicles-pricing {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0 0 16px;
    font-size: 15px;
    color: #374151;
}

.wps-vehicles-pricing .wps-price strong {
    color: #111;
}

/* ── Part interchange selection modal ───────────────── */
.wps-part-modal-box {
    max-width: 460px;
}

.wps-part-modal-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
    margin: 4px 30px 18px 0;
    line-height: 1.3;
}

.wps-part-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
}

.wps-crumb {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}

.wps-crumb:hover {
    text-decoration: none;
}

.wps-crumb-current {
    color: #6b7280;
    text-decoration: none;
    cursor: default;
}

.wps-crumb-sep {
    color: #9ca3af;
    font-size: 13px;
}

.wps-part-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wps-part-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    color: #111;
    cursor: pointer;
    transition:
        border-color 0.15s,
        background 0.15s;
}

.wps-part-option:hover {
    border-color: var(--primary-color);
    background: #fff7f0;
}

/* ── Card ───────────────────────────────────────────── */
.wps-arrival-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wps-arrival-img {
    position: relative;
    height: 200px;
    flex-shrink: 0;
}

.wps-arrival-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

.wps-arrival-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wps-arrival-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
    margin: 0 0 8px;
    line-height: 1.3;
}

ul.wps-arrival-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    li {
        font-size: 14px;
        color: #374151;
        margin: 0;
        padding: 0;
    }
}

.wps-arrival-footer {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wps-arrival-more {
    flex: 1;
    font-size: 13px;
    color: #9ca3af;
    text-decoration: underline;
}

.wps-arrival-call {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    margin-left: 10px;
}

.swiper-wrapper {
}
.swiper-wrapper > .swiper-slide {
}

@media (max-width: 992px) {
    .wps-modal-box {
        padding: 10px;
    }
    .wps-ddl-wrap {
        display: block;
        select {
            display: block;
            padding-right: 10px;
            margin-bottom: 10px;
            margin-right: 10px;
        }
    }

    li.wps-modal-meta {
        line-height: 30px;
    }
}
