.cart.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    overflow: clip;

    width: auto;
    height: 100vh;
    height: 100dvh;

    position: fixed;
    inset: 0;
    z-index: 1001;

    padding: 0px;

    backdrop-filter: blur(12px) saturate(75%);

    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 18px, 0) scale(0.985);
    transform-origin: bottom center;
    will-change: opacity, transform;

    transition:
        opacity 0.16s ease-out,
        transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.cart-open,
body.cart-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.cart.content-wrapper.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.cart.content-wrapper[hidden] {
    display: none;
}

.cart.content {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    width: 100%;
    max-width: 1028px;
    height: 100%;

    padding: 0px;
    border-radius: 0px;
    corner-shape: squircle;

    background: var(--toolbarBorder);
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.25);

    transition: all 0.5s cubic-bezier(0.00, 1.13, 0.00, 0.97);
}

@media only screen and (min-width: 1029px) {
.cart.content {
    padding: 0px 1px 0px 1px;
}
}

#cartContainer.container {
    width: 100%;
    height: 100%;
}

@media only screen and (min-width: 1040px) {
    #cartContainer.container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.cart.content > .cart.card {
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    width: 100%;
    height: 100%;


    padding: 0px;
    border-radius: 0px;
    corner-shape: squircle;

    scrollbar-width: thin;
    scrollbar-color: var(--primary-accent) transparent;

    background: var(--toolbarBackground);
    color: var(--toolbarText);
}

.toolbar-cart.content {
    display: flex;
    flex-direction: row;
    align-items: center;

    width: 100%;
    gap: 6px;
    padding: 24px 24px 16px 24px;

    border-bottom: 1px solid var(--primary-border);

    transition: all 0.5s cubic-bezier(0.00, 1.13, 0.00, 0.97);
}

.cart.title-wrapper {
    width: 100%;

    font-size: 16px;
    font-weight: 900;

    margin-top: -4px;
}

.cart.button-wrapper {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    max-width: 42px;
    max-height: 42px;

    padding: 1px;
    border-radius: 999px;
    aspect-ratio: 1/1;

    background: var(--toolbarBorder);

    backdrop-filter: blur(6px) saturate(60%);
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);

    transition: all 0.5s cubic-bezier(0.00, 1.13, 0.00, 0.97);
}

.cart.button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    height: 100%;
    min-width: 0;
    margin: 0;
    border-radius: 999px;
    aspect-ratio: 1/1;
    padding: 7px 15px !important;

    font-size: 14px;
    font-weight: 600;

    background: var(--toolbarBackground);
    color: var(--toolbarText);

    transition: all 0.5s cubic-bezier(0.00, 1.13, 0.00, 0.97);
}

.cart.button:hover {
    background: var(--toolbarBackgroundHover);
    color: var(--toolbarTextHover);
}

.cart.button:active {
    background: var(--toolbarBackgroundHover);
    color: var(--toolbarTextHover);
    transform: scale(0.95);
}

.cart.button.warning {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    height: 100%;
    min-width: 0;
    margin: 0;
    border-radius: 999px;
    aspect-ratio: 1/1;
    padding: 7px 15px !important;

    font-size: 14px;
    font-weight: 600;

    background: var(--primary-warning);
    color: var(--tint-warning);

    transition: all 0.5s cubic-bezier(0.00, 1.13, 0.00, 0.97);
}

.cart.button.warning:hover {
    background: var(--focus-warning);
    color: white;
}

.cart.button.confirm {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    height: 100%;
    min-width: 0;
    margin: 0;
    border-radius: 999px;
    aspect-ratio: 1/1;
    padding: 7px 15px !important;

    font-size: 14px;
    font-weight: 600;

    background: var(--primary-success);
    color: var(--tint-success);

    transition: all 0.5s cubic-bezier(0.00, 1.13, 0.00, 0.97);
}

.cart.button.confirm:hover {
    background: var(--focus-success);
    color: white;
}

#cartEdit {
    position: relative;
    overflow: hidden;
}

#cart.empty-state #cartEdit,
#cart.empy-state #cartEdit,
#cartEdit.empty-state,
#cartEdit.empy-state,
#cartEdit[hidden] {
    display: none !important;
}

.cart.button-wrapper.empty-state,
.cart.button-wrapper.empy-state,
.cart.button-wrapper[hidden] {
    display: none !important;
}

#cartEdit .cart.button-icon {
    position: absolute;
    transition:
        opacity 0.22s ease,
        transform 0.28s cubic-bezier(0.00, 1.13, 0.00, 0.97);
}

#cartEditDefault {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

#cartEditConfirm {
    opacity: 0;
    transform: scale(0.62) rotate(-8deg);
}

#cartEdit.confirm #cartEditDefault {
    opacity: 0;
    transform: scale(0.62) rotate(8deg);
}

#cartEdit.confirm #cartEditConfirm {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}


.cart.button-icon {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    max-width: 14px;
    max-height: 14px;
}

.cartEditConfirm.cart.button-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
}

.cart.status.list-wrapper {
    display: flex;
    flex-direction: row;

    gap: 6px;
    font-size: 12px;

    margin-top: 12px;
    padding: 0px 24px;
}

.cart.status.list-wrapper.empty-state {
    opacity: 0;
}

.cart.status.list-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    white-space: nowrap;

    padding: 7px 15px;
    border-radius: 999px;


    background: var(--primary-accent);
    color: var(--bodyBG);
}

.cart.products.list-wrapper {
    display: flex;
    flex-direction: column;
    overflow-y: auto;

    min-height: calc(100dvh - 220px);
    max-height: calc(100dvh - 220px);

    gap: 12px;

    padding: 12px 24px 24px 24px;
}

.cart.products.list-wrapper.empty-state {
    align-items: center;
    justify-content: center;
}

.cart.products.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cart.products.empty-state-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.5;
}

.cart.product.card-wrapper {
    position: relative;
    overflow: hidden;

    padding: 1px;
    border-radius: 24px;
    corner-shape: squircle;

    background: var(--toolbarBorder);

    backdrop-filter: blur(6px) saturate(60%);
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);

    transition: all 0.5s cubic-bezier(0.00, 1.13, 0.00, 0.97);
}

.cart.product.card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;

    height: 100%;
    min-width: 0;
    padding: 12px;
    margin: 0;
    border-radius: 24px;
    corner-shape: squircle;

    font-size: 14px;
    font-weight: 600;

    background: var(--toolbarBackground);
    color: var(--toolbarText);

    transition: all 0.5s cubic-bezier(0.00, 1.13, 0.00, 0.97);
}

.cart.product.card.edit-mode {
    margin-right: 52px;
}

.cart.product.card.is-clickable {
    cursor: pointer;
}

.cart.product.card.is-clickable:active {
    transform: scale(0.99);
}

.cart.product.edit-mode.action-wrapper {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;

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

    background-color: transparent;

    width: 52px;
    margin-right: 1px;
    border-radius: 12px;
    border: 0px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(12px) scale(0.88);

    transition:
        opacity 0.24s ease,
        visibility 0.24s ease,
        transform 0.5s cubic-bezier(0.00, 1.13, 0.00, 0.97);
}

.cart.product.edit-mode.action-wrapper.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) scale(1);
}

.cart.product.edit-mode.button-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.cart.product.edit-mode.button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;


    background: var(--primary-warning);
    color: var(--tint-warning);

    cursor: pointer;

    transition:
        background 0.24s ease,
        color 0.24s ease,
        transform 0.24s ease;
}

.cart.product.edit-mode.button:hover {
    background: var(--focus-warning);
    color: white;

}

.cart.edit-mode.button-icon {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    max-width: 14px;
    max-height: 14px;
}

.cart.product.card .product.card-image {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    max-width: 64px;
    max-height: 64px;

    border-radius: 16px;
    corner-shape: squircle;

    border: 0.5px solid var(--primary-border);
}

.cart.product.card .product.card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart.product.card .product.card-details {
    width: 100%;

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

    text-align: left;

    margin-left: 12px;
}

.cart.product.card .product.card-title {
    font-size: 14px;
    font-weight: 800;
}

.cart.product.card .product.card-description {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;

    font-size: 14px;
    font-weight: 400;
}

.cart.product.card .product.card-locality {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;

    text-align: right;
    white-space: nowrap;

    margin-right: 6px;
}

.cart.product.card .product.card-locality-price {
    font-size: 14px;
    font-weight: 800;
}

.cart.product.card .product.card-locality-description {
    font-size: 12px;
    font-weight: 400;
}

.cart.action-wrapper {
    padding: 24px;

    border-top: 1px solid var(--primary-border);
    background-color: var(--bodyBG);
}

.cart.action-wrapper button {
    margin: 0;
}   

@media only screen and (max-width: 767px) {
    .cart.products.list-wrapper {
        min-height: calc(100dvh - 211px);
        max-height: calc(100dvh - 211px);
    }
}

@media only screen and (max-width: 478px) {

    .toolbar-cart.content {
        padding: 12px 12px 16px 12px;
    }

    .cart.status.list-wrapper {
        padding: 0px 12px 0px 12px;
    }

    .cart.products.list-wrapper {
        min-height: calc(100dvh - 174px);
        max-height: calc(100dvh - 174px);
        padding: 12px 12px 0px 12px;
    }

.cart.action-wrapper {
    padding: 12px;
}

}

.toolbar-cart.action-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 6px;
}
