.main-basket-wrapper {
    padding: 5em 0.3em;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

input, button, a {
    outline: none;
}

.basket__title { 
    font-size: 2em;
    color:var(--secondary-text-color);
    font-family: var(--font-family-secondary);
    padding-bottom: 1em;
}

.basket__card-wrapper {
    padding: 3em 0.3em;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.basket__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: 2px solid var(--secondary-text-color);
}

.basket__card:first-child {
    border-top: 2px solid var(--secondary-text-color);
}

.basket__card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 1em 0;
}

.card--info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.basket__card-name {
    padding: 1em 0;
    font-size: 1.5em;
    font-weight: 100;
    color:var(--secondary-text-color);
}

.remove-button {
    width: 70%;
    height: 2em;
    font-size: 1em;
    border: 1px solid var(--secondary-text-color);
    border-radius: 0.3em;
    background-color: var(--main-color);
    
}

.basket__card-img-wrapper {
    width: 9em;
    height: 9em;
}

.basket__card-img {
    display: block;
    width: 9em;
    height: 9em;
}

.basket__card-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
    padding: 1em 0;
    width: 80%;
    text-align: center;
}

.price-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding-top: 0.5em;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2em;
    border-radius: 0.5em;
    border: 2px solid var(--main-color);
    
}

.quantity {
    text-align: center;
    font-size: 1em;
    border: none;
    width: 2em;
    height: 100%;
}

.quantity::-webkit-outer-spin-button,
.quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity {
    -moz-appearance: textfield;
}

.quantity_button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    outline: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    width: 1em;
    height: 1em;
    transition: 0.5s;
}

.quantity_img {
    width: 0.5em;
    height: 0.5em;
}

.decrease {
    padding-left: 0.2em;
    border-radius: 0.2em 0 0 0.2em;
    border-right: 2px solid var(--main-color);
}

.increment {
    padding-right: 0.2em;
    border-radius: 0 0.2em 0.2em 0;
    border-left: 2px solid var(--main-color);
}

.basket__price {
    font-weight: 100;
}

.basket__overall {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 0 1em 0;
    color:var(--secondary-text-color);
}

.overall__text, .overall__price {
    font-size: 1.1em;
    font-weight: 100;
    padding: 0 1em;
}

.basket__buttons-wrapper {
    padding-top: 1em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    width: 100%;
    justify-content: space-evenly;
}

.back-to-shop, .place-the-order {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: 45%;
    padding: 0.5em 0.5em;
    text-align: center;
    border: 1px solid var(--secondary-text-color);
    border-radius: 0.3em;
    font-size: 0.8em;
    text-decoration: none;
    color: #000000;
}

.back-to-shop {
    background-color: var(--main-color);
}

.place-the-order {
    background-color: var(--main-color);
}

.order-processing {
    background: var(--main-color);
    -webkit-box-shadow: inset 0px 0px 56px 38px rgba(255,255,255,1);
    -moz-box-shadow: inset 0px 0px 56px 38px rgba(255,255,255,1);
    box-shadow: inset 0px 0px 56px 38px rgba(255,255,255,1);
}

.order-processing-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.processing-title {
    text-align: center;
    font-family: var(--font-family-secondary);
    font-size: 2em;
    color: var(--secondary-text-color);
}

.processing-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
}

.processing-paragraph {
    color: var(--secondary-text-color);
    padding-top: 3em;
}

.processing-link {
    color: var(--secondary-text-color);
    padding-top: 3em;
    text-decoration: none;
    font-weight: 700;
}





@media (min-width: 576px) {
    .container {
        --container-width: var(--mq-size-sm);
    }

    .back-to-shop, .place-the-order {
        font-size: 1em;
    }
}

@media (min-width: 768px) {
    .container {
        --container-width: var(--mq-size-md);
    }

    .remove-button {
        width: 50%;  
    }

    .basket__buttons-wrapper {
        justify-content: space-evenly;
    }

    .back-to-shop, .place-the-order {
        width: 12em;
    }
}

@media (min-width: 992px) {
    .container {
        --container-width: var(--mq-size-lg);
    }

    .basket__card {
        flex-direction: row;
        width: 70%;
    }

    .basket__card-info {
        flex-direction: row;
    }

    .card--info {
        padding-left: 1em;
        align-items: start;
        justify-content: start;
    }

    .quantity_button:hover {
        background: rgb(214, 244, 255);
        transition: 0.5s;
    }

    .basket__card-name {
        padding: 0 0 2em 0;
    }

    .remove-button {
        padding: 0 1em;
        width: auto;  
    }

    .remove-button, .back-to-shop, .place-the-order {
        cursor: pointer;
        transition: 0.8s;
    }

    .remove-button:hover, .back-to-shop:hover {
        background-color: rgb(242, 251, 255);
        transition: 0.8s;
    }
    
    .place-the-order:hover {
        background-color: rgb(242, 251, 255);
    }
}

@media (min-width: 1200px) {
    .container {
        --container-width: var(--mq-size-xl);
    }
}