:focus-visible {
    outline: none;
}

.em-booking-form-participant-field.em-valid-field,
.em-valid-field,
.product-name {
    border-color: #6dc22e !important;
}

.em-booking-form label,
.info-required-fields,
.form-row.place-order p,
#newspaper_name_field p,
.participant-selection-button,
.em-error-li {
    font-size: 16px;
}

.em-error-label {
    color: #a00;
}
.em-booking-form-participant-field.em-invalid-field,
.em-invalid-field {
    border-color: #a00 !important;
}
.em-participant-button-error {
    border: 1.5px solid red !important;
}

.em-participant-button-valid {
    border: 1.5px solid green !important;
}

.required {
    color: red;
    font-weight: 700;
}

.em-radio-button-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10%;
    height: 80px;
}

.em-radio-options-wrapper {
    display: flex;
    gap: 1%;
}

.em-participant-detail-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: fit-content;
    box-sizing: border-box;
}
.hidden {
    display: none !important;
}
.participants-info-container {
    display: flex;
    margin-bottom: 10%;
}

.participant-list-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.participant-fields-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.participant-list-buttons-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 500px;
    max-width: 200px;
}

.participant-selection-button {
    padding: 8px;
    margin: 8px;
    color: #32354d;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    text-overflow: ellipsis;
    border: 1px solid #32354d;
    justify-content: center;
    line-height: normal;
    min-height: 40px;
    display: flex;
    text-align: center;
    align-items: center;
}

.participant-selection-button.participant-selected {
    background-color: #32354d;
    color: #fff;
}

.button-delete {
    margin: 0 8px 0 0;
}

.button-text {
    margin: 0 8px;
    font-size: 14px;
}

#ScrollUp,
#ScrollDown {
    display: none;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f2f2f2;
    cursor: pointer;
}

#ScrollUp i,
#ScrollDown i {
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.em-booking-form-footer-container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.em-form-error-display {
    display: none;
    padding: 1em 2em 1em 3.5em;
    margin: 0 0 2em;
    position: relative;
    background-color: #f7f6f7;
    color: #515151;
    border-top: 3px solid #b81c23;
    list-style: none outside;
    width: auto;
    word-wrap: break-word;
}

.em-fields-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    align-items: start;
    column-gap: 1%;
    row-gap: 16px;
    margin-bottom: 24px;
}
.em-participants-fields-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(7, 0fr);
    grid-column-gap: 1%;
    grid-row-gap: 1%;
}

.em-booking-form-full-row {
    grid-column: 1 / -1;
}

.em-booking-form-note {
    margin: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 16px;
}

.em-booking-form-phone-note {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.confirmation-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 460px);
    max-width: 460px;
    min-height: 100px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #cfd6e4;
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(21, 34, 68, 0.24);
    z-index: 9999;
    color: #20294a;
    font-weight: 500;
}

.attribute-product {
    margin-bottom: 1% !important;
}

.confirmation-popup p {
    margin: 0 0 12px;
}

.confirmation-popup-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 18px;
}

.confirmation-popup-label {
    display: block;
    font-weight: 700;
    color: #20294a;
}

.event-day-slots-popup-message {
    font-size: 20px;
}

.confirmation-popup-select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cfd6e4;
    border-radius: 10px;
    color: #20294a;
    background: #ffffff;
}

.confirmation-popup-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 4px;
}

.confirmation-popup-checkbox-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #20294a;
}

.confirmation-popup-checkbox-option input[type="checkbox"] {
    margin: 0;
}

.popup-buttons-container {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.cancel-button,
.delete-button {
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    border: 1px solid #32354d;
}

.cancel-button {
    background-color: #ffffff !important;
    color: #32354d !important;
}

.delete-button {
    background-color: #32354d !important;
    color: #ffffff !important;
    border-style: solid !important;
    border-color: #32354d !important;
}

.cancel-button:hover,
.delete-button:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3) !important;
}

.confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(56, 55, 55, 0.5);
    z-index: 9998;
    backdrop-filter: blur(2px);
}

.em-booking-form-section-title {
    color: #54595f;
    margin: 12px 0 4px;
}

.em-booking-form-consents-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}

.em-booking-generic-section {
    margin-top: 16px;
}

#place_gevent_prenotazione,
#place_gevent_prenotazione:hover,
#place_gevent_accreditation {
    height: 41px;
    font-weight: 700;
    color: white;
    border: solid #32354d;
    background-color: #32354d;
    padding: 5px 20px;
}

/* Disabled visual for the main booking button */
#place_gevent_prenotazione:disabled,
#place_gevent_prenotazione:disabled:hover {
    background-color: #666;
    border-color: #666;
    color: #ffffff;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}
.em-booking-form-participant-field {
    border: 1px solid #6666 !important;
    box-sizing: border-box;
}
.em-error-li {
    list-style: none outside;
    padding-left: 0;
    margin-left: 0;
}
.em-error-ul {
    padding-left: 1%;
}

.em-form-error-display-on-invalid-event {
    display: block;
    padding: 1em 2em 1em 3.5em;
    margin: 0 0 2em;
    position: relative;
    background-color: #f7f6f7;
    color: #515151;
    border-top: 3px solid #b81c23;
    list-style: none outside;
    width: auto;
    word-wrap: break-word;
}
#billing_require_document_field,
#billing_allow_guests_field {
    display: flex;
    height: max-content;
    align-items: center;
    gap: 1%;
}

#billing_require_document,
#billing_allow_guests {
    margin-top: 2px;
}

.em-booking-form-footer {
    margin-bottom: 8%;
}

.accreditation-header-fields-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(1, 1fr);
    grid-column-gap: 1%;
    grid-row-gap: 5%;
}

.em-accreditation-multiday-review-notice {
    width: 100%;
    margin: 12px 0 16px;
    padding: 12px 16px;
    background-color: #f6f7f7;
    border-left: 4px solid #2271b1;
    color: #1d2327;
}

.em-accreditation-multiday-review-notice p {
    margin: 0;
    line-height: 1.5;
}

.radio-wrapper {
    display: flex !important;
    gap: 1% !important;
    width: 100% !important;
    margin-left: 0px;
}

form.em-booking-form-checkout label {
    line-height: 2 !important;
}

#shipping_wooccm12_field {
    height: max-content !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

#shipping_wooccm11_field,
#shipping_wooccm10_field {
    height: max-content !important;
}
#shipping_wooccm10_field select[disabled],
#shipping_wooccm10_field select:disabled {
    color: black;
    background-color: rgb(242, 242, 242);
    border: 1px solid #666 !important;
    cursor: not-allowed;
}
.em-multi-day-timeslots-label {
    display: block;
    margin-bottom: 6px;
    color: inherit;
    font-size: 16px;
}

.em-multi-day-timeslots-dropdown {
    height: 42px;
    top: 7px;
    position: relative;
    width: 100%;
    padding: 0 !important;
    overflow: visible;
    box-sizing: border-box;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
}

.em-multi-day-timeslots-dropdown__summary {
    list-style: none;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 8px 16px;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    color: #2c3338;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    background: transparent;
    margin: 0;
}

.em-multi-day-timeslots-dropdown__summary::-webkit-details-marker {
    display: none;
}

form.em-booking-form-checkout:has(#isStatusChecked) #shipping_wooccm11_field > label,
form.em-booking-form-checkout:has(#isStatusChecked) #shipping_wooccm10_field > label {
    display: block;
    min-height: 32px;
    margin: 0 0 6px;
    padding: 0;
    font-size: 16px;
}

form.em-booking-form-checkout:has(#isStatusChecked) #shipping_wooccm11,
form.em-booking-form-checkout:has(#isStatusChecked) #shipping_wooccm10_field > select {
    height: 42px;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.4;
}

form.em-booking-form-checkout:has(#isStatusChecked) .em-multi-day-timeslots-dropdown {
    top: 0;
    margin: 0;
}

form.em-booking-form-checkout:has(#isStatusChecked) .em-multi-day-timeslots-dropdown__summary {
    height: 100%;
    min-height: 0;
}

.em-multi-day-timeslots-dropdown__summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #50575e;
    border-bottom: 1.5px solid #50575e;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.em-multi-day-timeslots-dropdown[open] .em-multi-day-timeslots-dropdown__summary::after {
    transform: translateY(-35%) rotate(-135deg);
}

.em-multi-day-timeslots-dropdown__panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 280px;
    overflow: auto;
    padding: 12px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.em-multi-day-timeslots-dropdown:not([open]) .em-multi-day-timeslots-dropdown__panel {
    display: none;
}

.em-multi-day-timeslots-wrapper {
    display: block;
    font-size: 16px;
}

.event-day-slot-field {
    padding: 6px 0;
    border-top: 1px solid #f0f0f1;
}

.event-day-slot-field:first-child {
    border-top: 0;
    padding-top: 0;
}

.event-day-slot-date {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.event-day-slot-choices {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 22px;
}

.event-day-slot-choice-label {
    display: block;
    margin: 0;
    cursor: pointer;
}

.event-day-slot-date-indicator {
    pointer-events: none;
}

.event-day-slot-choice,
.event-day-slot-date-indicator {
    margin-right: 4px;
}

.event-day-slot-empty {
    color: #5f6b7a;
    font-style: italic;
}
#disclaimer_link {
    font-weight: 600 !important;
    text-decoration: underline !important;
    font-size: 16px !important;
    color: black !important;
}

#shipping_wooccm10_field {
    width: 100%;
}

#shipping_wooccm9_field {
    height: max-content !important;
}

#privacy_policy_field {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    gap: 1%;
    margin-bottom: 0;
}

#disclaimer {
    margin-left: 12px;
}

@media screen and (min-width: 768px) {
    .participant-list-container {
        width: 23%;
    }
    .participants-info-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

/*Media Query for mobile*/
@media (max-width: 430px) {
    .participants-info-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 24px;
    }

    #shipping_wooccm9_field {
        height: max-content !important;
    }
    .participant-list-container {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        grid-template-areas:
            "title title title"
            "left tabs right";
        align-items: center;
        column-gap: 8px;
        width: 100%;
    }

    .participant-list-buttons-container {
        grid-area: tabs;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 8px;
        margin: 0;
        padding: 4px 2px 10px;
        max-width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .participant-selection-button {
        flex: 0 0 auto;
        width: auto;
        min-width: 132px;
        max-width: 180px;
        min-height: 52px;
        margin: 0;
        padding: 10px 14px;
        line-height: 1.2;
        scroll-snap-align: start;
    }

    .participant-selection-button .button-text {
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #ParticipantsText {
        grid-area: title;
        margin: 0 0 6px !important;
        justify-content: flex-start !important;
    }

    #ScrollUpContainer,
    #ScrollDownContainer {
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin: 0;
    }

    #ScrollUpContainer {
        grid-area: left;
    }

    #ScrollDownContainer {
        grid-area: right;
    }

    #ScrollUp,
    #ScrollDown {
        display: flex !important;
        width: 32px;
        height: 32px;
    }

    #ScrollUp i,
    #ScrollDown i {
        font-size: 16px;
    }

    #ScrollUp i {
        transform: rotate(-90deg);
    }

    #ScrollDown i {
        transform: rotate(-90deg);
    }

    .button-delete {
        margin-left: 8px;
        flex-shrink: 0;
    }

    .em-participant-detail-container {
        width: 100%;
    }

    .participant-fields-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .em-fields-wrapper {
        display: flex;
        flex-direction: column;
    }

    .accreditation-header-fields-wrapper {
        display: flex;
        flex-direction: column;
    }

    .accreditation-wrapper {
        margin-bottom: 20%;
    }

    .em-radio-options-wrapper {
        display: flex;
        align-items: center;
        gap: 1%;
    }
    #disclaimer_label {
        overflow-wrap: anywhere;
        width: 90%;
    }
    #privacy_policy_field {
        display: flex;
        align-items: baseline;
        gap: 10px;
        line-height: 1.6 !important;
    }
    .em-participants-fields-wrapper {
        display: flex;
        flex-direction: column;
    }

    .em-booking-form-footer-container {
        flex-direction: column;
    }

    #place_gevent_prenotazione {
        align-self: end;
    }

    .em-booking-form {
        padding: 5%;
    }

    #shipping_wooccm9_field {
        width: 100% !important;
    }
}
