.cecr-maincontainer * {
    box-sizing: border-box;
}

.cecr-maincontainer {
    border: solid 1px;
    border-radius: 15px;
    padding: 10px;
    box-sizing: border-box;
}

.cecr-pick-flex-wrapper h4 {
    max-width: 100%;
}

.cecr-component-calendar-plain {
    position: relative;
    width: 100%;
}

.cecr-component-calendar-scroll-wrapper {
    width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.cecr-component-calendar-scroll-wrapper::-webkit-scrollbar {
    display: none;
    /* Safari, Chrome */
}

.cecr-component-calendar-scroll-track {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.cecr-component-calendar-month {
    scroll-snap-align: start;
    flex: 0 0 100% !important;

}

.cecr-component-calendar-week-grid-daynames {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 10px 0;
    font-size: .8em;
}

.cecr-component-calendar-month-title {
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 15px
}

.cecr-component-calendar-day.placeholder {
    /*border-color:none !important;*/
    border: none !important;
    /*outline: 1px solid rgba(0, 0, 0, 0.2);*/
    /*outline-offset: -1px;*/
}

.cecr-calendar-triggers {
    display: flex;
    width: 100%;
}

.cecr-component-calendar-day {
    padding: 0;
    cursor: pointer;
}

.cecr-component-calendar-day>div {
    display: flex;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;

}

.cecr-component-calendar-day.disabled,
.cecr-component-calendar-day.placeholder,
.cecr-component-calendar-day.out-of-range {
    cursor: default;
}

/* Bordo singolo per la tabella */
.cecr-component-calendar-days-container {
    width: 100%;
    border-collapse: collapse;

}

.cecr-component-calendar-day.out-of-range {
    opacity: 0.25;
}

.cecr-component-calendar-day.disabled {
    opacity: 0.25;
    pointer-events: none;
}

.cecr-component-calendar-day.disabled.placeholder {
    font-size: 0 !important;
}

.optimand-calendar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cecr-component-calendar-week-names {
    text-transform: uppercase;
}

.cecr-scroll-left,
.cecr-scroll-right {
    background: none;
    border: none;
    font-size: 24px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    user-select: none;
    position: absolute;
    line-height: 1em;
    top: 0;
    color: inherit;
}

.cecr-scroll-left {
    left: 15px;
}

.cecr-scroll-right {
    right: 15px;
}


#cecr-selectoccupancy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    display: none;
    background: #FFF;
    border-radius: 15px;
    padding: 10px;
    border: solid 1px;
}

.cecr-occupancy-title {
    font-size: 1.1em;
    font-weight: 600;
}

.cecr-close {
    /* Dimensione dell'area cliccabile */
    width: 40px;
    height: 40px;

    /* Posizionamento */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Stile opzionale sfondo (es. cerchio grigio chiaro) */
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Stile dell'icona SVG */
.cecr-close svg {
    width: 20px;
    /* Dimensione della X */
    height: 20px;
    stroke: #333;
    /* Colore della X */
    transition: transform 0.3s ease;
}

/* Effetto Hover */
.cecr-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    /* Sfondo più scuro al passaggio */
}

.cecr-close:hover svg {
    stroke: #eba405;
    transform: rotate(90deg);
    /* Animazione rotazione */
}

.cecr-select {
    /* 1. RESET DELLO STILE NATIVO */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* 2. DIMENSIONI E BOX MODEL */
    display: block;
    width: 100%;
    padding: 10px 40px 10px 12px;
    /* Padding destro maggiore per fare spazio alla freccia */
    font-size: 16px;
    /* 16px previene lo zoom automatico su iOS */
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;

    /* 3. LA FRECCIA PERSONALIZZATA (SVG in Base64) */
    /* Questa è una freccia "chevron" grigia scura */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* 4. STATO HOVER */
.cecr-select:hover {
    border-color: #888;
}

/* 5. STATO FOCUS (Accessibilità) */
.cecr-select:focus {
    border-color: #eba405;
    /* Colore blu WordPress o tuo brand */
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.2);
    /* Alone di focus */
    outline: none;
}

/* 6. GESTIONE DISABILITATO */
.cecr-select:disabled {
    background-color: #f0f0f1;
    color: #a7aaad;
    cursor: not-allowed;
    opacity: 1;
    /* Fix per iOS */
}

/* 7. FIX PER IE11 (Rimuove la freccia nativa di IE) */
.cecr-select::-ms-expand {
    display: none;
}

/* 1. CLASSE BASE PER INPUT E TEXTAREA */
.cecr-input {
    /* Reset dello stile nativo (fondamentale per iOS che mette ombre interne/bordi tondi) */
    -webkit-appearance: none;
    appearance: none;

    /* Box Model identico alla Select */
    display: block;
    width: 100%;
    padding: 10px 12px;
    /* Padding uniforme (niente spazio extra a destra) */
    font-size: 16px;
    /* Previene zoom su iOS */
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* 2. STATO FOCUS (Identico alla Select) */
.cecr-input:focus {
    border-color: #eba405;
    /* Blu WordPress o tuo brand */
    outline: 0;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.2);
    /* Alone focus */
}

/* 3. PLACEHOLDER (Testo guida) */
.cecr-input::placeholder {
    color: #a7aaad;
    opacity: 1;
    /* Fix per Firefox che riduce l'opacità di default */
}

/* 4. STATO DISABILITATO / READONLY */
.cecr-input:disabled,
.cecr-input[readonly] {
    background-color: #f0f0f1;
    color: #646970;
    opacity: 1;
    cursor: not-allowed;
}

/* 5. GESTIONE SPECIFICA TEXTAREA */
textarea.cecr-input {
    resize: vertical;
    /* Permette resize solo in altezza (non rompe il layout orizzontale) */
    min-height: 100px;
}

/* 6. GESTIONE INPUT DATE (Per uniformare l'icona calendario se possibile) */
.cecr-input[type="date"] {
    /* Assicura che l'altezza sia coerente con gli input di testo */
    min-height: 46px;
}

.cecr-button-submit {
    /* 1. RESET E STRUTTURA */
    -webkit-appearance: none;
    appearance: none;
    display: inline-block;
    /* O block se vuoi che prenda tutta la riga senza style inline */

    /* Box Model (Coerente con gli input) */
    padding: 12px 24px;
    /* Un po' più alto degli input per importanza */
    width: 100%;
    /* Di base 100%, ma sovrascrivibile */
    min-height: 46px;
    /* Stessa altezza minima degli input date */

    /* 2. TIPOGRAFIA */
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    /* Grassetto per l'azione */
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    /* Facoltativo: rende il testo più autorevole */
    letter-spacing: 0.5px;

    /* 3. COLORI E BORDI */
    color: #ffffff;
    background-color: #eba405;
    /* Blu WordPress (o il tuo colore brand) */
    border: 1px solid transparent;
    border-radius: 15px;
    /* Identico a select e input */

    /* 4. INTERAZIONE */
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Leggera ombra per profondità */
    transition: all 0.2s ease-in-out;
    user-select: none;
}

/* 5. STATO HOVER (Mouse sopra) */
.cecr-button-submit:hover {
    background-color: #bf8400;
    /* Un tono più scuro */
    /*transform: translateY(-1px);*/
    /* Effetto "sollevamento" leggero */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* 6. STATO ACTIVE (Click premuto) */
.cecr-button-submit:active {
    background-color: #bf8400;
    /*transform: translateY(0);*/
    /* Torna giù */
    box-shadow: none;
    /* Rimuove l'ombra per effetto "premuto" */
}

/* 7. STATO FOCUS (Navigazione tastiera - Coerente con input) */
.cecr-button-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgb(235 164 5 / 50%)
        /* Alone blu esterno */
}

/* 8. STATO DISABILITATO */
.cecr-button-submit:disabled,
.cecr-button-submit.disabled {
    background-color: #f0f0f1;
    color: #a7aaad;
    border-color: #dcdcde;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cecr-adults-age-container,
.cecr-child-age-container {
    display: flex;
    gap: 10px;
}

.cecr-btn-sm {
    font-size: 0.8em;
    padding: 5px 10px;
    line-height: 1;
    min-height: 35px;
}

/* STEPS */
/* Layout per schermi grandi (Desktop) */
.cecr-pick-flex-wrapper {
    display: flex;
    gap: 2em;
    align-items: flex-start;
    width: 100%;
}
.cecr-pick-charge-step {
    min-height: 200px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.cecr-pick-column-left,
.cecr-pick-column-right {
    border-radius: 15px;
    padding: 15px;
    background: #FFF;
}

.cecr-left-image,
.cecr-categoryImage {
    width: 100%;
    border-radius: 15px;
}

.cecr-categoryImage {
    aspect-ratio: 1;
    object-fit: cover;
}

.cecr-category-card {
    border: solid 1px #CCC;
    border-radius: 15px;
    padding: 15px;
    margin-top: 25px;
}

.cecr-pick-column-left {
    flex: 0 0 400px;
    position: sticky;
    top: 0;
}

.cecr-pick-column-right {
    flex: 1;
}

.cecr-category-card {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cecr-category-card-img {
    flex: 0 0 200px;
}

.cecr-category-card-text {
    flex: 1;
}

.cecr-price-and-button {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: start;
    align-items: center;
}

/* Stile base del bottone circolare */
.cecr-btn-backstep {
    display: inline-flex;
    /* Fondamentale per centrare il contenuto */
    justify-content: center;
    /* Centra orizzontalmente */
    align-items: center;
    /* Centra verticalmente */

    width: 45px;
    /* Larghezza */
    height: 45px;
    /* Altezza identica per farlo quadrato/cerchio */
    border-radius: 50%;
    /* Lo rende un cerchio perfetto */

    background-color: #f0f0f1;
    /* Colore di sfondo (grigio chiaro WP standard) */
    color: #333;
    font-size: 20px;
    /* Dimensione della freccia */
    font-weight: bold;
    text-decoration: none !important;
    /* Rimuove la sottolineatura del link */
    line-height: 1;

    cursor: pointer;
    transition: all 0.2s ease;
    /* Animazione fluida */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Leggera ombra */
}

/* Effetto Hover (quando il mouse passa sopra) */
.cecr-btn-backstep:hover {
    background-color: #eba405;
    color: #fff;
    box-shadow: 0 4px 8px rgb(235 164 5 / 50%);
}

/* Effetto Active (quando viene cliccato) */
.cecr-btn-backstep:active {
    box-shadow: none;
    background-color: #eba405;
}

/* Layout per schermi piccoli (Mobile) */
@media (max-width: 768px) {

    .cecr-pick-flex-wrapper,
    .cecr-category-card,
    .cecr-price-and-button {
        flex-direction: column;
    }

    .cecr-price-and-button {
        align-items: start;
    }

    .cecr-pick-column-left,
    .cecr-category-card-img {
        flex: 0 0 auto;
        width: 100%;
        max-width: -webkit-fill-available;
    }

    .cecr-pick-column-right,
    .cecr-category-card-text {
        width: 100%;
        max-width: -webkit-fill-available;
    }
}