#cl-loader {
    display: none;
    text-align: center;
    padding: 10px;
}
#cl-loader::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #ccc;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Nascondiamo i risultati finché la ricerca non ha dati */
#cl-product-results {
    display: none;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    /*padding: 5px;*/
    /*position: absolute;*/
    /*z-index: 1000;*/
}

ul#cl-product-results li .cl-product-results-item {
    display: flex;
    flex-direction: column;
}

/* Stile per il bottone di aggiunta prodotto */
/* .add-product {
    background: #0073aa;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease-in-out, transform 0.1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
} */

/* Ridimensiona l'emoji per uniformità */
.add-product img {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    pointer-events: none; /* Evita trascinamento */
}

/* Effetto hover */
.add-product:hover {
    background: #005177;
}

/* Effetto click (leggero ridimensionamento) */
.add-product:active {
    transform: scale(0.95);
}


#cl-product-results li {
    margin-bottom: 6px;
    display: flex;
    padding: 10px;
    column-gap: 15px;
    border-bottom: 0.5px solid #cecece;
}

#cl-product-results li:last-child {
    margin-bottom: 0px;
    border-bottom: none;
}


/* Stili per gli elementi della lista dei prodotti selezionati */
#cl-selected-products li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

/* Contenitore dell'immagine del prodotto */
.cl-product-image {
    width: 50px;      /* Larghezza fissa */
    height: 50px;     /* Altezza fissa */
    overflow: hidden;
    flex-shrink: 0;
}

/* Immagine all'interno del contenitore */
.cl-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene il rapporto di aspetto, riempiendo il contenitore */
    display: block;
}

/* Modal Container */
#cl-confirm-modal {
    display: none;
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

/* Modal Overlay */
.cl-modal-overlay {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

/* Modal Content */
.cl-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    width: 300px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Modal Buttons */
.cl-modal-buttons {
    text-align: right;
    margin-top: 15px;
    display: flex;
    justify-content: end;
    gap: 10px;
}

.cl-modal-buttons button {
    margin-left: 10px;
    padding: 5px 10px;
}

.bg-primary {
    background-color: #E2F5FF;
}

.bg-sky {background-color: #e2f5ff;}

.color-primary {
    color: #1e73be;
}

#accordion-main {
    border: solid  #E2F5FF;
}


.border-primary td,
.border-primary th {
    border: 1px solid  #1e73be;
}

.cl-m-0 {
	margin: 0;
}

[x-cloak] {
    display: none !important;
}


.cl-accordion-button:hover {
	background-color: #E2F5FF;
}

input[type="text"].cl_list_title {
    margin-bottom: 0;
    line-height: 30px;
    height: 30px!important;
}

.cl_list_submit {
    height: 30px;
    padding: 0 15px;
    background: #1e73be;
}

.cl_list_submit:hover {
	background: #E2F5FF;
	color: #1e73be;
}

button#cl-confirm-yes {
    height: fit-content;
    line-height: normal;
    padding: 0px 20px;
    background: #E2F5FF;
}

button#cl-confirm-yes {
    height: fit-content;
    background: #E2F5FF;
    border: 1px solid;
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 2.15384615;
    min-height: 30px;
    margin: 0;
    padding: 0 10px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
}

button#cl-confirm-no {
    background: red;
    color: #fff;
    border-color: red;
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 2.15384615;
    min-height: 30px;
    margin: 0;
    padding: 0 10px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
}

.wp-core-ui .button.cl-button-search-add {
    height: fit-content;
    padding: 0px 20px;
    background: #E2F5FF;
    display: flex;
    align-items: center;
    gap: 5px;
}

button#cl-confirm-no {
    background: red;
    color: #fff;
    border-color: red;
}

.wp-core-ui .button.cl-product-remove {
    background: red;
    color: #fff;
    border-color: red;
    display: flex;
    align-items: center;
    gap: 5px;
}

span.cl-name-product {
    min-width: 250px;
}

ul#cl-selected-products li,
ul#cl-product-results li {
    display: flex;
    align-items: center;
}