/* ----------- Message ----------------- */

.message{
    width: 100%;
    text-align: center;
    padding: 20px 10PX;
    font-size: 1.1rem;
    color: #FFF;
    background-color: #312783;
    margin: 0;
    margin-bottom: 5px;
}

/* ------------- Rocket__checkout ------------------ */

.rocket__checkout-container{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1500px;
    position: relative;
    margin: 0 auto;
    padding: 60px 10px 30px 10px;
}

.backToCart{
    position: absolute;
    left: 5px;
    top: 5px;
    padding: 5px;
    border: 2px solid #312783;
    border-radius: 16px;
    color: #312783;
    transition: background-color .5s ease, color .3s ease;
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
}

.backToCart:hover{
    background-color: #312783;
    color: #FFF;
}

.rocket__checkout-title{
    font-size: 1.9rem;
    color: #312783;
    font-weight: 400;
    text-align: center;
    word-wrap: pretty;
    word-break: keep-all;
}

.rocket__checkout-form{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 20px;
    width: 100%;
}

.rocket__checkout-item-container{
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: space-between;
    align-items: start;
}

.rocket__checkout-form-dates{
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-evenly;
    gap: 20px;
    width: 100%;
    max-width: 320px;
    padding: 20px 10px;
    border: 1px solid #3127836f;
}

.checkout__form-dates-title{
    font-size: 1.5rem;
    color: #312783;
    font-weight: 400;
    text-align: center;
    word-wrap: pretty;
    word-break: keep-all;
    width: 100%;
}

.rocket__checkout-item-container label{
    color:#000;
    font-weight: 500;
    text-align: start;
    text-wrap: pretty;
}

.rocket__checkout-item-container input{
    border: none;
    outline: none;
    border-bottom: 2px solid #312783;
    font-size: 1.1rem;
}

.rocket__checkout-item-container input:focus, .rocket__checkout-item-container input:hover{
    outline: 1px solid #8080801f;
}

.phone-help {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.rocket__checkout-form input:invalid {
    border-bottom: 1.5px solid #808080;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

.rocket__checkout-form-vouchersPreview{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 15px;
    width: 100%;
    max-width: 600px;
    padding: 20px 10px 20px 10px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.checkout__voucherPreview-title{
    font-size: 1.9rem;
    color: #312783;
    font-weight: 400;
    text-align: center;
    word-wrap: pretty;
    word-break: keep-all;
}

.checkout__voucherPreview-container-main{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    padding: 10px;
    background-color: #FFF;
    gap: 20px;
}

.checkout__voucherPreview-container{
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.checkout-title{
    font-size: 1.5rem;
    color: #53C3BD;
    text-align: center;
    text-wrap: pretty;
    word-break: keep-all;
    font-weight: 400;
}

.checkout__voucherPreview-list{
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-items: center;
    justify-content: space-evenly;
}

.checkout__voucherPreview-item{
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
    padding: 10px 0;
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
}

.voucherPreview-item-img{
    flex: 1;
    width: 80px;
    aspect-ratio: 1/1;
}

.voucherPreview-info-container{
    flex: 4;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-content: space-between;
    gap: 10px;
}

.voucherPreview-info-container p{
    margin: 0;
    color: #000;
    font-weight: 400;
    font-size: .9rem;
    text-align: start;
}

.voucherPreview-item-delete{
    flex: 0;
    background-color: transparent;
    color: #f24;
    border: 2px solid #f24;
    padding: 5px 8px;
    border-radius: 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color .5s ease;
}

.voucherPreview-item-delete:hover{
    background-color: #f9f9f9;
}

/* ------------ Empty Cart -------------*/

.empty-cart{
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.empty-cart i{
    font-size: 4rem;
    color: #53C3BD;
}

.empty-cart p{
    margin: 0;
    text-align: center;
}

.empty-cart a{
    color: #33a39b;
    text-decoration: none;
    transition: color .3s ease;
}

.empty-cart a:hover{
    color: #53C3BD;
    text-decoration: underline;
}

/* ------------------------------------- */

.rocket__checkout-form-buy{
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-evenly;
    gap: 10px;
    width: 100%;
}

.conditions-container{
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.conditions-container label{
    flex: 1;
    font-size: 1.2rem;
}

.conditions-container a{
    color: #211fc2;
    text-decoration: none;
}

.conditions-container a:hover{
    text-decoration: underline;
}

.conditions-checkbox{
    display: flex;
    margin: 0;
    height: 20px;
    width: 20px;
    cursor: pointer;
}

.buy-btn{
    margin: 15px auto;
    background-color: transparent;
    outline: none;
    font-size: 1.3rem;
    border: 1px solid #3127836f;
    padding: 5px 25px;
    cursor: pointer;
    color: #000;
    transition: background-color .3s ease;
}

.buy-btn:hover{
    background-color: #3127831f;
}

.rocket__checkout-listInfo{
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    border-top: 2px solid #222;
    padding: 20px 5px 10px 5px;
}

.rocket__checkout-itemInfo{
    font-size: 1rem;
    color: #808080;
    font-weight: bold;
    text-align: start;
    text-wrap: pretty;
}

.checkout__voucherPreview-details{
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: start;
    gap: 10px;
}

.checkout__voucherPreview-details p{
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid #bbb;
    padding: 5px 0;
    gap: 10px;
    text-wrap: pretty;
}

.details-subtitle{
    color: #000;
    font-weight: 500;
    text-align: left;
}

#last-total{
    display: flex;
    flex-flow: row wrap;
    gap: 0 10px;
    justify-content: stretch;
}

.details-subtitle span{
    color: #312783;
}

/* ------------- Rocket__checkout queries --------------- */

@container rocket (min-width:375px){
    .voucherPreview-info-container p{
        font-size: 1rem;
    }

    .voucherPreview-item-img{
        width: 100px;
    }
}

@container rocket (min-width:56.25rem){
    
    .rocket__checkout-container{
        gap: 30px;
    }

    .rocket__checkout-form{
        flex-direction: row;
        align-items: start;
        justify-content: center;
        gap: 40px;
    }

    .rocket__checkout-form-dates{
        flex: 1;
    }

    .rocket__checkout-form-vouchersPreview{
        flex: 2;
    }

    .rocket__checkout-listInfo{
        max-width: 700px;
    }

    .rocket__checkout-listInfo p{
        font-size: 1.2rem;
    }
}

/* ------------- Fin rocket__checkout -------------------- */