/* ==========================================================================
   Pers Vehicles - plugin styles
   Color-agnostic: accents come from the theme's CSS custom properties
   (--pers-primary etc.) with safe fallbacks, so it inherits the client's
   chosen color scheme. Only neutral greys are hard-coded.
   ========================================================================== */

/* ---------- shared field look ---------- */
.pers-veh-form label,
.pers-veh-sfield label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #667085;
    margin: 0 0 5px;
    letter-spacing: .01em;
}
.pers-veh-form input[type="text"],
.pers-veh-form input[type="number"],
.pers-veh-form select,
.pers-veh-search input[type="text"],
.pers-veh-search input[type="number"],
.pers-veh-search select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    color: #1d2939;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}
.pers-veh-form select,
.pers-veh-search select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%3E%3Cpath%20fill%3D%22%2398a2b3%22%20d%3D%22M0%200l5%206%205-6z%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}
.pers-veh-form input:focus,
.pers-veh-form select:focus,
.pers-veh-search input:focus,
.pers-veh-search select:focus {
    border-color: var(--pers-primary, #3492e1);
    box-shadow: 0 0 0 3px var(--pers-primary-soft, rgba(52,146,225,.15));
}

/* ---------- sell / edit form ---------- */
.pers-veh-form {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    background: #fff;
}
.pers-veh-form-title,
.pers-veh-detail-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #1d2939;
}
.pers-veh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px 16px;
}
.pers-veh-suffix {
    font-size: 12px;
    color: #98a2b3;
    margin-left: 6px;
}
.pers-veh-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}
.pers-veh-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #344054;
    margin: 0;
}
.pers-veh-check input { margin: 0; }

/* ---------- search filter panel (inside the Pers "Filters" panel) ---------- */
.pers-veh-search { margin: 4px 0 0; }
.pers-veh-search-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    color: #1d2939;
    padding-top: 10px;
    border-top: 1px solid #eef0f4;
}
/* Two clean columns in the wider Filters popover (Make | Model, etc.). */
.pers-veh-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}
.pers-veh-sfield { min-width: 0; }
.pers-veh-model-wrap select,
.pers-veh-model-wrap input { width: 100%; box-sizing: border-box; }
.pers-veh-range {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pers-veh-range input { text-align: center; min-width: 0; }
.pers-veh-range span { color: #98a2b3; flex: 0 0 auto; }
/* Checkbox-group fields (warranty) span the full width. */
.pers-veh-sfield-multi { grid-column: 1 / -1; }

@media (max-width: 600px) {
    .pers-veh-search-grid { grid-template-columns: 1fr; }
}

/* ---------- item detail spec block ---------- */
.pers-veh-detail {
    margin: 20px 0;
    padding: 18px;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    background: #fff;
}
.pers-veh-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 24px;
}
.pers-veh-detail-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f2f4f7;
    font-size: 14px;
}
.pers-veh-detail-list li .fa {
    width: 18px;
    text-align: center;
    color: var(--pers-primary, #3492e1);
    flex: 0 0 auto;
}
.pers-veh-detail-list .pers-veh-k {
    color: #667085;
    margin-right: auto;
}
.pers-veh-detail-list .pers-veh-v {
    color: #1d2939;
    font-weight: 600;
    text-align: right;
}

@media (max-width: 767px) {
    .pers-veh-grid,
    .pers-veh-search-grid { grid-template-columns: 1fr 1fr; }
}
