/**
 * Product Post Sort By Widget - Frontend Styles
 *
 * All defaults stripped. User controls everything via Elementor.
 *
 * @package Custom_Elementor_Widgets
 */

/* Dropdown wrapper */
.cew-product-post-sort-by-widget .cew-sort-dropdown {
    position: relative;
    display: inline-block;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

/* Trigger - zero defaults */
.cew-product-post-sort-by-widget .cew-sort-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    white-space: nowrap;
}

.cew-product-post-sort-by-widget .cew-sort-trigger:focus {
    outline: none;
}

.cew-product-post-sort-by-widget .cew-sort-trigger-label {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
}

.cew-product-post-sort-by-widget .cew-sort-trigger-sep {
    width: 1px;
    height: 1em;
    background-color: currentColor;
    opacity: 0.3;
    flex-shrink: 0;
}

.cew-product-post-sort-by-widget .cew-sort-trigger-value {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.cew-product-post-sort-by-widget .cew-sort-icon {
    font-size: 10px;
    opacity: 0.5;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.cew-product-post-sort-by-widget .cew-sort-dropdown.cew-open .cew-sort-icon {
    transform: rotate(180deg);
}

/* Options panel - position:absolute set inline in HTML */
.cew-product-post-sort-by-widget .cew-sort-options {
    width: auto;
    min-width: 100%;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    z-index: 99999;
    white-space: nowrap;
	list-style: none;
}

/* Kill theme bullet injection */
.cew-product-post-sort-by-widget .cew-sort-options li,
.cew-product-post-sort-by-widget .cew-sort-option {
    list-style: none !important;
    list-style-type: none !important;
    display: block;
    padding: 0;
    margin: 0 !important;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    color: #555555;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    background: transparent;
    border: 0;
}

.cew-product-post-sort-by-widget .cew-sort-option::before {
    display: none !important;
    content: none !important;
}
.cew-product-post-sort-by-widget .cew-sort-options li::marker {
    content: "" !important;
}

.cew-product-post-sort-by-widget .cew-sort-option.cew-active {
    font-weight: 700;
    color: #000000;
}

/* Buttons mode */
.cew-product-post-sort-by-widget .cew-sort-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
}

.cew-product-post-sort-by-widget .cew-sort-btn {
    display: inline-block;
    padding: 0;
    margin: 0;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    color: #555555;
    background: none;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
