.vpc-form-field {
    min-width: 150px;
}

.vpc-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.vpc-form-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.vpc-form-field select:hover {
    border-color: #999;
}

.vpc-form-field select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.vpc-form-field select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.vpc-submit-field {
    flex: 0 0 auto;
}


/* Widget Specific Styles */
.widget .vpc-vehicle-selector {
    margin: 0;
}

.widget .vpc-form-row {
    flex-direction: column;
    gap: 12px;
}

.widget .vpc-form-field {
    width: 100%;
}

.widget .vpc-submit-btn {
    width: 100%;
    text-align: center;
}

/* Active Filters Display */
.vpc-active-filters:not(.widget) {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid #e6e8ee;
}

.vpc-active-filters {
    margin-bottom: 1.5rem;
}

.vpc-active-filters-text {
    font-weight: 600;
    color: #333;
}

.vpc-active-filters-text strong {
    color: #007cba;
}

.vpc-active-filters.widget .widget-container {
    font-size: .9375rem;
    padding: 10px 12px;
    border-bottom: 1px solid #eef0f4;
    font-weight: 600;
    color: #2a2a2a;
    line-height: 1.35;
    margin: 0;
}

.vpc-active-filters.widget .widget-container .vpc-active-filters-text {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.vpc-clear-filters {
    color: #b32d2e;
    text-decoration: none;
    font-size: 13px;
    padding: 5px 15px;
    border: 1px solid #b32d2e;
    border-radius: 3px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.vpc-clear-filters:hover {
    background-color: #b32d2e;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vpc-form-row {
        flex-direction: column;
    }

    .vpc-form-field {
        width: 100%;
    }

    .vpc-submit-btn {
        width: 100%;
    }
}

/* Loading State */
.vpc-form-field select option[value=""]:first-child {
    color: #999;
}

/* WooCommerce Integration */
.woocommerce .vpc-vehicle-selector {}

.woocommerce-result-count+.vpc-vehicle-selector {
    margin-top: 20px;
}

/* Category Filter Widget Styles */
.vpc-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vpc-category-list li {
    margin: 0 0 8px 0;
    padding: 0;
}

.vpc-category-list li a {
    display: block;
    padding: 8px 12px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.vpc-category-list li a:hover {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.vpc-category-list li.current-cat>a {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
    font-weight: bold;
}

.vpc-category-list .count {
    float: right;
    color: #999;
    font-size: 0.9em;
}

.vpc-category-list li.current-cat>a .count {
    color: rgba(255, 255, 255, 0.8);
}

.vpc-category-list ul.children {
    list-style: none;
    margin: 8px 0 0 15px;
    padding: 0;
}

.vpc-category-list ul.children li {
    margin: 4px 0;
}

.vpc-category-list ul.children li a {
    padding: 6px 10px;
    font-size: 0.95em;
    background: #fff;
}

.vpc-category-dropdown {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
}

.vpc-category-dropdown:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

/* Active Filters - Multiple Filter Actions */
.vpc-filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.vpc-clear-filter {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border: 2px solid #ddd;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}

.clear-vehicle,
.clear-category {
    border-color: #65acff;
}

.clear-vehicle:hover,
.clear-category:hover {
    border-color: #0067b2;
}


.vpc-clear-filter svg {
    width: 16px;
    height: 16px;
}

.vpc-clear-filter.vpc-clear-all {
    border-color: #ffe0e0;
    background: #ffe0e0;
    color: #b32d2e;
    width: 100%;
    text-align: center;
    justify-content: center;
}

.vpc-clear-filter.vpc-clear-all:hover {
    background: #b32d2e;
    border-color: #b32d2e;
    color: #fff;
}

/* VPC Category Filter Widget - Expandable List Styles */

.vpc-category-expandable {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.vpc-category-expandable li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e5e5e5;
}

.vpc-category-expandable li:last-child {
    border-bottom: none;
}

.vpc-category-expandable a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    position: relative;
}

.vpc-category-expandable a:hover {
    background-color: #f5f5f5;
}

.vpc-category-expandable li.current-cat>a {
    color: #0073aa;
    font-weight: bold;
}

/* Expand/Collapse Indicator */
.vpc-expand-indicator {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
    cursor: pointer;
    user-select: none;
    font-weight: normal;
}

.vpc-expand-indicator::before {
    content: '›';
    display: inline-block;
    transition: transform 0.2s ease;
}

.vpc-expanded>a .vpc-expand-indicator::before {
    transform: rotate(90deg);
}

.vpc-expanded {
    background-color: #eee;
}

/* Children Lists */
.vpc-children {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.vpc-children li {
    border-bottom: 1px solid #e5e5e5;
}

.vpc-children li:last-child {
    border-bottom: none;
}

/* Depth 1 - First level children */
.vpc-depth-1 li a {
    padding-left: 32px;
    font-size: 13px;
    font-weight: 500;
}

.vpc-depth-1 li a::before {
    content: '–';
    position: absolute;
    left: 16px;
    color: #999;
}

/* Depth 2 - Second level children */
.vpc-depth-2 {
    background-color: #fff;
}

.vpc-depth-2 li a {
    padding-left: 48px;
    font-size: 13px;
    font-weight: 500;
}

.vpc-depth-2 li a::before {
    content: '—';
    position: absolute;
    left: 26px;
    color: #999;
}

/* Depth 3 - Third level children */
.vpc-depth-3 {
    background-color: #fff;
}

.vpc-depth-3 li a {
    padding-left: 64px;
    font-size: 13px;
    font-weight: 500;
}

.vpc-depth-3 li a::before {
    content: '—';
    position: absolute;
    left: 48px;
    color: #999;
}

/* Product Count */
.vpc-category-expandable .count {
    font-size: 12px;
    color: #999;
    margin-left: 4px;
    font-weight: normal;
}

/* Remove expand indicator text, use only arrow */
.vpc-expand-indicator {
    right: 16px;
    font-size: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vpc-expand-indicator::before {
    content: '';
    font-size: 20px;
    line-height: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor' class='size-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m8.25 4.5 7.5 7.5-7.5 7.5' /%3E%3C/svg%3E%0A");
    width: 16px;
    height: 16px;
}

/* Adjust link padding to accommodate arrow */
.vpc-category-expandable li[data-term-id]>a {
    padding-right: 44px;
}

/* Animation for expanding/collapsing */
.vpc-children {
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vpc-category-expandable a {
        padding: 10px 12px;
        font-size: 13px;
    }

    .vpc-depth-1 li a {
        padding-left: 28px;
    }

    .vpc-depth-2 li a {
        padding-left: 44px;
    }

    .vpc-depth-3 li a {
        padding-left: 60px;
    }
}