.cpn-drawer-cart,
.cpn-drawer-cart__overlay,
.cpn-drawer-cart__content {
    transition: all 0.4s ease-out;
    will-change: transform;
}
.cpn-drawer-cart {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    visibility: hidden;
}
.cpn-drawer-cart.active {
    visibility: visible;
}
.cpn-drawer-cart__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
    opacity: 0;
    visibility: hidden;
}
.cpn-drawer-cart.active .cpn-drawer-cart__overlay {
    opacity: 1;
    visibility: visible;
}
.cpn-drawer-cart__content {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 41.9375rem;
    background: #fff;
    z-index: 1;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
}
.cpn-drawer-cart.active .cpn-drawer-cart__content {
    transform: translateX(0);
}
.cpn-drawer-cart__header {
    position: sticky;
    top: 0;
    display: flex;
    padding: 0.875rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    border-bottom: 1px solid var(--Color-Stroke-01, rgba(26, 26, 26, 0.25));
    background: #fff;
    margin-bottom: 0.875rem;
}
.cpn-drawer-cart__header-left {
    display: flex;
    flex-direction: column;
}
.cpn-drawer-cart__title {
    color: #000;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    margin-bottom: 0.25rem;
}
.cpn-drawer-cart__total-food {
    color: rgba(26, 26, 26, 0.4);
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}
.cpn-drawer-cart__total-food span {
    color: rgba(26, 26, 26, 0.75);
}

.cpn-drawer-cart__header-right {
    display: flex;
    align-items: center;
    align-self: stretch;
}
.cpn-drawer-cart__close-btn {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.cpn-drawer-cart__close-btn img {
    width: 100%;
    height: auto;
}
.cpn-drawer-cart__body {
    margin-bottom: 9rem;
    overflow-y: auto;
    flex: 1 0 0;
}
.cpn-drawer-cart__body::-webkit-scrollbar {
    width: 0.45rem;
}

.cpn-drawer-cart__body::-webkit-scrollbar-track {
    background: #fff;
}
.cpn-drawer-cart__body::-webkit-scrollbar-thumb {
    background: var(--color-brand, #d32131);
    border-radius: 1.5rem;
}
.cpn-drawer-cart__food-list {
}
.cpn-drawer-cart__food-item:not(:last-child):after {
    content: "";
    width: 38.9375rem;
    display: block;
    margin-inline: auto;
    border-bottom: 0.025rem solid rgba(26, 26, 26, 0.2);
    margin-top: 0.375rem;
    margin-bottom: 0.375rem;
}
.cpn-drawer-cart__food-item {
    padding: 0.75rem 1.25rem 0 0.75rem;
}
.cpn-drawer-cart__food-item-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}
.cpn-drawer-cart__food-item__note-toggle {
    color: #1a75bf;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    cursor: pointer;
}
.cpn-drawer-cart__food-item__note-content {
    margin-top: 0.88rem;
    display: flex;
    align-items: center;
    margin-left: 2.5rem;
    position: relative;
    background: #f2f2f2;
    width: auto;
    height: 2.25rem;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1.13rem;
}
.cpn-drawer-cart__food-item__note-label {
    color: var(--Color-Body-text-100, #1a1a1a);
    font-family: "Shopee Display";
    font-size: 0.875rem;
    line-height: 1.225rem;
    font-style: normal;
    font-weight: 700;
    flex-shrink: 0;
    padding: 0.5rem 0.625rem;
    padding-right: 0.38rem;
}
.cpn-drawer-cart__food-item__note-content.active {
    display: block;
}
.cpn-drawer-cart__food-item__note-textarea {
    color: var(--Color-Body-text-75, rgba(26, 26, 26, 0.75));

    /* PC/14/14: Regular */
    font-family: "Shopee Display";
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.225rem;
    resize: none;
    padding: 0.5rem 0.625rem;
    padding-left: 0;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: #f2f2f2;
    width: 100%;
    height: 2.25rem;
}
.cpn-drawer-cart__food-item-left {
    display: flex;
    align-items: center;
}
.cpn-drawer-cart__food-item__remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    flex-shrink: 0;
}
.cpn-drawer-cart__food-item__remove-btn img {
    width: 1rem;
    height: auto;
}
.cpn-drawer-cart__food-item__content {
    display: flex;
    align-items: flex-start;
}
.cpn-drawer-cart__food-item__food-item-thumbnail {
    width: 11.146rem;
    align-self: stretch;
    flex-shrink: 0;
    margin-right: 1rem;
    border-radius: 0.46356rem;
}
.cpn-drawer-cart__food-item__food-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.cpn-drawer-cart__food-item__info {
    width: 16.75rem;
}
.cpn-drawer-cart__food-item__title {
    color: var(--Color-Body-text-100, #1a1a1a);
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    margin-bottom: 0.25rem;
}
.cpn-drawer-cart__food-item__excerpt {
    color: var(--Color-Body-text-60, rgba(26, 26, 26, 0.6));
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.cpn-drawer-cart__food-item__desc {
    display: none;
}
.cpn-drawer-cart__food-item__more-btn {
    margin-top: 0.25rem;
    color: #1a75bf;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    cursor: pointer;
}
.cpn-drawer-cart__food-item__quantity-controller {
    display: flex;
    padding: 0.25rem;
    align-items: center;
    border-radius: 0.5rem;
    background: #eee;
    width: fit-content;
}
.cpn-drawer-cart__food-item__meta {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cpn-drawer-cart__food-item__meta .cpn-drawer-cart__food-item__unit-price {
    display: none;
}
.cpn-drawer-cart__food-item__quantity-controller-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    border-radius: 0.25rem;
    background: #fff;
}
.cpn-drawer-cart__food-item__quantity-controller-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.cpn-drawer-cart__food-item__quantity-controller-btn img {
    width: 1rem;
    height: auto;
}
.cpn-drawer-cart__food-item__quantity-controller-value {
    margin: 0 0.75rem;
    width: 0.875rem;
    color: #000;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
}
.cpn-drawer-cart__food-item-right {
    align-self: stretch;
    display: flex;
    align-items: center;
}
.cpn-drawer-cart__food-item__unit-price {
    color: rgba(26, 26, 26, 0.75);
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
}
.cpn-drawer-cart__footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 -4px 8px 0 rgba(0, 0, 0, 0.04);
}
.cpn-drawer-cart__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.cpn-drawer-cart__total-label {
    color: #1a1a1a;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}
.cpn-drawer-cart__total-value {
    color: #1a1a1a;
    font-size: 1.75rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}
.cpn-drawer-cart__order-btn {
    display: flex;
    width: 100%;
    padding: 0.625rem 1.25rem;
    justify-content: center;
    align-items: center;
    border-radius: 62.5rem;
    background: var(--color-brand, #d32f2f);
    color: #fff;
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    transition: all 0.3s ease-out;
}
.cpn-drawer-cart__order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.cart-empty-message {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 140%;
    font-style: normal;
    font-weight: 400;
}
.cpn-drawer-note,
.cpn-drawer-note-overlay {
    display: none;
}
@media (min-width: 1024px) {
    .cpn-drawer-cart__order-btn:hover {
        background: #b30616;
    }
}
@media (max-width: 639.98px) {
    .cpn-drawer-note-overlay {
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-out;
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 100;
    }
    .cpn-drawer-note {
        opacity: 0;
        visibility: hidden;
        transform: translateY(100%);
        transition: all 0.3s ease-out;
        border-radius: 1.5rem 1.5rem 0 0;
        background: #fff;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 80vh;
        min-height: 14.1875rem;
        background: #fff;
        z-index: 101;
        display: flex;
        flex-direction: column;
        padding: 0 1rem;
    }
    .cpn-drawer-note__header {
        display: flex;
        padding: 0.75rem 0;
        justify-content: space-between;
        align-items: center;
        align-self: stretch;
    }
    .cpn-drawer-note__label {
        color: #000;
        font-family: "Shopee Display";
        font-size: 1rem;
        font-style: normal;
        font-weight: 500;
        line-height: 140%; /* 1.4rem */
    }
    .cpn-drawer-note__close-btn {
        width: 1.5rem;
        height: 1.5rem;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .cpn-drawer-note__textarea {
        margin-top: 0.75rem;
        width: 100%;
        height: 4.375rem;
        padding: 0.5rem 0.625rem;
        border-radius: 0.5rem;
        background: #f2f2f2;
        border: none;
        resize: none;
        color: var(--Color-Body-text-75, rgba(26, 26, 26, 0.75));
        font-family: "Shopee Display";
        font-size: 0.75rem;
        font-style: normal;
        font-weight: 400;
        line-height: 140%; /* 1.05rem */
    }
    .cpn-drawer-note__save-btn {
        margin-top: auto;
        margin-bottom: 0.75rem;
        display: flex;
        padding: 0.5rem 1rem;
        justify-content: center;
        align-items: center;
        border-radius: 62.5rem;
        background: var(--Color-Brand-Red, #d32f2f);
        color: #fff;

        /* MB/14/14-M */
        font-family: "Shopee Display";
        font-size: 0.875rem;
        font-style: normal;
        font-weight: 500;
        line-height: 140%; /* 1.225rem */
    }

    .cpn-drawer-note.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .cpn-drawer-note.active + .cpn-drawer-note-overlay {
        opacity: 1;
        visibility: visible;
    }

    .cpn-drawer-cart__food-item__note-content {
        background: transparent;
        margin: 0.62rem 0;
        height: auto;
    }
    .cpn-drawer-cart__food-item__note-label {
        padding: 0;
        display: flex;
        width: 0.875rem;
        height: 0.875rem;
        justify-content: center;
        align-items: center;
        margin-right: 0.25rem;
    }
    .cpn-drawer-cart__food-item__note-text {
        color: var(--Color-Body-text-60, rgba(26, 26, 26, 0.6));
        font-family: "Shopee Display";
        font-size: 0.625rem;
        font-style: normal;
        font-weight: 400;
        line-height: 140%; /* 0.875rem */

        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .cpn-drawer-cart {
        display: flex;
        align-items: flex-end;
    }
    .cpn-drawer-cart__content {
        position: static;
        width: 100%;
        height: auto;
        transform: translate(0, 100%);
        border-radius: 1.5rem 1.5rem 0 0;
        background: #fff;
        overflow: hidden;
    }
    .cpn-drawer-cart.active .cpn-drawer-cart__content {
        transform: translate(0, 0);
    }
    .cpn-drawer-cart__header {
        padding: 0.75rem 1rem;
    }
    .cpn-drawer-cart__title {
        font-size: 1rem;
        font-style: normal;
        font-weight: 500;
        line-height: 140%;
        margin-bottom: 0.125rem;
    }
    .cpn-drawer-cart__total-food {
        font-size: 0.8125rem;
        font-style: normal;
        font-weight: 400;
        line-height: 140%;
    }
    .cpn-drawer-cart__body {
        max-height: 60vh;
        margin-bottom: 7rem;
        flex: auto;
    }
    .cpn-drawer-cart__footer {
        padding: 0.75rem 1rem;
        background: #fff;
        box-shadow: 0 -4px 8px 0 rgba(0, 0, 0, 0.04);
    }
    .cpn-drawer-cart__total-label {
        font-size: 0.875rem;
        font-style: normal;
        font-weight: 400;
        line-height: 140%;
    }
    .cpn-drawer-cart__total-value {
        font-size: 1.25rem;
        font-style: normal;
        font-weight: 500;
        line-height: 140%;
    }
    .cpn-drawer-cart__order-btn {
        font-size: 0.875rem;
        font-style: normal;
        font-weight: 500;
        line-height: 140%;
        padding: 0.5rem 1rem;
    }
    .cpn-drawer-cart__food-item-inner {
        padding: 0 1rem;
        align-items: flex-start;
    }
    .cpn-drawer-cart__food-item__remove-btn {
        margin-top: 1.8125rem;
        width: 1.25rem;
        height: 1.25rem;
        align-self: normal;
        margin-right: 0.5rem;
    }
    .cpn-drawer-cart__food-item__remove-btn img {
        width: 0.83331rem;
    }
    .cpn-drawer-cart__food-item__food-item-thumbnail {
        width: 5.75rem;
        border-radius: 0.375rem;
        margin-right: 0.5rem;
        align-self: initial;
    }
    .cpn-drawer-cart__food-item__food-item-thumbnail img {
        height: auto;
        object-fit: initial;
    }
    .cpn-drawer-cart__food-item__info {
        width: auto;
        flex: 1 0 0;
    }
    .cpn-drawer-cart__food-item-right {
        display: none;
    }
    .cpn-drawer-cart__food-item__title {
        font-size: 1rem;
        font-style: normal;
        font-weight: 500;
        line-height: 140%;
    }
    .cpn-drawer-cart__food-item__excerpt {
        font-size: 0.8125rem;
        font-style: normal;
        font-weight: 400;
        line-height: 140%;
        margin-bottom: 0;
    }
    .cpn-drawer-cart__food-item__meta .cpn-drawer-cart__food-item__unit-price {
        display: block;
        font-size: 1rem;
        font-style: normal;
        font-weight: 500;
        line-height: 140%;
    }
    .cpn-drawer-cart__food-item:not(:last-child):after {
        width: 21.4375rem;
        margin-top: 1.125rem;
        margin-bottom: 1.125rem;
    }
    .cpn-drawer-cart__food-item__more-btn {
        font-size: 0.8125rem;
        font-style: normal;
        font-weight: 500;
        line-height: 140%;
    }
    .cart-empty-message {
        text-align: center;
    }
}
