/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

.delete-item {
    cursor: pointer;
}
.update-cart {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin-left: auto;
    margin-top: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    display: block;
    padding: 6px 12px;
    cursor: pointer;
    color: #ffffff;
    background: var(--primary-color);
    font-size: 1.2rem;
}
.add-cart {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin-right: auto;
    margin-top: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    display: block;
    padding: 6px 12px;
    cursor: pointer;
    color: #ffffff;
    background: var(--primary-color);
    font-size: 1.2rem;
}
.empty p {
    text-align: center;
    margin: 30px;
    font-size: 32px;
    font-weight: bold;
    color: var(--warning);
}
.cart-form {
    padding: 20px 30px 20px 30px;
    border: 1px solid #333;
    border-bottom: none;
    border-radius: 30px 30px 0 0;
    margin: 0;
}
.progress-bar-wrapper .right-button {
    border-radius: 0 0 30px 0;
}
.progress-bar-wrapper .left-button {
    border-radius: 0 0 0 30px;
}
/* Cart */
#basket {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}
/* Cart Head */
#head {
    width: 100%;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 3fr 1fr 1fr 1fr 40px;
    grid-template-columns: 3fr 1fr 1fr 1fr 40px;
    border-bottom: 1px solid rgb(210, 210, 210);
    padding: 20px 0;
    font-size: 18px;
}
#head label {
    text-align: right;
    font-weight: bold;
}
#head label:nth-child(1) {
    text-align: left;
}
/* Cart Body */
.item {
    width: 100%;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 3fr 1fr 1fr 1fr 40px;
    grid-template-columns: 3fr 1fr 1fr 1fr 40px;
    margin: 10px 0;
    font-size: 16px;
}
.item p {
    text-align: right;
    margin: auto 0;
}
.item input {
    width: 60px;
    border: none;
    padding: 1px;
    text-align: right;
    font-size: 16px;
}
.item input:focus {
    border-bottom: 2px solid var(--primary-color);
    outline: none;
}
.item .img {
    margin: 10px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 20px;
}
.item .img img {
    aspect-ratio: 1/1;
    -o-object-fit: cover;
    object-fit: cover;
    width: 60px;
    height: 60px;
    border: 1px solid #d2d2d2;
    padding: 5px;
}
.buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: 12px 0;
}
/* Cart Foot */
#foot {
    width: 100%;
    margin-top: 12px;
    border-top: 1px solid #333;
    font-size: 1.2rem;
}
#foot div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
#foot div p {
    margin: 12px;
}
#foot div:nth-child(2) p:first-child {
    margin-left: 28px;
}
#foot div:last-child {
    color: var(--primary-color);
}
@media screen and (max-width: 800px) {
    .cart-form {
        border: 1px solid #333;
        border-radius: 30px;
    }
    .update-cart,
    .add-cart,
    #foot {
        font-size: 1rem;
    }
    .item,
    .item input {
        font-size: 14px;
    }
    #head {
        font-size: 14px;
    }
    .empty p {
        margin: 12 0;
        font-size: 24px;
        font-weight: bold;
    }
}
@media screen and (max-width: 600px) {
    #head {
        -ms-grid-columns: 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr 1fr;
    }
    #head label {
        text-align: center;
    }
    #head label:nth-child(1) {
        display: none;
    }
    .item {
        -ms-grid-columns: 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr 1fr;
        -ms-grid-rows: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        grid-template-areas: "name name delete";
    }
    .item div:first-child {
        grid-area: name;
    }
    .item p {
        text-align: center;
    }
    .item p:last-child {
        grid-area: delete;
    }
    .item input:not([disabled]) {
        text-align: center;
        border-bottom: 1px solid var(--primary-color);
    }
}
@media screen and (max-width: 600px) {
    .item div:first-child {
        -ms-grid-row: 1;
        -ms-grid-column: 1;
        -ms-grid-column-span: 2;
    }
    .item p:last-child {
        -ms-grid-row: 1;
        -ms-grid-column: 3;
    }
}
