/* PadangosTAU Professional Search Styles - Matching padangos123.lt */

/* Main container */
.padangostau-pro-search {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin: 0 auto;
}

/* Tabs */
.pts-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
}

.pts-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pts-tab:hover {
    background: #f5f5f5;
    color: #333;
}

.pts-tab.active {
    background: #e53935;
    color: #fff;
}

.pts-tab svg {
    flex-shrink: 0;
}

/* Tab content */
.pts-tab-content {
    display: none;
}

.pts-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form */
.pts-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Fields row */
.pts-fields-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

/* Field */
.pts-field {
    flex: 1;
    min-width: 120px;
}

.pts-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Select wrapper */
.pts-select-wrapper {
    position: relative;
}

.pts-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    background: #fff;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pts-select:hover {
    border-color: #ccc;
}

.pts-select:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
}

.pts-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    pointer-events: none;
}

/* Combobox styling for editable dropdowns */
.pts-combobox-wrapper {
    position: relative;
}

.pts-combobox-input {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.pts-combobox-input:hover {
    border-color: #ccc;
}

.pts-combobox-input:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
}

.pts-combobox-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.pts-combobox-wrapper .pts-select-arrow {
    z-index: 4;
}

/* Combobox dropdown options */
.pts-combobox-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pts-combobox-options.active {
    display: block;
}

.pts-combobox-option {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.2s;
}

.pts-combobox-option:hover,
.pts-combobox-option.highlighted {
    background: #f5f5f5;
}

.pts-combobox-option.selected {
    background: #e53935;
    color: #fff;
}

.pts-combobox-option.hidden {
    display: none;
}

/* No results message */
.pts-combobox-no-results {
    padding: 12px 16px;
    color: #999;
    font-style: italic;
    font-size: 13px;
}

/* Separator */
.pts-separator {
    font-size: 24px;
    font-weight: 300;
    color: #999;
    padding-bottom: 25px;
    align-self: flex-end;
}

/* Season field */
/* Brand field */
.pts-field-brand {
    min-width: 160px;
}


.pts-field-season,
    .pts-field-brand {
    min-width: 140px;
}

/* Submit button */
.pts-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

.pts-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.5);
}

.pts-submit-btn:active {
    transform: translateY(0);
}

/* Car form specific */
.pts-car-form .pts-field {
    min-width: 160px;
}

/* Tire sizes preview */
.pts-tire-sizes-preview {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 10px 0;
}

.pts-preview-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.pts-tire-sizes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pts-tire-size-btn {
    padding: 10px 18px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pts-tire-size-btn:hover {
    border-color: #e53935;
    color: #e53935;
}

.pts-tire-size-btn.selected {
    background: #e53935;
    border-color: #e53935;
    color: #fff;
}

/* Active filters */
.pts-active-filters {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.pts-active-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pts-active-filters-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.pts-clear-all {
    font-size: 13px;
    color: #e53935;
    text-decoration: none;
    font-weight: 500;
}

.pts-clear-all:hover {
    text-decoration: underline;
}

.pts-active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pts-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e53935;
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.pts-filter-label {
    font-weight: 500;
    opacity: 0.9;
}

.pts-filter-value {
    font-weight: 700;
}

.pts-filter-remove {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    margin-left: 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.pts-filter-remove:hover {
    opacity: 1;
}

/* Filter editor */
.pts-filter-editor {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.pts-filter-editor-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.pts-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.pts-filter-field {
    flex: 1;
    min-width: 140px;
}

.pts-filter-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.pts-filter-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s ease;
}

.pts-filter-field select:focus {
    outline: none;
    border-color: #e53935;
}

.pts-filter-update-btn {
    padding: 12px 30px;
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pts-filter-update-btn:hover {
    background: #c62828;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .padangostau-pro-search {
        padding: 20px;
        border-radius: 12px;
    }

    .pts-tabs {
        flex-direction: row;
        gap: 8px;
    }

    .pts-tab {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
        font-size: 13px;
    }

    .pts-tab svg {
        display: none;
    }

    .pts-fields-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .pts-field {
        min-width: 100%;
    }

    .pts-separator {
        display: none;
    }

    .pts-select {
        padding: 16px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .pts-combobox-input {
        padding: 16px;
        font-size: 16px;
    }

    .pts-submit-btn {
        padding: 18px;
        font-size: 16px;
    }

    .pts-car-form .pts-field {
        min-width: 100%;
    }

    .pts-tire-sizes-preview {
        padding: 15px;
    }

    .pts-active-filters {
        padding: 15px;
    }

    .pts-active-filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pts-filter-editor {
        padding: 20px;
    }

    .pts-filter-form {
        flex-direction: column;
    }

    .pts-filter-field {
        min-width: 100%;
    }

    .pts-filter-update-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .padangostau-pro-search {
        padding: 15px;
    }

    .pts-tab {
        padding: 10px 12px;
        font-size: 12px;
    }

    .pts-select {
        padding: 14px;
    }

    .pts-submit-btn {
        font-size: 14px;
        padding: 16px;
    }
}

/* Hide old filter everything widget */
.fe-widget,
.widget_filter_everything,
.shop-sidebar .widget:has(.fe-widget) {
    display: none !important;
}


/* Hide [fe_widget] shortcode text */
*:contains("[fe_widget]") {
    display: none !important;
}

/* Additional hide for fe_widget */
.fe-widget,
.widget_filter_everything,
.shop-sidebar .widget:has(.fe-widget) {
    display: none !important;
}

/* Hide any text node containing [fe_widget] */
body {
    --hide-fe-widget: none;
}


/* Hide widget block containing [fe_widget] */
.widget_block:contains("[fe_widget]"),
.brator-sidebar-single-item:contains("[fe_widget]"),
#block-10 {
    display: none !important;
}

/* Hide by checking text content */
body:has(.widget_block:contains("[fe_widget]")) .widget_block {
    display: none !important;
}
