/**
 * Enhanced Phone Models Filter Styles
 * Complete styling for all phone models functionality with modern design
 * Version: 1.1.0
 * Customize these styles to match your theme
 */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (CSS Variables)
   ========================================================================== */

:root {
    /* Primary Colors */
    --pm-primary-color: #0073aa;
    --pm-primary-hover: #005a87;
    --pm-primary-light: rgba(0, 115, 170, 0.1);
    
    /* Background Colors */
    --pm-bg-primary: #aeecff;
    --pm-bg-secondary: #ffffff;
    --pm-bg-tertiary: #f1f1f1;
    
    /* Text Colors */
    --pm-text-primary: #333333;
    --pm-text-secondary: #666666;
    --pm-text-muted: #888888;
    --pm-text-light: #999999;
    
    /* Border Colors */
    --pm-border-color: #e5e5e5;
    --pm-border-light: #eeeeee;
    --pm-border-dark: #dddddd;
    
    /* Spacing */
    --pm-spacing-xs: 0.25rem;
    --pm-spacing-sm: 0.5rem;
    --pm-spacing-md: 1rem;
    --pm-spacing-lg: 1.5rem;
    --pm-spacing-xl: 2rem;
    
    /* Typography */
    --pm-font-size-xs: 0.75rem;
    --pm-font-size-sm: 0.85rem;
    --pm-font-size-base: 1rem;
    --pm-font-size-lg: 1.125rem;
    --pm-font-weight-normal: 400;
    --pm-font-weight-medium: 500;
    --pm-font-weight-bold: 700;
    
    /* Transitions */
    --pm-transition-fast: 0.15s ease-out;
    --pm-transition-normal: 0.3s ease-out;
    --pm-transition-slow: 0.4s ease-out;
    
    /* Shadows */
   /*  --pm-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --pm-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --pm-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --pm-border-radius-sm: 0.25rem;
    --pm-border-radius-md: 0.375rem;
    --pm-border-radius-lg: 0.5rem;
}

/* ==========================================================================
   SHOP/CATEGORY FILTER STYLES
   ========================================================================== */

.phone-models-filter {
    margin-bottom: var(--pm-spacing-lg);
    padding: var(--pm-spacing-lg);
    background: var(--pm-bg-primary);
    border-radius: var(--pm-border-radius-lg);
    border: 1px solid var(--pm-border-color);
    box-shadow: var(--pm-shadow-sm);
    transition: box-shadow var(--pm-transition-normal);
	float: left;
}

.phone-models-filter:hover {
    box-shadow: var(--pm-shadow-md);
}

.phone-models-toggle {
    margin: 0 0 var(--pm-spacing-md) 0;
    color: var(--pm-text-primary);
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--pm-spacing-sm) 0;
    border-bottom: 1px solid var(--pm-border-dark);
    font-size: var(--pm-font-size-lg);
    font-weight: var(--pm-font-weight-bold);
    transition: color var(--pm-transition-fast);
}

.phone-models-toggle:hover {
    color: var(--pm-primary-color);
}

.phone-models-toggle:focus {
    outline: 2px solid var(--pm-primary-color);
    outline-offset: 2px;
    border-radius: var(--pm-border-radius-sm);
}

.toggle-icon {
    transition: transform var(--pm-transition-normal);
    font-size: var(--pm-font-size-xs);
    color: var(--pm-text-secondary);
    margin-left: var(--pm-spacing-sm);
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.phone-models-content {
    overflow: hidden;
    transition: max-height var(--pm-transition-slow) ease-out;
}

.phone-models-content.expanded {
    overflow-y: auto;
    max-height: 60vh;
    scrollbar-width: thin;
    scrollbar-color: var(--pm-border-color) transparent;
}

/* Custom scrollbar for WebKit browsers */
.phone-models-content.expanded::-webkit-scrollbar {
    width: 6px;
}

.phone-models-content.expanded::-webkit-scrollbar-track {
    background: transparent;
}

.phone-models-content.expanded::-webkit-scrollbar-thumb {
    background-color: var(--pm-border-color);
    border-radius: var(--pm-border-radius-sm);
}

.phone-models-content.expanded::-webkit-scrollbar-thumb:hover {
    background-color: var(--pm-border-dark);
}

.phone-models-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.phone-model-brand {
    margin-bottom: var(--pm-spacing-md);
    border-bottom: 1px solid var(--pm-border-light);
    padding-bottom: var(--pm-spacing-sm);
}

.phone-model-brand:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.brand-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    padding: var(--pm-spacing-xs) 0;
    transition: opacity var(--pm-transition-fast);
}

.brand-toggle:hover {
    opacity: 0.8;
}

.brand-toggle:focus {
    outline: 2px solid var(--pm-primary-color);
    outline-offset: 2px;
    border-radius: var(--pm-border-radius-sm);
}

.brand-icon,
.series-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: var(--pm-font-size-xs);
    transition: transform var(--pm-transition-fast), color var(--pm-transition-fast);
    margin-right: var(--pm-spacing-sm);
    color: var(--pm-text-secondary);
    flex-shrink: 0;
}

.brand-icon.expanded,
.series-icon.expanded {
    transform: rotate(90deg);
    color: var(--pm-primary-color);
}

.phone-model-brand > .brand-toggle > a {
    font-weight: var(--pm-font-weight-bold);
    color: var(--pm-primary-color);
    text-decoration: none;
    margin-left: var(--pm-spacing-sm);
    transition: color var(--pm-transition-fast);
    flex: 1;
}

.phone-model-brand > .brand-toggle > a:hover {
    color: var(--pm-primary-hover);
    text-decoration: underline;
}

.phone-models-sublist {
    list-style: none;
    margin: var(--pm-spacing-sm) 0 0 var(--pm-spacing-lg);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--pm-transition-slow) ease-out;
    background: var(--pm-bg-secondary);
    border-radius: var(--pm-border-radius-md);
    margin-top: var(--pm-spacing-sm);
}

.phone-models-sublist.expanded {
    max-height: 1000px;
    overflow: visible;
    padding: var(--pm-spacing-sm);
    border: 1px solid var(--pm-border-light);
}

.phone-model-series {
    margin-bottom: var(--pm-spacing-sm);
    padding-bottom: var(--pm-spacing-xs);
    border-bottom: 1px solid var(--pm-border-light);
}

.phone-model-series:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.series-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    padding: var(--pm-spacing-xs) 0;
    transition: opacity var(--pm-transition-fast);
}

.series-toggle:hover {
    opacity: 0.8;
}

.series-toggle:focus {
    outline: 2px solid var(--pm-primary-color);
    outline-offset: 2px;
    border-radius: var(--pm-border-radius-sm);
}

.series-toggle > a,
.phone-model-series > a {
    color: var(--pm-text-secondary);
    text-decoration: none;
    font-size: var(--pm-font-size-sm);
    margin-left: var(--pm-spacing-sm);
    font-weight: var(--pm-font-weight-medium);
    transition: color var(--pm-transition-fast);
    flex: 1;
}

.series-toggle > a:hover,
.phone-model-series > a:hover {
    color: var(--pm-primary-color);
    text-decoration: underline;
}

.phone-models-models {
    list-style: none;
    margin: var(--pm-spacing-xs) 0 0 calc(var(--pm-spacing-lg) + var(--pm-spacing-sm));
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--pm-transition-slow) ease-out;
}

.phone-models-models.expanded {
    max-height: 500px;
    overflow: visible;
    padding: var(--pm-spacing-sm);
    background: var(--pm-bg-tertiary);
    border-radius: var(--pm-border-radius-sm);
    margin-top: var(--pm-spacing-sm);
}

.phone-models-models li {
    margin-bottom: var(--pm-spacing-xs);
}

.phone-models-models li:last-child {
    margin-bottom: 0;
}

.phone-models-models a {
    color: var(--pm-text-muted);
    text-decoration: none;
    font-size: var(--pm-font-size-sm);
    padding: var(--pm-spacing-xs) var(--pm-spacing-sm);
    border-radius: var(--pm-border-radius-sm);
    transition: all var(--pm-transition-fast);
    display: inline-block;
    line-height: 1.4;
}

.phone-models-models a:hover {
    text-decoration: underline;
    color: var(--pm-primary-color);
    background: var(--pm-primary-light);
    transform: translateX(2px);
}

/* ==========================================================================
   SHORTCODE FILTER STYLES
   ========================================================================== */

.shortcode-phone-models-filter {
    margin-bottom: var(--pm-spacing-lg);
    padding: var(--pm-spacing-lg);
    background: var(--pm-bg-primary);
    border-radius: var(--pm-border-radius-lg);
    border: 1px solid var(--pm-border-color);
    box-shadow: var(--pm-shadow-sm);
    transition: box-shadow var(--pm-transition-normal);
}

.shortcode-phone-models-filter:hover {
    box-shadow: var(--pm-shadow-md);
}

/* Style variations */
.shortcode-style-compact {
    padding: var(--pm-spacing-md);
    font-size: var(--pm-font-size-sm);
}

.shortcode-style-minimal {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: var(--pm-spacing-sm) 0;
}

.shortcode-style-minimal .shortcode-phone-models-toggle,
.shortcode-style-minimal .shortcode-phone-models-title {
    border-bottom: 2px solid var(--pm-primary-color);
    padding-bottom: var(--pm-spacing-sm);
}

.shortcode-phone-models-toggle {
    margin: 0 0 var(--pm-spacing-md) 0;
    color: var(--pm-text-primary);
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--pm-spacing-sm) 0;
    border-bottom: 1px solid var(--pm-border-dark);
    font-size: var(--pm-font-size-lg);
    font-weight: var(--pm-font-weight-bold);
    transition: color var(--pm-transition-fast);
}

.shortcode-phone-models-toggle:hover {
    color: var(--pm-primary-color);
}

.shortcode-phone-models-toggle:focus {
    outline: 2px solid var(--pm-primary-color);
    outline-offset: 2px;
    border-radius: var(--pm-border-radius-sm);
}

.shortcode-phone-models-title {
    margin: 0 0 var(--pm-spacing-md) 0;
    color: var(--pm-text-primary);
    padding: var(--pm-spacing-sm) 0;
    border-bottom: 1px solid var(--pm-border-dark);
    font-size: var(--pm-font-size-lg);
    font-weight: var(--pm-font-weight-bold);
}

.shortcode-toggle-icon {
    transition: transform var(--pm-transition-normal);
    font-size: var(--pm-font-size-xs);
    font-weight: var(--pm-font-weight-normal);
    color: var(--pm-text-secondary);
    margin-left: var(--pm-spacing-sm);
}

.shortcode-toggle-icon.rotated {
    transform: rotate(180deg);
}

.shortcode-phone-models-content {
    overflow: hidden;
    transition: max-height var(--pm-transition-slow) ease-out;
}

.shortcode-phone-models-content.expanded {
    overflow-y: auto;
    max-height: 60vh;
    scrollbar-width: thin;
    scrollbar-color: var(--pm-border-color) transparent;
}

.shortcode-phone-models-content.expanded::-webkit-scrollbar {
    width: 6px;
}

.shortcode-phone-models-content.expanded::-webkit-scrollbar-track {
    background: transparent;
}

.shortcode-phone-models-content.expanded::-webkit-scrollbar-thumb {
    background-color: var(--pm-border-color);
    border-radius: var(--pm-border-radius-sm);
}

.shortcode-phone-models-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shortcode-phone-model-brand {
    margin-bottom: var(--pm-spacing-md);
    border-bottom: 1px solid var(--pm-border-light);
    padding-bottom: var(--pm-spacing-sm);
}

.shortcode-phone-model-brand:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.shortcode-brand-toggle,
.shortcode-series-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    padding: var(--pm-spacing-xs) 0;
    transition: opacity var(--pm-transition-fast);
}

.shortcode-brand-toggle:hover,
.shortcode-series-toggle:hover {
    opacity: 0.8;
}

.shortcode-brand-toggle:focus,
.shortcode-series-toggle:focus {
    outline: 2px solid var(--pm-primary-color);
    outline-offset: 2px;
    border-radius: var(--pm-border-radius-sm);
}

.shortcode-brand-icon,
.shortcode-series-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: var(--pm-font-size-xs);
    transition: transform var(--pm-transition-fast), color var(--pm-transition-fast);
    margin-right: var(--pm-spacing-sm);
    color: var(--pm-text-secondary);
    flex-shrink: 0;
}

.shortcode-brand-icon.expanded,
.shortcode-series-icon.expanded {
    transform: rotate(90deg);
    color: var(--pm-primary-color);
}

.shortcode-phone-model-brand > .shortcode-brand-toggle > a,
.shortcode-brand-link {
    font-weight: var(--pm-font-weight-bold);
    color: var(--pm-primary-color);
    text-decoration: none;
    margin-left: var(--pm-spacing-sm);
    transition: color var(--pm-transition-fast);
    flex: 1;
}

.shortcode-phone-model-brand > .shortcode-brand-toggle > a:hover,
.shortcode-brand-link:hover {
    color: var(--pm-primary-hover);
    text-decoration: underline;
}

.shortcode-phone-models-sublist {
    list-style: none;
    margin: var(--pm-spacing-sm) 0 0 var(--pm-spacing-lg);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--pm-transition-slow) ease-out;
    background: var(--pm-bg-secondary);
    border-radius: var(--pm-border-radius-md);
}

.shortcode-phone-models-sublist.expanded {
    max-height: 1000px;
    overflow: visible;
    padding: var(--pm-spacing-sm);
    border: 1px solid var(--pm-border-light);
    margin-top: var(--pm-spacing-sm);
}

.shortcode-phone-model-series {
    margin-bottom: var(--pm-spacing-sm);
    padding-bottom: var(--pm-spacing-xs);
    border-bottom: 1px solid var(--pm-border-light);
}

.shortcode-phone-model-series:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.shortcode-series-toggle > a,
.shortcode-phone-model-series > a {
    color: var(--pm-text-secondary);
    text-decoration: none;
    font-size: var(--pm-font-size-sm);
    margin-left: var(--pm-spacing-sm);
    font-weight: var(--pm-font-weight-medium);
    transition: color var(--pm-transition-fast);
    flex: 1;
}

.shortcode-series-toggle > a:hover,
.shortcode-phone-model-series > a:hover {
    color: var(--pm-primary-color);
    text-decoration: underline;
}

.shortcode-phone-models-models {
    list-style: none;
    margin: var(--pm-spacing-xs) 0 0 calc(var(--pm-spacing-lg) + var(--pm-spacing-sm));
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--pm-transition-slow) ease-out;
}

.shortcode-phone-models-models.expanded {
    max-height: 500px;
    overflow: visible;
    padding: var(--pm-spacing-sm);
    background: var(--pm-bg-tertiary);
    border-radius: var(--pm-border-radius-sm);
    margin-top: var(--pm-spacing-sm);
}

.shortcode-phone-models-models li {
    margin-bottom: var(--pm-spacing-xs);
}

.shortcode-phone-models-models li:last-child {
    margin-bottom: 0;
}

.shortcode-phone-models-models a {
    color: var(--pm-text-muted);
    text-decoration: none;
    font-size: var(--pm-font-size-sm);
    padding: var(--pm-spacing-xs) var(--pm-spacing-sm);
    border-radius: var(--pm-border-radius-sm);
    transition: all var(--pm-transition-fast);
    display: inline-block;
    line-height: 1.4;
}

.shortcode-phone-models-models a:hover {
    text-decoration: underline;
    color: var(--pm-primary-color);
    background: var(--pm-primary-light);
    transform: translateX(2px);
}

.shortcode-count {
    font-size: var(--pm-font-size-xs);
    color: var(--pm-text-light);
    font-weight: var(--pm-font-weight-normal);
    margin-left: var(--pm-spacing-xs);
    background: var(--pm-bg-tertiary);
    padding: 2px 6px;
    border-radius: var(--pm-border-radius-sm);
}

.shortcode-no-models {
    color: var(--pm-text-secondary);
    font-style: italic;
    text-align: center;
    padding: var(--pm-spacing-lg);
    background: var(--pm-bg-tertiary);
    border-radius: var(--pm-border-radius-md);
    border: 2px dashed var(--pm-border-color);
}

/* ==========================================================================
   PRODUCT PAGE STYLES
   ========================================================================== */

.product-phone-models {
    margin: var(--pm-spacing-md) 0;
    padding: var(--pm-spacing-md);
    background: var(--pm-bg-tertiary);
    border-radius: var(--pm-border-radius-md);
    border: 1px solid var(--pm-border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--pm-spacing-sm);
}

.phone-models-label {
    font-weight: var(--pm-font-weight-bold);
    color: var(--pm-text-primary);
    margin-right: var(--pm-spacing-sm);
    flex-shrink: 0;
}

.product-phone-models a {
    color: var(--pm-primary-color);
    text-decoration: none;
    font-weight: var(--pm-font-weight-medium);
    transition: color var(--pm-transition-fast);
}

.product-phone-models a:hover {
    color: var(--pm-primary-hover);
    text-decoration: underline;
}

/* Badge style for product display */
.phone-model-badge {
    display: inline-block;
    background: var(--pm-primary-color);
    color: white;
    padding: var(--pm-spacing-xs) var(--pm-spacing-sm);
    border-radius: var(--pm-border-radius-md);
    font-size: var(--pm-font-size-xs);
    font-weight: var(--pm-font-weight-medium);
    margin: 2px;
    transition: all var(--pm-transition-fast);
}

.phone-model-badge:hover {
    background: var(--pm-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--pm-shadow-sm);
}

.phone-model-badge a {
    color: white;
    text-decoration: none;
}

.phone-model-badge a:hover {
    color: white;
}

/* ==========================================================================
   WIDGET STYLES
   ========================================================================== */

.phone-models-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.phone-models-widget-list li {
    margin-bottom: var(--pm-spacing-sm);
    padding: var(--pm-spacing-sm) 0;
    border-bottom: 1px solid var(--pm-border-light);
    transition: background-color var(--pm-transition-fast);
}

.phone-models-widget-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.phone-models-widget-list li:hover {
    background-color: var(--pm-primary-light);
    border-radius: var(--pm-border-radius-sm);
    padding-left: var(--pm-spacing-sm);
    padding-right: var(--pm-spacing-sm);
}

.phone-models-widget-list a {
    color: var(--pm-text-primary);
    text-decoration: none;
    font-weight: var(--pm-font-weight-medium);
    transition: color var(--pm-transition-fast);
    display: block;
}

.phone-models-widget-list a:hover {
    color: var(--pm-primary-color);
    text-decoration: underline;
}

/* Widget-specific collapsible styles */
.widget-phone-models-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--pm-spacing-xs) 0;
    margin-bottom: var(--pm-spacing-md);
    border-bottom: 1px solid var(--pm-border-dark);
    transition: opacity var(--pm-transition-fast);
}

.widget-phone-models-toggle:hover {
    opacity: 0.8;
}

.widget-phone-models-toggle:focus {
    outline: 2px solid var(--pm-primary-color);
    outline-offset: 2px;
    border-radius: var(--pm-border-radius-sm);
}

.widget-toggle-icon {
    transition: transform var(--pm-transition-normal);
    font-size: var(--pm-font-size-xs);
    color: var(--pm-text-secondary);
}

.widget-toggle-icon.rotated {
    transform: rotate(180deg);
}

.widget-phone-models-content {
    overflow: hidden;
    transition: max-height var(--pm-transition-normal) ease-out;
}

.widget-phone-model-brand {
    margin-bottom: var(--pm-spacing-sm);
    padding: var(--pm-spacing-sm) 0;
    border-bottom: 1px solid var(--pm-border-light);
}

.widget-phone-model-brand:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.widget-brand-toggle,
.widget-series-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    padding: var(--pm-spacing-xs) 0;
    transition: opacity var(--pm-transition-fast);
}

.widget-brand-toggle:hover,
.widget-series-toggle:hover {
    opacity: 0.8;
}

.widget-brand-toggle:focus,
.widget-series-toggle:focus {
    outline: 2px solid var(--pm-primary-color);
    outline-offset: 2px;
    border-radius: var(--pm-border-radius-sm);
}

.widget-brand-icon,
.widget-series-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: var(--pm-font-size-xs);
    transition: transform var(--pm-transition-fast);
    margin-right: var(--pm-spacing-sm);
    color: var(--pm-text-secondary);
    flex-shrink: 0;
}

.widget-brand-icon.expanded,
.widget-series-icon.expanded {
    transform: rotate(90deg);
    color: var(--pm-primary-color);
}

.widget-phone-model-brand > .widget-brand-toggle > a,
.widget-phone-model-brand > a {
    font-weight: var(--pm-font-weight-bold);
    color: var(--pm-text-primary);
    text-decoration: none;
    margin-left: var(--pm-spacing-sm);
    transition: color var(--pm-transition-fast);
    flex: 1;
}

.widget-phone-model-brand > .widget-brand-toggle > a:hover,
.widget-phone-model-brand > a:hover {
    color: var(--pm-primary-color);
    text-decoration: underline;
}

.widget-phone-models-sublist {
    list-style: none;
    margin: var(--pm-spacing-xs) 0 0 var(--pm-spacing-lg);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--pm-transition-normal) ease-out;
}

.widget-phone-models-sublist.expanded {
    max-height: 500px;
    overflow: visible;
    padding: var(--pm-spacing-sm);
    background: var(--pm-bg-secondary);
    border-radius: var(--pm-border-radius-sm);
    margin-top: var(--pm-spacing-sm);
}

.widget-phone-model-series {
    margin-bottom: var(--pm-spacing-xs);
}

.widget-phone-model-series:last-child {
    margin-bottom: 0;
}

.widget-series-toggle > a,
.widget-phone-model-series > a {
    color: var(--pm-text-secondary);
    text-decoration: none;
    font-size: var(--pm-font-size-sm);
    margin-left: var(--pm-spacing-sm);
    transition: color var(--pm-transition-fast);
    flex: 1;
}

.widget-series-toggle > a:hover,
.widget-phone-model-series > a:hover {
    color: var(--pm-primary-color);
    text-decoration: underline;
}

.widget-phone-models-models {
    list-style: none;
    margin: var(--pm-spacing-xs) 0 0 calc(var(--pm-spacing-lg) + var(--pm-spacing-sm));
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--pm-transition-normal) ease-out;
}

.widget-phone-models-models.expanded {
    max-height: 300px;
    overflow: visible;
    padding: var(--pm-spacing-sm);
    background: var(--pm-bg-tertiary);
    border-radius: var(--pm-border-radius-sm);
    margin-top: var(--pm-spacing-sm);
}

.widget-phone-models-models li {
    margin-bottom: var(--pm-spacing-xs);
}

.widget-phone-models-models li:last-child {
    margin-bottom: 0;
}

.widget-phone-models-models a {
    color: var(--pm-text-muted);
    text-decoration: none;
    font-size: var(--pm-font-size-sm);
    transition: color var(--pm-transition-fast);
    display: block;
    padding: 2px 0;
}

.widget-phone-models-models a:hover {
    color: var(--pm-primary-color);
    text-decoration: underline;
}

/* ==========================================================================
   LOADING AND ANIMATION STATES
   ========================================================================== */

.phone-models-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--pm-border-color);
    border-radius: 50%;
    border-top-color: var(--pm-primary-color);
    animation: pm-spin 1s ease-in-out infinite;
    margin-right: var(--pm-spacing-sm);
}

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

.phone-models-fade-in {
    animation: pm-fade-in 0.3s ease-out;
}

@keyframes pm-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phone-models-slide-down {
    animation: pm-slide-down var(--pm-transition-slow) ease-out;
}

@keyframes pm-slide-down {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 1000px;
        opacity: 1;
    }
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

/* Focus indicators */
.phone-models-filter *:focus,
.shortcode-phone-models-filter *:focus,
.widget *:focus {
    outline: 2px solid var(--pm-primary-color);
    outline-offset: 2px;
    border-radius: var(--pm-border-radius-sm);
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --pm-border-color: #000000;
        --pm-text-primary: #000000;
        --pm-text-secondary: #000000;
        --pm-bg-primary: #ffffff;
        --pm-bg-secondary: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .phone-models-content,
    .shortcode-phone-models-content,
    .widget-phone-models-content,
    .phone-models-sublist,
    .shortcode-phone-models-sublist,
    .widget-phone-models-sublist,
    .phone-models-models,
    .shortcode-phone-models-models,
    .widget-phone-models-models,
    .toggle-icon,
    .shortcode-toggle-icon,
    .widget-toggle-icon,
    .brand-icon,
    .series-icon,
    .shortcode-brand-icon,
    .shortcode-series-icon,
    .widget-brand-icon,
    .widget-series-icon {
        transition: none;
    }
    
    .phone-models-loading {
        animation: none;
        border-top-color: var(--pm-border-color);
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet styles */
@media (max-width: 1024px) {
    .phone-models-filter,
    .shortcode-phone-models-filter {
        padding: var(--pm-spacing-md);
        margin-bottom: var(--pm-spacing-md);
    }
    
    .phone-models-content.expanded,
    .shortcode-phone-models-content.expanded {
        max-height: 50vh;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    :root {
        --pm-spacing-md: 0.75rem;
        --pm-spacing-lg: 1rem;
        --pm-font-size-lg: 1rem;
        --pm-font-size-base: 0.9rem;
        --pm-font-size-sm: 0.8rem;
    }
    
    .phone-models-filter,
    .shortcode-phone-models-filter {
        padding: var(--pm-spacing-md);
        margin-bottom: var(--pm-spacing-md);
        border-radius: var(--pm-border-radius-md);
    }
    
    .phone-models-content.expanded,
    .shortcode-phone-models-content.expanded {
        max-height: 40vh;
    }
    
    .phone-models-toggle,
    .shortcode-phone-models-toggle {
        font-size: var(--pm-font-size-base);
        padding: var(--pm-spacing-sm) 0;
    }
    
    .phone-models-sublist,
    .shortcode-phone-models-sublist {
        margin-left: var(--pm-spacing-md);
    }
    
    .phone-models-models,
    .shortcode-phone-models-models {
        margin-left: var(--pm-spacing-lg);
    }
    
    .product-phone-models {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .phone-models-label {
        margin-bottom: var(--pm-spacing-xs);
    }
    
    /* Touch-friendly tap targets */
    .brand-toggle,
    .series-toggle,
    .shortcode-brand-toggle,
    .shortcode-series-toggle,
    .widget-brand-toggle,
    .widget-series-toggle {
        min-height: 44px;
        padding: var(--pm-spacing-sm);
        margin: 2px 0;
    }
    
    .phone-models-toggle,
    .shortcode-phone-models-toggle,
    .widget-phone-models-toggle {
        min-height: 44px;
        padding: var(--pm-spacing-sm);
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    :root {
        --pm-spacing-sm: 0.25rem;
        --pm-spacing-md: 0.5rem;
        --pm-spacing-lg: 0.75rem;
    }
    
    .phone-models-filter,
    .shortcode-phone-models-filter {
        padding: var(--pm-spacing-sm);
        margin-bottom: var(--pm-spacing-sm);
    }
    
    .phone-models-content.expanded,
    .shortcode-phone-models-content.expanded {
        max-height: 35vh;
    }
    
    .phone-models-sublist.expanded,
    .shortcode-phone-models-sublist.expanded,
    .phone-models-models.expanded,
    .shortcode-phone-models-models.expanded {
        padding: var(--pm-spacing-xs);
    }
}

/* Print styles */
@media print {
    .phone-models-filter,
    .shortcode-phone-models-filter {
        background: white;
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .phone-models-content,
    .shortcode-phone-models-content {
        max-height: none !important;
        overflow: visible !important;
    }
    
    .toggle-icon,
    .shortcode-toggle-icon,
    .brand-icon,
    .series-icon,
    .shortcode-brand-icon,
    .shortcode-series-icon {
        display: none;
    }
    
    .phone-models-sublist,
    .shortcode-phone-models-sublist,
    .phone-models-models,
    .shortcode-phone-models-models {
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
    }
}

/* ==========================================================================
   DARK MODE SUPPORT
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --pm-primary-color: #4a9eff;
        --pm-primary-hover: #2c7ce0;
        --pm-primary-light: rgba(74, 158, 255, 0.1);
        
        --pm-bg-primary: #1a1a1a;
        --pm-bg-secondary: #2a2a2a;
        --pm-bg-tertiary: #333333;
        
        --pm-text-primary: #ffffff;
        --pm-text-secondary: #cccccc;
        --pm-text-muted: #aaaaaa;
        --pm-text-light: #888888;
        
        --pm-border-color: #444444;
        --pm-border-light: #555555;
        --pm-border-dark: #333333;
    }
    
    .phone-model-badge {
        background: var(--pm-primary-color);
        color: #000000;
    }
    
    .phone-model-badge a {
        color: #000000;
    }
    
    .phone-model-badge a:hover {
        color: #000000;
    }
}

/* ==========================================================================
   THEME INTEGRATION HELPERS
   ========================================================================== */

/* WordPress theme compatibility */
.wp-block-group .phone-models-filter,
.wp-block-group .shortcode-phone-models-filter {
    margin-top: 0;
}

.entry-content .phone-models-filter,
.entry-content .shortcode-phone-models-filter {
    margin: var(--pm-spacing-lg) 0;
}

/* Popular theme compatibility */
.storefront .phone-models-filter,
.astra .phone-models-filter,
.oceanwp .phone-models-filter {
    font-family: inherit;
}

.generatepress .phone-models-filter {
    color: inherit;
}

/* ==========================================================================
   CUSTOMIZATION SECTION
   Add your custom styles below this line
   ========================================================================== */

/* 
 * Example customizations:
 * 
 * Change primary color:
 * :root { --pm-primary-color: #ff6b35; }
 * 
 * Change background:
 * .phone-models-filter { --pm-bg-primary: #ffffff; }
 * 
 * Customize borders:
 * :root { --pm-border-radius-lg: 15px; }
 * 
 * Custom hover effects:
 * .phone-models-models a:hover { transform: scale(1.05); }
 */
 .expanded {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}
.manage-column .column-taxonomy-phone_models {
	display:none;
}