.bapf_show_hide,
.bapf_more_values_btn,
.bapf_hide_values_btn {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
}

.wrap_sidebar,
.bapf_body,
.col_25.left-sidebar {
    overflow: visible !important;
}

.filter-modal-overlay {
    position: fixed !important; /* Folosim fixed pentru a rămâne în viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fundal semi-transparent */
    z-index: 99998; /* Sub modal, dar deasupra altor elemente */
    display: none; /* Ascuns inițial */
}

.filter-modal {
    position: fixed !important; /* Fixat în viewport */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrat pe ecran */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    /* min-width: 500px;
    max-width: 700px;  */
	width: 700px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    max-height: 60vh;
    overflow: hidden;
    z-index: 99999; /* Deasupra overlay-ului */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
	padding: 14px 20px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    background: #f9f9f9;
	position: relative;
}

.modal-title {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    color: #414b56;
}

.modal-close {
    cursor: pointer;
    font-size: 29px;
    line-height: 1;
    position: absolute;
    right: 10px;
    top: 6px;
    width: 30px;
    height: 30px;
    display: flex
;
    align-items: center;
    z-index: 999;
    justify-content: center;
}

.filter-modal .modal-search {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 10px 20px;
    font-size: 13px;
    width: calc(100% - 40px);
}


.modal-options {
    flex: 1;
    overflow-y: auto;
	padding: 10px 20px 30px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 12px;
    max-height: 40vh;

}

.modal-options li {
    list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;   
	margin-top: 5px;
    margin-bottom: 5px;
}

.modal-options li .bapf_ochild {
    font-size: 10px;
    margin-right: 3px;
}

.modal-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.3;
}


.filter-buttons {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f9f9f9;
}

.filter-buttons button {
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
	font-family: "PT Sans", Arial, Helvetica, sans-serif;
}

.apply-filter-btn {
    background-color: #0074cc;
    color: #fff;
}

.clear-filter-btn {
    background-color: #eee;
    color: #333;
}
/*
.show-more-btn {
    margin: 10px 0;
    background: #eee;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
	font-family: "PT Sans", Arial, Helvetica, sans-serif;
}
*/
.show-more-btn {
    margin: 10px 0;
    background: transparent;
    color: #0082e6;
    border: 0;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
	font-family: "PT Sans", Arial, Helvetica, sans-serif;
}
.show-more-btn:hover {
    text-decoration: underline;
}

.bapf-search-box {
    margin-bottom: 10px;
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

@media (max-width: 960px) {
    .filter-modal {
        width: 90%;
        max-height: 80vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .modal-options {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 560px) {
	.modal-options {
        grid-template-columns: repeat(1, 1fr); 
    }

	.modal-options li {
		margin-top: 3px;
		margin-bottom: 3px;
	}
}

/* body {
    overflow: visible !important;
} */



/* Cod initial */

/*
.bapf_show_hide,
.bapf_more_values_btn,
.bapf_hide_values_btn {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
}

.wrap_sidebar,
.bapf_body,
.col_25.left-sidebar {
    overflow: visible !important;
}

.filter-modal-overlay {
    position: fixed !important;  
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 99998;  
    display: none;  
}

.filter-modal {
    position: fixed !important; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);  
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 500px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    max-height: 60vh;
    overflow: hidden;
    z-index: 99999; 
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    background: #f9f9f9;
}

.modal-title {
    font-size: 14px;
}

.modal-close {
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.modal-search {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 10px;
    font-size: 13px;
    width: calc(100% - 20px);
}

.modal-options {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 12px;
    max-height: 40vh;
}

.modal-options li {
    list-style: none;
}

.modal-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.3;
}

.filter-buttons {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f9f9f9;
}

.filter-buttons button {
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.apply-filter-btn {
    background-color: #0074cc;
    color: #fff;
}

.clear-filter-btn {
    background-color: #eee;
    color: #333;
}

.show-more-btn {
    margin: 10px 0;
    background: #eee;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
}

.bapf-search-box {
    margin-bottom: 10px;
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

@media (max-width: 600px) {
    .filter-modal {
        width: 90%;
        max-height: 80vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .modal-options {
        grid-template-columns: repeat(2, 1fr); 
    }
}

body {
    overflow: visible !important;
}

*/ 