/* ============================================================
   BASKET DRAWER
   ============================================================ */

body.ml-basket-drawer-open {
    overflow: hidden;
}

.ml-header-action--button {
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.ml-basket-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1990;
    background: rgba(16, 16, 16, .52);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .28s ease,
        visibility .28s ease;
}

.ml-basket-drawer {
    position: fixed;
    z-index: 2000;
    top: 0;
    right: 0;
    bottom: 0;

    width: min(760px, 48vw);
    min-width: 580px;

    background: #fff;
    color: #1b1b1b;

    display: flex;
    flex-direction: column;

    transform: translateX(100%);
    visibility: hidden;

    box-shadow: -12px 0 40px rgba(0, 0, 0, .08);

    transition:
        transform .38s cubic-bezier(.76, 0, .24, 1),
        visibility .38s;
}

body.ml-basket-drawer-open .ml-basket-drawer-backdrop {
    opacity: 1;
    visibility: visible;
}

body.ml-basket-drawer-open .ml-basket-drawer {
    transform: translateX(0);
    visibility: visible;
}

.ml-basket-drawer__head {
    min-height: 86px;
    padding: 0 26px;

    border-bottom: 1px solid #e8e8e8;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ml-basket-drawer__title {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
}

.ml-basket-drawer__title svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ml-basket-drawer__title strong {
    font-weight: 500;
}

.ml-basket-drawer__close {
    width: 40px;
    height: 40px;
    padding: 0;

    border: 0;
    background: transparent;
    color: #1d1d1d;

    display: grid;
    place-items: center;

    font: 300 28px/1 Arial, sans-serif;
    cursor: pointer;
}

.ml-basket-drawer__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ml-basket-drawer__items {
    padding: 0 26px;
}

.ml-basket-item {
    min-height: 170px;
    padding: 18px 0;

    border-bottom: 1px solid #ececec;

    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
}

.ml-basket-item__image {
    width: 110px;
    height: 140px;

    background: #f2f2f0;
    overflow: hidden;
}

.ml-basket-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ml-basket-item__content {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.ml-basket-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.ml-basket-item__top h3 {
    margin: 0 0 10px;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
}

.ml-basket-item__top h3 a {
    color: inherit;
    text-decoration: none;
}

.ml-basket-item__top p {
    margin: 3px 0;
    color: #615c56;

    font-size: 10px;
    line-height: 1.6;
}

.ml-basket-item__top p span {
    color: #26231f;
}

.ml-basket-item__remove {
    width: 32px;
    height: 32px;
    padding: 0;

    border: 0;
    background: transparent;
    color: #59544e;

    display: grid;
    place-items: center;

    cursor: pointer;
}

.ml-basket-item__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.ml-basket-item__bottom > strong {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.ml-basket-item__quantity {
    height: 34px;

    border: 1px solid #ddd9d4;

    display: inline-flex;
    align-items: center;
}

.ml-basket-item__quantity button {
    width: 32px;
    height: 32px;
    padding: 0;

    border: 0;
    background: transparent;
    color: #282521;

    font: 400 16px/1 Arial, sans-serif;
    cursor: pointer;
}

.ml-basket-item__quantity span {
    width: 30px;
    text-align: center;
    font-size: 10px;
}

.ml-basket-drawer__footer {
    flex: 0 0 auto;

    padding: 18px 26px 24px;

    border-top: 1px solid #e7e7e7;
    background: #fff;
}

.ml-basket-drawer__subtotal {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-bottom: 1px solid #e7e7e7;

    font-size: 11px;
    letter-spacing: .08em;
}

.ml-basket-drawer__subtotal strong {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
}

.ml-basket-drawer__checkout {
    width: 100%;
    height: 52px;
    margin-top: 20px;

    background: #222;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
}

.ml-basket-drawer__checkout:hover {
    color: #fff;
}

.ml-basket-drawer__empty {
    flex: 1 1 auto;
    padding: 70px 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.ml-basket-drawer__empty svg {
    width: 40px;
    height: 40px;
    margin-bottom: 24px;

    fill: none;
    stroke: #403c37;
    stroke-width: 1.1;
}

.ml-basket-drawer__empty h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 500;
}

.ml-basket-drawer__empty p {
    max-width: 320px;
    margin: 0 0 24px;
    color: #77716a;
    font-size: 11px;
    line-height: 1.9;
}

.ml-basket-drawer__empty a {
    padding-bottom: 3px;
    border-bottom: 1px solid currentColor;
    color: #27231f;
    text-decoration: none;
    font-size: 11px;
}

@media (max-width: 991.98px) {
    .ml-basket-drawer {
        width: min(640px, 78vw);
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .ml-basket-drawer {
        width: 100%;
        min-width: 0;
    }

    .ml-basket-drawer__head {
        min-height: 72px;
        padding-inline: 16px;
    }

    .ml-basket-drawer__items {
        padding-inline: 16px;
    }

    .ml-basket-item {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 13px;
    }

    .ml-basket-item__image {
        width: 88px;
        height: 116px;
    }

    .ml-basket-drawer__footer {
        padding-inline: 16px;
    }
}
