﻿.custom-section-cart {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
    box-sizing: border-box;    
    align-content: center;
    align-items: center;
    width: 60%;
    margin: 0 auto;
}

.summary-title-cart {
    font-size: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
}


.cart-booking {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-rectangle-40 {
    width: 95%;
    min-height: 200px;
    background-color: #F4F4F4;
    border-radius: 5px;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    padding-bottom: 15px;
}

    .cart-rectangle-40 h3 {
        font-weight: bold;
        font-size: 31px;
        margin-bottom: 20px;
    }

.cartShare-rectangle-40 {
    width: 100%;
    min-height: 200px;
    background-color: #F4F4F4;
    border-radius: 5px;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    padding-bottom: 15px;
}

    .cartShare-rectangle-40 h3 {
        font-weight: bold;
        font-size: 31px;
        margin-bottom: 20px;
    }

.cart-sub-rectangle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.booking-details-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;    
    width: 100%;
    gap: 50px;
}


.cart-rectangle-60 {
    width: 100%;
}


.cart-summary {
    margin: 0 auto;
    width: 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-size: 20px;
    color: var(--primary-text-color);
}

.empty-cart {
    margin: 0 auto;
    width: 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: calc(100vh - 350px);
    align-content: center;
    align-items: center;
    color: var(--primary-text-color);
}

.buttonUpdateQuantity {
    background-color: #E40E18;
    color: white;
    font-size: 12px;
    padding: 5px;
    border: none;
    border-radius: 5px;
    margin-left: 10px;
    min-width: 200px;
}

.name-overflow-booking-name {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.battery-info {
    display: flex;
    flex-direction: column;
    width: 20%;
}

.summary-content-cart {
    margin-top: 40px;
    display: flex;
    align-items: center;
}

    .summary-content-cart div {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 60px;
        flex-wrap: wrap;
    }

        .summary-content-cart div div {
            display: flex;
            align-items: center;
            gap: 10px;
            justify-content: center;
            white-space: nowrap;
            flex: 0 0 10%;
        }

        .summary-content-cart div div span{
            font-size: 25px;
        }

.cart-tools {
    display:flex;
    flex-direction:column;
    gap: 20px;
}


.copied-message {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background-color: #333;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    font-size: 16px;
}


@media (min-width: 768px) and (max-width: 1300px) {
    .custom-section-cart {
            padding: 20px;
            margin-bottom: 130px;
            width: 100%;
        }

        .cart-booking {
            width: 100%;
        }

        .summary-title-cart {
            font-size: 30px;
        }

        .summary-content-cart {
            margin-top: 5px;
            margin-bottom: 0px;
        }

            .summary-content-cart div {
                gap: 30px;
            }

                .summary-content-cart div div span {
                    font-size: 25px;
                }


        .cart-rectangle-40 {
            width: 90%;
            flex-direction: column;
            padding-bottom: 30px;
            padding: 10px;

        }

        .cartShare-rectangle-40 {
            width: 100%;
            flex-direction: column;
            padding-bottom: 30px;
        }

        .cart-sub-rectangle {
            width: 100%;
            margin-top: 40px;
        }

        .cart-summary {
            margin: 0 auto;
            margin-top: -120px;
            width: 100%;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .booking-details-cart {
            padding: 0px;
            margin-top: 35px;
        }
    }

@media (min-width: 500px) and (max-width: 768px) {

    .custom-section-cart {
        padding: 20px;
        margin-bottom: 130px;
        width: 100%;
    }

    .cart-booking {
        width: 100%;
    }

    .summary-title-cart {
        font-size: 30px;
    }

    .summary-content-cart {
        margin-top: 5px;
        margin-bottom: 0px;
    }

        .summary-content-cart div {
            gap: 20px;
            margin-top: 10px;
        }

    .cart-rectangle-40 {
        width: 90%;
        flex-direction: column;
        padding-bottom: 30px;
        padding: 10px;
    }

    .cartShare-rectangle-40 {
        width: 100%;
        flex-direction: column;
        padding-bottom: 30px;
    }


    .cart-sub-rectangle {
        width: 100%;
        flex-direction: column;
    }

    .cart-summary {
        margin: 0 auto;
        margin-top: -120px;
        width: 100%;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .booking-details-cart {
        padding: 0px;
        margin-top: 35px;
    }
}


@media (max-width: 500px) {

    .custom-section-cart {
        padding: 20px;
        margin-bottom: 130px;
        width: 100%;
    }

    .cart-booking {
        width: 100%;
    }

    .summary-title-cart {
        font-size: 30px;
    }

    .summary-content-cart {
        
        flex-wrap: wrap;
        justify-content: space-between;
        max-width: 400px;
        width: 100%;
        margin: auto;
    }

        .summary-content-cart div {
            gap: 25px;
            width: 100%;
            margin-top: 10px;
        }

    .cart-rectangle-40 {
        width: 90%;
        flex-direction: column;
        padding: 0 0 25px 0;
    }

    .cartShare-rectangle-40 {
        width: 100%;
        flex-direction: column;
        padding-bottom: 30px;
    }

    .cart-sub-rectangle {
        width: 100%;
        flex-direction: column;
    }

    .cart-summary {
        margin: 0 auto;
        margin-top: -120px;
        width: 100%;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .booking-details-cart {
        padding: 0px;
        margin-top: 35px;
    }
}