/**
* 2007-2025 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2025 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

i.garage_icon {
    background: url(../img/garage_home.svg);
    width: 23px;
    height: 23px;
    display: block;
    margin: 0 auto;
    background-size: 100%;

}
#index .megaparts-selects-container {
    margin-top: 170px;
    margin-bottom: 30px;
}
.megaparts-select-wrapper label {
	display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.megaparts-selects-container .megaparts-select-wrapper {
    flex: 1;
}
.megaparts-selects-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 10px;
}
span.btn.btn-primary.filter_button {
    align-self: flex-end;
    flex: 1;
}
.megaparts-account .card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.megaparts-account .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 1.5rem;
}

.megaparts-account .card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.megaparts-account .card-body {
    padding: 1rem;
}

.megaparts-account .form-control-label.required {
    font-weight: 600;
}

.megaparts-account .text-danger {
    color: #dc3545 !important;
}

.megaparts-account .btn {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 16px;
    max-width: 320px;
    margin: 15px auto 0px;
}
.megaparts-account .table td {
    text-align: center;
    font-size: 14px;
    padding: 8px 2px;
}
.megaparts-account .table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-top: none;
    text-align: center;
}

.megaparts-account .alert {
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.megaparts-account code {
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}
.megaparts-account label {
    margin-bottom: 5px;
}
.megaparts-account .card {
    margin-bottom: 40px;
}
.megaparts-account .table-responsive table.table {
    vertical-align: middle;
}
.megaparts-account button.btn.btn-secondary {
    margin: 0px;
    background: none;
    padding: 0px;
}
.card-body > form > .row {
    gap: 15px 0px;
}
button.btn.active_moto {
    background: #07b107;
    color: white;
    max-width: fit-content;
    font-size: 14px;
    margin: 0 auto;
    min-width:115px;
        line-height: 35px;
}
button.btn.desactive_moto {
    background: red;
    color: white;
    max-width: fit-content;
    font-size: 14px;
    margin: 0 auto;
        line-height: 35px;
}
span.active_moto {
    color: var(--color3);
}
.megaparts-selects-container.container_motos_customer {
    flex-wrap: wrap;
    gap: 0px 15px;
}
.megaparts-selects-container.container_motos_customer label {
    text-align: left;
    width: 100%;
        margin-bottom: 2px;
}
select#select_motos {
    max-width: calc(100% - 380px);
}
.megaparts-selects-container.container_motos_customer a {
    width: 100%;
    text-decoration: underline;
    color: var(--color3);
    font-size: 14px;
}
/**
 * CSS for MegaParts front office
 */



/* Filter header */
.megaparts-filters-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 10px;
}

.megaparts-filters-header h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

/* Active filters */
.megaparts-active-filters {
    margin-top: 10px;
}

.megaparts-active-filters span {
    font-weight: 600;
    margin-right: 5px;
}

.megaparts-active-filters ul {
    display: inline-flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 5px 0;
}

.megaparts-active-filters li {
    display: inline-flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 3px;
    padding: 3px 8px;
    margin: 2px 5px 2px 0;
    font-size: 0.9em;
}

.megaparts-active-filters .remove-filter {
    margin-left: 5px;
    color: #777;
    text-decoration: none;
}

.megaparts-active-filters .remove-filter:hover {
    color: #333;
}

.megaparts-active-filters .material-icons {
    font-size: 16px;
}

.clear-all-filters {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.9em;
    text-decoration: underline;
}

/* Filter blocks */
.megaparts-filter-block {
    margin-bottom: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.megaparts-filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f8f8f8;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
}

.megaparts-filter-title h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.megaparts-filter-toggle .expanded {
    display: inline-block;
}

.megaparts-filter-toggle .collapsed {
    display: none;
}

.megaparts-filter-title.collapsed .expanded {
    display: none;
}

.megaparts-filter-title.collapsed .collapsed {
    display: inline-block;
}

.active .megaparts-filter-values {
    display: block;
}
.active i.material-icons.more {
    display: none;
}
.active i.material-icons.less {
    display: block !important;
}
.megaparts-filter-values {
    padding: 10px 15px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.megaparts-filter-values.collapse:not(.show) {
    display: none;
}
span.megaparts-filter-toggle i.material-icons.less {
    display: none;
}
/* Filter options */
.megaparts-filter-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.megaparts-filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
}

.megaparts-filter-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.megaparts-filter-checkbox {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
}

.megaparts-filter-option input[type="checkbox"]:checked + .megaparts-filter-checkbox:after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background-color: #2fb5d2;
    border-radius: 1px;
}

.megaparts-filter-label {
    flex: 1;
}

.megaparts-filter-count {
    color: #777;
    font-size: 0.9em;
    margin-left: 5px;
}

/* Price slider */
.megaparts-price-slider {
    padding: 10px 0;
}

.price-inputs {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.price-inputs input {
    width: 80px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}


.price-slider {
    height: 5px;
    background-color: #e5e5e5;
    border-radius: 3px;
    margin: 15px 0;
    position: relative;
    min-height: 7px; /* Ensure enough space for the slider handles */
}


/* noUiSlider custom styles */
.noUi-target {
    height: 5px;
    border-radius: 3px;
    border: none;
    box-shadow: none;
    background-color: #e5e5e5;
    margin: 10px 5px;
    display: block !important;
    visibility: visible !important;
}
.price-inputs {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    justify-content: center;
    margin: 0px;
    gap: 15px;
}
.noUi-connect {
    background-color: #9D9D9D;
}
.noUi-handle {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50%;
    background-color: var(--color3);
    box-shadow: none;
    cursor: pointer;
        right: -10px !important;
    top: -4px !important;
}

.noUi-handle:before,
.noUi-handle:after {
    display: none;
}

.apply-price-filter {
    margin-top: 10px;
}

/* Footer */
.megaparts-filters-footer {
    margin-top: 15px;
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

#apply-filters {
    flex: 1;
    min-width: 150px;
}

#reset-filters {
    min-width: 150px;
}

/* Responsive */
@media (max-width: 767px) {
    .megaparts-filters-container {
        padding: 10px;
    }

    .megaparts-filter-values {
        max-height: 200px;
    }
}


.compatible-motorcycles-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

.compatible-motorcycles-title {
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
    font-size: 1.5em;
}

.brand-group {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}
.brand-groups {
    display: flex
;
    gap: 15px;
    flex-wrap: wrap;
}
.brand-group {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    max-width: calc(calc(100% / 3) - 10px);
}
.compatible-motorcycles-container .table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.compatible-motorcycles-container .thead-dark th {
    background-color: #343a40;
    color: white;
    padding: 10px;
    text-align: left;
}

.compatible-motorcycles-container .table td {
    padding: 8px;
    vertical-align: middle;
}

.compatible-motorcycles-container .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.compatible-motorcycles-container .table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}
.brand-group .table-responsive {
    max-height: 410px;
    overflow-y: auto;
}
.brand-group .table-responsive::-webkit-scrollbar {
  width: 6px;
}

/* Track */
.brand-group .table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
.brand-group .table-responsive::-webkit-scrollbar-thumb {
  background: var(--color3);
  border-radius: 10px;
}
.brand-group h4.brand-title {
    padding: 10px;
    margin: 0px;
    font-weight: bold;
}
.megaparts-account .form-group {
    margin: 0px;
}
.megaparts-filters-container {
    margin-bottom: 20px;
}
@media(max-width:1199px) {
	.megaparts-selects-container {
 		gap: 5px;
	}
}
@media(max-width:991px) {
	#index  .megaparts-selects-container {
    	margin-top: 90px;
    	margin-bottom: 30px;
	}
	.megaparts-selects-container {
    	flex-wrap: wrap;
    	margin-top: 80px;
	}
	.megaparts-selects-container .megaparts-select-wrapper {
    	flex: initial;
    	width: calc(calc(100% / 3) - 4px);
	}
	span.btn.btn-primary.filter_button {
    	flex: initial;
    	line-height: 35px;
    	width: calc(calc(100% / 3) - 4px);
	}
	.megaparts-select-wrapper select {
    	line-height: 35px;
    	 font-size: 12px;
	}
	select#select_motos {
    	max-width: calc(100% - 249px);
    	line-height: 35px;
	}
	.megaparts-selects-container.container_motos_customer {
    	gap: 0px 5px;
	}
	.form-control {
    	line-height: 35px;
	}
	.megaparts-account .card-body {
    	padding: 1rem 0.5rem;
	}
	.megaparts-account .card-header {
    	padding: 1rem 0.5rem;
	}
	.megaparts-account .card-title {
 		font-size: 16px;
	}
	.brand-groups {
    	flex-wrap: wrap;
	}
	.brand-group {
    	max-width: calc(calc(100% / 2) - 8px);
    	        margin-bottom: 0px;
	}
	.compatible-motorcycles-container .table td {
    	font-size: 14px;
    	padding: 4px;
	}
	.compatible-motorcycles-container .thead-dark th {
    	font-size: 14px;
    	padding: 6px;
	}
	.brand-group h4.brand-title {
    	font-size: 18px;
	}
}
@media(max-width:767px){
	#index  .megaparts-selects-container {
        margin-top: 75px;
    }
    .megaparts-select-wrapper label {
    	font-size: 14px;
    	margin-bottom: 2px;
	}
	.megaparts-selects-container .megaparts-select-wrapper {
        width: calc(calc(100% / 2) - 3px);
    }
    span.btn.btn-primary.filter_button {
    	width: calc(calc(100% / 2) - 3px);
	}
	select#select_motos {
    	max-width: calc(100% - 165px);
    }
    .brand-groups .brand-group {
	    max-width: 100%;
	}

	
}
