/* CSS - Basket */

.basket {
    height: 100%;
    align-items: stretch;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 12px;
    overflow: hidden;
    padding: 3px;
}

.basket .separator {
    width: 1px;
    background-color: gainsboro;
    align-self: center;
    flex-shrink: 0;
    margin: 0 15px;
    height: 44%;
}

/* Basket - Items & Pricing */
.basket .items, .basket .pricing {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
    padding: 5px;
}

/* Basket - Items (left) */
.basket .items {
    width: fit-content;
}

.basket .items .heading {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.basket .items .heading .empty-basket i {
    padding: 6px;
    font-size: 20px;
    cursor: pointer;
    color: #888;
    transition: all 0.2 ease;
}

.basket .items .heading .empty-basket i:hover {
    color: #e05252;
}

.basket .items .container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}

.basket .items .container .no-item {
    align-self: center;
    justify-self: center;
    font-style: italic;
    color: rgb(46, 46, 46);
}

.basket .items .container .item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    max-width: 700px;
    height: fit-content;
    padding: 16px;
    background: rgba(128, 128, 128, 0.035);
    border: 1px solid rgba(128, 128, 128, 0.18);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.basket .items .container .item:hover {
    border-color: rgba(128, 128, 128, 0.4);
    background: rgba(128, 128, 128, 0.1);
}

/* Item > Preview */
.basket .items .container .item .c-preview {
    flex: 0 0 150px;
    width: fit-content;
}

.basket .items .container .item .c-preview img {
    display: block;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 5px;
}

/* Item > Separator */
.basket .items .container .item .c-separator {
    align-self: stretch;
    width: 1px;
    flex-shrink: 0;
    margin: 0 15px;
    height: 90%;
    background-color: rgba(128, 128, 128, 0.2);
}

/* Item > Format */
.basket .items .container .item .c-format {
    flex: 1;
    min-width: 0;

    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;

    padding: 8px 12px;
}

.basket .items .container .item .c-format .desc {
    width: 100%;
    margin: 0;

    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
    color: #888;
}

.basket .items .container .item .c-format .dropdown {
    cursor: pointer;
    width: 100%;
    margin: 0;

    background-color: #c1c1c159;
    border: 1px solid #bcbcbc94;
    border-radius: 3px;

    font-family: 'Manrope', sans-serif;
    font-size: 13px;
}

/* Item > Infos */
.basket .items .container .item .c-infos {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.basket .items .container .item .c-infos .price {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
}

.basket .items .container .item .c-infos .remove-item {
    border: none;
    background: transparent;
    color: #999;
    font-size: 18px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.basket .items .container .item .c-infos .remove-item:hover {
    color: #e05252;
    transform: scale(1.2);
}

/* Basket - Pricing (right) */
.basket .pricing {
    height: fit-content;
    align-self: center;
    width: fit-content;

    border: 1px solid rgba(128, 128, 128, 0.23);
    background: rgba(128, 128, 128, 0.03);
    border-radius: 4px;
    padding: 45px;
}

/* Title */
.basket .pricing .title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 22px;
}

/* Container */
.basket .pricing .container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Price rows */
.basket .pricing .price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #777;
}

.basket .pricing .price-row .value {
    color: #333;
    font-weight: 500;
    text-align: right;
}

.basket .pricing .price-row.discount {
    opacity: 0;
    position: absolute;
    transition: opacity 0.3s ease-in;
}

.basket .pricing .price-row.discount.active {
    opacity: 1;
    position: relative;
}

.basket .pricing .price-row.discount,
.basket .pricing .price-row.discount .value {
    color: #32966B;
}

/* Separator */
.basket .pricing .separator {
    width: 100%;
    height: 1px;
    background: #E8EAED;
    margin: 2px 0;
}

/* Total */
.basket .pricing .price-row.total {
    color: #222;
    font-size: 16px;
    font-weight: 600;
}

.basket .pricing .price-row.total .value {
    font-size: 21px;
    font-weight: 700;
}

/* Promo code */
.basket .pricing .promo-code {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.basket .pricing .promo-code input {
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #E2E4E7;
    border-radius: 5px;
    font-family: inherit;
    font-size: 12px;
    outline: none;
}

.basket .pricing .promo-code input:focus {
    border-color: #999;
}

.basket .pricing .promo-code button {
    padding: 0 16px;
    border: 1px solid #DDD;
    border-radius: 5px;
    background: #F5F6F7;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

/* Checkout */
.basket .pricing .checkout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 14px;
    margin-top: 4px;

    border: none;
    border-radius: 5px;
    background: #343434d4;
    color: #FFF;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;

    transition: background 0.2s ease;
}

.basket .pricing .checkout:hover {
    background: #797979fa;
}

.basket .pricing .checkout i {
    opacity: 0.5;
    transition: all 0.2s ease;
}

.basket .pricing .checkout:hover i {
    opacity: 1;
    transform: translateX(3px);
}

/* Payment information */
.basket .pricing .payment-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #999;
    font-size: 10px;
    text-align: center;
    margin-top: 2px;
}

/* Responsive */
@media screen and (max-width: 768px) {

    .basket {
        margin: 0;
        flex-direction: column;
    }

    .basket .items {
        width: 100%;
        padding: 0;
        overflow-y: auto;
    }

    .basket .pricing {
        width: 100%;
        height: 40%;
        overflow-y: auto;
    }

    .basket .pricing .title {
        text-align: center;
    }

    .basket .separator {
        width: 100%;
        height: 1px;
    }

    .basket .items .container .item {
        flex-direction: column;
    }

    .basket .items .container .item .c-preview {
        width: 130px;
        flex: 0 0 130px;
    }

    .basket .items .container .item .c-separator {
        width: 90%;
        height: 1px;
    }
}