/* ═══════════════════════════════════════════════════
   WoodMart Price Filter Enhancer CSS (Desktop Fix)
   File: woodmart-child/assets/css/cpf-enhancer.css
   ═══════════════════════════════════════════════════ */

/* ── Slider Track Wrapper Cleanup ── */
.widget_price_filter .price_slider_wrapper {
    margin-bottom: 20px;
}

/* ── Tick marks container ── */
.cpf-ticks {
    position: relative;
    height: 24px;
    margin: 12px 0 16px;
    clear: both;
}

.cpf-tick {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
    pointer-events: none;
}

.cpf-tick-line {
    width: 1px;
    height: 6px;
    background: #d2d2d7;
}

.cpf-tick-label {
    font-size: 10px;
    font-weight: 500;
    color: #86868b;
    margin-top: 4px;
    white-space: nowrap;
    line-height: 1;
}

/* ── Rigid Row Structure for Desktop/Mobile ── */
.cpf-inputs {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 20px !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box;
}

.cpf-input-group {
    flex: 1 !important;
    min-width: 0 !important; /* Prevents overflow inside narrow sidebars */
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.cpf-input-label {
    font-size: 11px;
    font-weight: 700;
    color: #1d1d1f;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Enhanced Field Field Wrapper ── */
.cpf-input-field-wrapper {
    position: relative;
    display: flex !important;
    align-items: center !important;
    border: 1px solid #d2d2d7 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    padding: 0 6px 0 10px !important;
    height: 40px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cpf-input-field-wrapper:focus-within {
    border-color: #EE2739 !important;
    box-shadow: 0 0 0 3px rgba(238, 39, 57, 0.1) !important;
}

.cpf-currency-prefix {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    padding-right: 4px;
    user-select: none;
    flex-shrink: 0;
}

input.cpf-text-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
}

/* ── High Visibility Suffix Select Box with Custom Desktop Arrow ── */
select.cpf-unit-select {
    border: none !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23EE2739' d='M0 0l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 4px center !important;
    background-size: 10px 6px !important;
    background-color: transparent !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #EE2739 !important;
    padding: 0 16px 0 4px !important; /* Right padding leaves room for our injected custom arrow */
    cursor: pointer !important;
    height: 100% !important;
    outline: none !important;
    width: auto !important;
    max-width: 65px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important; /* Hides system default dropdown arrows to match your aesthetic */
    flex-shrink: 0;
}

/* Handle dropdown styling for options dropdown layer */
select.cpf-unit-select option {
    background-color: #ffffff;
    color: #1d1d1f;
    font-weight: 500;
}

.cpf-input-sep {
    font-size: 14px;
    color: #86868b;
    align-self: flex-end;
    padding-bottom: 12px;
    flex-shrink: 0;
    user-select: none;
}

/* Hide WooCommerce native layout blocks */
.widget_price_filter .price_label,
.widget_price_filter .price_slider_amount button {
    display: none !important;
}

.cpf-range-label {
    font-size: 13px;
    font-weight: 500;
    color: #86868b;
    text-align: center;
    margin-top: 15px;
    clear: both;
}