html, body {
  touch-action: manipulation;
}
/* Loader Full Screen */
#fullscreen-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(251, 146, 60, 0.15) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.1s ease-out;
}

#fullscreen-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

#fullscreen-loader-login {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(251, 146, 60, 0.15) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.1s ease-out;
}

#fullscreen-loader-login.fade-out {
    opacity: 0;
    pointer-events: none;
}

#fullscreen-loader-countdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(251, 146, 60, 0.15) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.1s ease-out;
}

#fullscreen-loader-countdown.fade-out {
    opacity: 0;
    pointer-events: none;
}



.loader-content {
    text-align: center;
    color: #726e6c;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
}

.loader-subtext {
    font-size: 14px;
    opacity: 0.9;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animazione pulsante */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.loader-spinner {
    animation: spin 1s linear infinite;
}

/* Varianti di colore del gradiente */
.loader-gradient-blue {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.85) 0%, 
        rgba(29, 78, 216, 0.85) 100%);
}

.loader-gradient-purple {
    background: linear-gradient(135deg, 
        rgba(147, 51, 234, 0.85) 0%, 
        rgba(79, 70, 229, 0.85) 100%);
}

.loader-gradient-pink {
    background: linear-gradient(135deg, 
        rgba(236, 72, 153, 0.85) 0%, 
        rgba(219, 39, 119, 0.85) 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .loader-text {
        font-size: 16px;
    }
    
    .loader-subtext {
        font-size: 12px;
    }
    
    .loader-spinner {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
}

.italic{font-style: italic !important;}
.card-main-container{
    background-color: #f4f9ffab !important;
    border: 1px solid #ededed;
    border-radius: 10px !important;
    height: 95vh; 
    max-height: 95vh; 
    overflow-y: auto; 
    padding-bottom: 5.5rem !important;
}
.parallelepiped{
    font-weight: 300;
    /* Trasformazione per creare l'effetto parallelopipedo */
    transform: skew(-8deg);
}
.count-quotes{
    background-color: transparent !important;
    border: 1px solid #D6D6D6 !important;
    color: #848484 !important;
    font-size: 0.875rem;
    padding: 6px 0px;
    border-radius: 5px !important;
}
.btn-plus:disabled {
    background: #E8E8E8 !important;
    border: 1px solid #D6D6D6 !important;
    color: #B2B2B2 !important;
}
.col-card-online-registrations{
    max-width: 33% !important;
    min-width: 290px !important;
    width: 348px !important;
}
.card-online-registrations:hover{
    border: .5px solid #EDEDED !important;
}

.div-main-wrapper{
    height: 95vh !important;
    margin: 2.5vh 0 !important;
}

.btn-navigation{
    width: 55%;
}

/* Stili per il carrello fisso in basso */
.cart-fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 1px solid #dee2e6;
    z-index: 1050;
    padding: 15px 20px;
    display: none;
}

.cart-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    font-size: 0.9em;
}

.cart-item-name {
    flex: 1;
    text-align: left;
}

.cart-item-quantity {
    flex: 0 0 auto;
    margin: 0 10px;
    color: #6c757d;
}

.cart-item-price {
    flex: 0 0 auto;
    font-weight: 500;
}

.cart-total {
    border-top: 1px solid #dee2e6;
    padding-top: 8px;
    margin-top: 8px;
    font-size: 1.1em;
}

.btn-minus:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.count-quotes {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    font-weight: 500;
    pointer-events: none;
}

.card-checkout-cart{
    height: auto !important;
    padding: 2rem !important;
}

/* Aggiungi padding bottom al contenuto per evitare sovrapposizione con il carrello */
body.cart-active {
    padding-bottom: 100px;
}

/* Responsività */
.only-mobile {
    display: none !important;
}
.pb-lg-3{
    padding-bottom: 1rem !important;
}
.event-logo-moduls{height: 145px;}
@media (max-width: 768px) {
    .card-main-container {
        height: auto;
        max-height: none;
        padding-bottom: 7rem !important;
    }
    .col-card-online-registrations{
        width: 100% !important;
    }
    #div_main_onlineregistrations{
        height: auto !important;
        margin: 2vh 0 !important;
    }
    .cart-fixed-bottom{
        padding: 15px 20px 20px 20px;
    }
    .hide-mobile {
        display: none !important;
    }
    .only-mobile {
        display: block !important;
    }
    .container-moduls{
        padding-bottom: 10rem !important;
        min-height: 75vh;
    }
    .pb-lg-3{
        padding-bottom: 0 !important;
    }
    .event-logo-moduls{height: 100px;}
    .accordion-body{
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    .btn-navigation {
        width: 75%;
    }
    .fixed-buttons-schedule{
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .btn {
        transform: skew(-8deg) !important;
    }
    
    .btn span,
    .btn i {
        transform: skew(8deg) !important;
    }
    
    .btn:hover {
        transform: skew(-8deg) !important;
    }
    
    .btn-primary,
    .btn-success,
    .btn-danger,
    .btn-blue {
        transform: skew(-8deg) !important;
    }
    
    .btn-primary-active,
    .btn-success-active,
    .btn-danger-active,
    .btn-blue-active {
        transform: skew(-8deg) !important;
    }

    .mb-xs-3{
        margin-bottom: 1rem !important;
    }

    .text-center-xs{
        text-align: center !important;
    }
}

.card-checkout-cart {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.cart-summary-item {
    transition: background-color 0.2s ease;
}

.cart-summary-actions .btn {
    font-weight: 500;
}

.item-details h6 {
    line-height: 1.3;
}

.quantity-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    font-size: 0.75em;
    padding: 4px 8px;
}

/* Animazione per i nuovi elementi */
.cart-summary-item {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .card-checkout-cart {
        position: relative;
        top: 0;
        max-height: none;
        margin-top: 20px;
    }
}

.accordion-button{
    border-radius: 12px !important;
}
.accordion-item{
    border-radius: 12px !important;
    border: 1px solid #EDEDED !important;
}

.accordion-minus::after {
    background-image: url("../../admin/assets/images/svgs/icon-minus.svg") !important;
}

.upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: white;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #495057;
    min-height: 120px;
}

.upload-btn:hover {
    border-color: #007bff;
    background: #f0f8ff;
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.upload-btn i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.upload-btn span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.uploaded-files-container {
    max-height: 300px;
    overflow-y: auto;
}

.uploaded-file-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6 !important;
}

.uploaded-file-item:hover {
    background-color: #e9ecef;
}

.file-preview-image img {
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.file-preview-image img:hover {
    transform: scale(1.1);
    border-color: #0d6efd;
}

.file-icon i:hover {
    color: #0d6efd !important;
    transform: scale(1.1);
}

.btn-group-vertical .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.btn {
    border-radius: 5px !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.uploaded-file-item {
    transition: all 0.3s ease;
}

.document-validated{
    border: 2px dashed #55cf76;
    color: #55cf76;
}
.document-validated i{
    content: "\f00c" !important;
}
.payment-method-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-method-card:hover {
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.payment-method-card input[type="radio"]:checked + label {
    background-color: #f8fff9;
}

.payment-method-card input[type="radio"]:checked ~ * {
    border-color: #28a745;
}

.payment-method-option {
    padding: 1rem;
    margin: 0;
    cursor: pointer;
}

.payment-method-option input[type="radio"] {
    transform: scale(1.2);
}

.payment-method-title {
    font-weight: 500;
    font-size: 1.1rem;
    color: #212529;
}

.payment-method-subtitle {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.payment-method-icons img {
    margin-left: 0.5rem;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.payment-method-card input[type="radio"]:checked + label .payment-method-icons img {
    filter: grayscale(0%);
}

#checkout_total_amount {
    font-size: 1.5rem;
}

.card-header.bg-light {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6;
}

.c-input:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

#btn_process_payment {
    min-height: 50px;
    font-size: 1.1rem;
    font-weight: 500;
}

#btn_process_payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.col-left-part-online-registrations{
    width: 550px !important;
}
.col-right-part-online-registrations{
    width: calc(100% - 550px) !important;
}

@media (max-width: 1500px) {
    
    .col-left-part-online-registrations{
        width: 425px !important;
    }
    .col-right-part-online-registrations{
        width: calc(100% - 425px) !important;
    }

}
@media (max-width: 1300px) {
    
    .col-left-part-online-registrations{
        width: 375px !important;
    }
    .col-right-part-online-registrations{
        width: calc(100% - 375px) !important;
    }

}
@media (max-width: 768px) {
    .payment-method-icons {
        margin-top: 0.5rem;
    }
    
    .payment-method-card {
        margin-bottom: 1rem;
    }

    .col-left-part-online-registrations{
        width: auto !important;
    }
    .col-right-part-online-registrations{
        width: auto !important;
    }
}

.checkbox-payment-type{background-color: #FFF !important;}
.form-check-input:checked {
    background-color: #5d87ff !important;
    border-color: #5d87ff !important;
}

/* Stili per i checkbox dei consensi in errore */
.checkbox_consents.is-invalid {
    outline-offset: 0px;
    height: fit-content;
    margin: auto 0;
    border-radius: 3px;
}

.checkbox_consents.is-invalid + label {
    color: #dc3545 !important;
}

/* Animazione per attirare l'attenzione */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.checkbox_consents.is-invalid {
    animation: pulse-red 1s infinite;
}

.horizontal-scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling su iOS */
    scrollbar-width: none; /* Firefox */
    padding-bottom: 5px; /* Spazio per scrollbar */
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.horizontal-scroll-container .btn {
    display: inline-block;
    margin-right: 8px;
    flex-shrink: 0; /* Impedisce ai bottoni di rimpicciolirsi */
}
.success-animation {
    margin: 0 auto;
    width: 100px;
    height: 100px;
}

.checkmark-circle {
    width: 70px;
    height: 70px;
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.checkmark-circle .background {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #28a745;
    position: absolute;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle .checkmark {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin: 32.5px auto;
    box-shadow: inset 0px 0px 0px #28a745;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
    position: relative;
    transform: rotate(-45deg);
}

.checkmark-circle .checkmark.draw:after {
    animation-delay: 0.9s;
    animation-duration: 0.4s;
    animation-timing-function: ease-in-out;
    animation-name: checkmark;
    transform: scaleX(-1) rotate(135deg);
    animation-fill-mode: forwards;
}

.checkmark-circle .checkmark:after {
    opacity: 1;
    height: 20px;
    width: 10px;
    transform-origin: left top;
    border-right: 3px solid #fff;
    border-top: 3px solid #fff;
    content: '';
    left: 12px;
    top: 18px;
    position: absolute;
}

@keyframes scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes fill {
    100% { box-shadow: inset 0px 0px 0px 30px #28a745; }
}

@keyframes checkmark {
    0% { height: 0; width: 0; opacity: 1; }
    20% { height: 0; width: 10px; opacity: 1; }
    40% { height: 20px; width: 10px; opacity: 1; }
    100% { height: 20px; width: 10px; opacity: 1; }
}

.left-part-online-registrations{
    height: 83vh !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.card-online-registrations {
        box-shadow: none;
        border: .5px solid #EDEDED !important;
    }

    .ihand {
        cursor: pointer;
    }
    .card {
        border-radius: 10px !important;
    }

    /* Stili per il modal personalizzato */
    .custom-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .modal-container {
        position: relative;
        background: white;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        max-width: 90%;
        max-height: 90%;
        width: 85%;
        overflow: hidden;
        animation: modalFadeIn 0.3s ease-out;
    }

    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: scale(0.9) translateY(-20px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }

    .modal-header {
        padding: 20px 25px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #f8f9fa;
    }

    .modal-title {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
    }

    .close-btn {
        background: none;
        border: none;
        font-size: 28px;
        line-height: 1;
        color: #999;
        cursor: pointer;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s;
    }

    .close-btn:hover {
        color: #333;
        /*background-color: #f0f0f0;*/
    }

    .modal-body {
        padding: 25px;
        max-height: 60vh;
        overflow-y: auto;
    }

    .modal-footer {
        padding: 15px 25px;
        border-top: 1px solid #eee;
        display: flex;
        justify-content: flex-end;
        background-color: #f8f9fa;
    }

    

    .loading-spinner {
        text-align: center;
        padding: 40px;
    }

    .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid #f3f3f3;
        border-top: 4px solid #007bff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 15px;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Responsive */
    @media (max-width: 768px) {
        .modal-container {
            width: 95%;
            margin: 10px;
        }
        
        .modal-body {
            max-height: 70vh;
        }
    }

    /* Stili per i documenti */
    .documents-section {
        border-top: 1px solid #eee;
        padding-top: 20px;
        margin-top: 20px;
    }

    .documents-section-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 15px;
        padding-bottom: 8px;
        border-bottom: 2px solid #f0f0f0;
    }

    .documents-section-title.pending {
        border-bottom-color: #ffc107;
    }

    .documents-section-title.validated {
        border-bottom-color: #28a745;
    }

    .documents-section-title.rejected {
        border-bottom-color: #dc3545;
    }

    .documents-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .document-item {
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 15px;
        background-color: #fff;
        transition: all 0.2s;
        width: 100%;
        cursor: pointer;
    }

    .document-item:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .document-item.pending {
        border-left: 4px solid #ffc107;
    }

    .document-item.validated {
        border-left: 4px solid #28a745;
    }

    .document-item.rejected {
        border-left: 4px solid #dc3545;
    }

    .document-icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: white;
        flex-shrink: 0;
    }

    .document-icon.pdf {
        background-color: #dc3545;
    }

    .document-icon.image {
        background-color: #17a2b8;
    }

    .document-info {
        flex: 1;
        min-width: 0; /* Permette al testo di essere troncato se necessario */
    }

    .document-info h6 {
        margin: 0 0 5px 0;
        font-weight: 600;
        font-size: 14px;
    }

    .document-info small {
        color: #6c757d;
        font-size: 12px;
        word-break: break-word;
    }

    .document-status {
        text-align: right;
        flex-shrink: 0;
        margin-left: 10px;
    }

    /* Responsive per mobile */
    @media (max-width: 768px) {
        .document-item .d-flex {
            flex-direction: column;
            align-items: flex-start !important;
        }
        
        .document-item .d-flex > div {
            width: 100%;
            margin-bottom: 10px;
        }
        
        .document-item .d-flex > div:last-child {
            margin-bottom: 0;
        }
        
        .document-status {
            text-align: left;
            margin-left: 0;
        }
        
        .document-icon {
            margin-right: 15px !important;
            align-self: flex-start;
        }
        
        .document-info {
            margin-left: 0;
        }
        
        .document-info h6 {
            font-size: 16px;
        }
        
        .document-info small {
            font-size: 13px;
        }
    }

    .status-badge {
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 500;
    }

    .status-badge.pending {
        background-color: #fff3cd;
        color: #856404;
    }

    .status-badge.validated {
        background-color: #d4edda;
        color: #155724;
    }

    .status-badge.rejected {
        background-color: #f8d7da;
        color: #721c24;
    }

    .upload-buttons-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
        margin-bottom: 20px;
    }

    .upload-btn-checklist {
        padding: 10px 15px;
        border: 2px dashed #dee2e6;
        border-radius: 8px;
        background: #f8f9fa;
        cursor: pointer;
        transition: all 0.2s;
        text-align: center;
        font-size: 14px;
        color: #495057;
    }

    .upload-btn-checklist:hover {
        border-color: #007bff;
        background-color: #e3f2fd;
        color: #007bff;
    }

    .no-documents {
        text-align: center;
        color: #6c757d;
        font-style: italic;
        padding: 20px;
    }

    /* Stili per i carrelli aperti */
    .open-cart-item-container {
        position: relative;
        margin-bottom: 15px;
        padding: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #fff;
        transition: all 0.3s ease;
        cursor: pointer;
        overflow: hidden;
    }
    
    .open-cart-item-container:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        border-color: #007bff;
    }
    
    .open-cart-item-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 10px;
    }
    
    .open-cart-item-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin: 0;
    }
    
    .open-cart-item-amount {
        font-size: 18px;
        font-weight: 700;
        color: #28a745;
    }
    
    .open-cart-item-info {
        margin-bottom: 8px;
    }
    
    .open-cart-item-detail {
        font-size: 13px;
        color: #666;
        margin-bottom: 4px;
    }
    
    .open-cart-item-detail strong {
        color: #333;
    }
    
    /* Overlay "Paga ora" al mouse over - solo desktop */
    .open-cart-item-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 123, 255, 0.95);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 10;
    }
    
    .open-cart-item-overlay-btn {
        background: #fff;
        color: #007bff;
        border: none;
        padding: 12px 24px;
        border-radius: 25px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transform: scale(0.8);
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    .open-cart-item-overlay-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }
    
    /* Solo su desktop mostra l'overlay hover */
    @media (min-width: 768px) {
        .open-cart-item-container:hover .open-cart-item-overlay {
            opacity: 1;
            visibility: visible;
        }
        
        .open-cart-item-container:hover .open-cart-item-overlay-btn {
            transform: scale(1);
        }
        
        /* Nascondi il pulsante mobile su desktop */
        .open-cart-item-mobile-btn {
            display: none;
        }
    }
    
    /* Pulsante mobile in fondo al card */
    .open-cart-item-mobile-btn {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }
    
    .open-cart-item-pay-btn {
        width: 100%;
        background: linear-gradient(45deg, #007bff, #0056b3);
        color: white;
        border: none;
        padding: 12px 20px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .open-cart-item-pay-btn:hover {
        background: linear-gradient(45deg, #0056b3, #004085);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    }
    
    .open-cart-item-pay-btn:active {
        transform: translateY(0);
    }
    
    /* Nasconde l'overlay su mobile */
    @media (max-width: 767px) {
        .open-cart-item-overlay {
            display: none !important;
        }
    }
    
    /* Stili per lo status badge */
    .status-badge {
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    
    .status-pending {
        background-color: #fff3cd;
        color: #856404;
        border: 1px solid #ffeaa7;
    }
    
    .status-processing {
        background-color: #cce5ff;
        color: #0056b3;
        border: 1px solid #99ccff;
    }
    
    .status-completed {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }
    
    /* Altri stili generali */
    .cart-actions button {
        transition: all 0.2s ease;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    
    .cart-actions button:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .cart-actions button:disabled {
        cursor: not-allowed;
        opacity: 0.5 !important;
    }
    .checkbox_consents:disabled {
        opacity: 0.5;
        cursor: not-allowed !important;
    }

    .checkbox_consents:disabled + label {
        opacity: 0.5;
        cursor: not-allowed !important;
        color: #6c757d;
    }

    .cart-summary-scroll{
        overflow: auto;
        max-height: calc(100vh - 500px);
    }



/* Media query per schermi ad alta densità (laptop retina/hdpi) */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi),
       only screen and (min-resolution: 1.5dppx) {
    
    /* Riduci leggermente i font size per schermi ad alta densità */
    body {
        font-size: 0.9rem !important;
    }
    
    p  { font-size: 0.85rem !important; }
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.3rem !important; }
    h4 { font-size: 1.1rem !important; }
    h5 { font-size: 1rem !important; }
    h6 { font-size: 0.9rem !important; }
    
    .card-title { 
        font-size: 1.1rem !important; 
    }
    
    .btn {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .btn-lg {
        font-size: 1rem !important;
        padding: 0.6rem 1.2rem !important;
    }
    
    .fs-7 {
        font-size: 1.1rem !important;
    }
    
    .event-date,
    .event-location {
        font-size: 0.85rem !important;
    }
}
