:root {
    --form-control-color: #951961;
}

#main {
    padding-bottom: 20vh;
}

#logo img {
    height: auto;
}

.box-title {
    display:inline-block;
    width: auto;
    font-family:'Coming Soon', cursive;
    font-size:22px;
    color:#951961;
    text-transform:uppercase;
    padding-top:10px;
}

.box-subtitle {
    display:inline-block;
    width: auto;
    font-family:'Coming Soon', cursive;
    font-size:18px;
    color:#951961;
    text-transform:uppercase;
    padding-top:10px;
}

@media all and (min-width:610px) {
    h2.box-title {
        font-size:50px;
    }
    h2.box-subtitle {
        font-size:32px;
    }
}

/* Bottom bar */

.bottom-bar {
    background-color: #CCCCCC;
    width: 100%;
    height: 12vh;
    max-height: 150px;
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10vw;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.bottom-bar .price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bottom-bar .price .total {
    width: 100%;
    font-family: 'Coming Soon', cursive;
    font-size: 30px;
    color: #951961;
    text-transform: uppercase;
    text-align: start;
}

.bottom-bar .price .base-price {
    width: 100%;
    font-family: Roboto, serif;
    font-size: 16px;
    text-align: start;
}

.bottom-bar .action button.next {
    background-color: #951961;
    color: #fff;
    font-family: 'Coming Soon', cursive;
    font-size: 20px;
    text-transform: uppercase;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.bottom-bar .action button.next[disabled] {
    background-color: transparent;
    color: #951961;
    font-family: 'Coming Soon', cursive;
    font-size: 20px;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: not-allowed;
    transition: background-color 0.3s ease;
}

.bottom-bar .action button.next:hover:not([disabled]) {
    background-color: #7a0f4c;
}

/* Durée */

.box-duration {
    display: flex;
    justify-content: center;
}

.box-duration-option {
    width: auto;
    font-family: 'Coming Soon', cursive;
    font-size: 24px;
    color: #951961;
    text-transform: uppercase;
    padding-top: 10px;
    max-width: 25%;
    min-width: 20%;
}

.box-duration-option label {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;

    /*
    display: grid;
    grid-template-columns: 1em auto;
    gap: 0.5em;
    */
}

.box-duration-option input[type="radio"] {
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 0.15em solid currentColor;
    border-radius: 50%;

    display: grid;
    place-content: center;
}

.box-duration-option input[type="radio"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--form-control-color);
}

input[type="radio"]:checked::before {
    transform: scale(1);
}

.box-duration-option label .duration-discount:has(span) {
    background-color: #66CCCC;
    color: #fff;
    margin-top: 15px;
    padding: 0 10px;
    border-radius: 15px;
}

.box-duration-option label .duration-discount span {
    font-weight: bold;
    font-size: 15px;
    line-height: normal;
    text-align: center;
    vertical-align: center;
}

/* Delivery */

.box-delivery {
    display: flex;
    justify-content: center;
}

.box-delivery .delivery-option {
    width: auto;
    font-family: 'Coming Soon', cursive;
    font-size: 26px;
    color: #951961;
    text-transform: uppercase;
    padding-top: 10px;
    background-color: #D9D9D9;
}

.box-delivery .delivery-option label {
    display: flex;
    flex-direction: row;
    text-align: center;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px 25px;
}

.box-delivery .delivery-option input[type="radio"] {
    appearance: none;
    background: none;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 0.15em solid currentColor;
    border-radius: 50%;

    display: grid;
    place-content: center;
    cursor: pointer;
}

.box-delivery .delivery-option input[type="radio"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--form-control-color);
}

.box-delivery .delivery-option input[type="radio"]:checked::before {
    transform: scale(1);
}

.box-delivery .delivery-option span.option-text {
    display: flex;
    flex-direction: column;
    text-align: start;
    align-items: start;
    padding: 0 10px;
    min-width: 60%;
}

.box-delivery .delivery-option span.option-text .option-text-description {
    font-family: Roboto, serif;
    font-size: 16px;
    color: #333;
    margin-top: 5px;
}

.box-delivery .delivery-option span.option-price {
    height: 100%;
    font-family: Roboto, serif;
    font-size: 16px;
    color: #333;
}

.box-delivery .delivery-option span.option-price .price-badge {
    background-color: #66CCCC;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    display: inline-block;

    /* Put on top of the parent*/
    position: relative;
    top: -2vh;
    right: -5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

/* Recap */

.recap-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.recap-table th, .recap-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.recap-table thead th {
    text-align: center;
}

.recap-total {
    font-weight: bold;
    font-size: 20px;
}

.text-accent {
    color: var(--form-control-color);
}

.required-checkboxes-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

/*
 * Responsive
 */

@media all and (max-width: 850px) {
    #main {
        padding-bottom: 30vh!important;
    }

    .bottom-bar {
        flex-direction: column;
        height: auto!important;
        padding: 2rem 10vw;
        text-align: center;
        max-height: 30vh!important;
    }

    .bottom-bar span {
        text-align: center!important;
        line-height: 3.5rem;
    }

    .box-duration {
        margin: 0 auto;
        max-width: 80%;
        flex-wrap: wrap;
    }

    .box-duration > .box-duration-option {
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;
        margin: 10px 0;
    }

    .required-checkboxes-container > label {
        margin-bottom: 20px;
    }

}

@media all and (max-width: 350px) {
    .box-duration {
        margin: 0 auto;
        max-width: 80%;
        flex-wrap: wrap;
    }

    .box-duration > .box-duration-option {
        flex: 0 0 80%;
        width: 80%;
        max-width: 80%;
        margin: 10px 0;
    }
}

/* Listing vertical des produits (box) */
.box-list-item {
    width: 100%;
    display: grid;
    grid-template-columns: 110px 1fr 160px 180px;
    align-items: center;
    column-gap: 16px;
    row-gap: 8px;
    padding: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 16px;
}

.box-list-item .item-content {
    grid-column: 1;
}

.box-list-item .item-content .box-image {
    width: 110px;
}

.box-list-item .item-content .box-image img {
    width: 100%;
    height: auto !important;
}

.box-list-item .item-header {
    grid-column: 2;
}

.box-list-item .item-header .header-title {
    font-size: 1.25rem;
    color: #951961;
}

.box-list-item .price-quantity {
    grid-column: 3;
    text-align: right;
}

.box-list-item .price-quantity .box-infos {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.box-list-item .commander {
    grid-column: 4;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.box-list-item .commander .addtocart {
    background-color: #951961;
    color: #fff;
    padding: 8px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Coming Soon', cursive;
    text-transform: uppercase;
    font-size: 16px;
}

.box-list-item .commander .addtocart:hover {
    background-color: #7a0f4c;
}

/* Responsive: pile sur petits écrans */
@media all and (max-width: 992px) {
    .box-list-item {
        grid-template-columns: 90px 1fr;
    }
    .box-list-item .item-content {
        grid-column: 1;
        grid-row: 1 / span 3;
    }
    .box-list-item .item-header {
        grid-column: 2;
        grid-row: 1;
    }
    .box-list-item .price-quantity {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
    }
    .box-list-item .commander {
        grid-column: 1 / -1;
        grid-row: 3;
        flex-direction: row;
        justify-content: flex-end;
    }
}