.cart.content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    position: fixed;
    z-index: 10000;

    width: 100vw;
    height: 100vh;

    background-color: color-mix(in srgb, var(--focus-background) 25%, transparent);

    backdrop-filter: blur(12px);

    /* Initial hidden state */
    opacity: 0;
    pointer-events: none;
    
    /* Smooth transitions */
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart.content-wrapper.testing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    position: fixed;
    z-index: 10000;

    width: 100vw;
    height: 100vh;

    background-color: color-mix(in srgb, var(--focus-background) 25%, transparent);

    backdrop-filter: blur(12px);

    /* Initial hidden state */
    opacity: 0;
    pointer-events: none;
    
    /* Smooth transitions */
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart.content-wrapper.open {
    opacity: 1;
    pointer-events: auto;
}

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

    width: 512px;
    height: 100%;
    max-width: 512px;
    overflow: hidden;

    margin: 12px 12px 12px 0px;

    color: var(--primary-text);
    background-color: var(--primary-background);
    border-radius: 12px;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.25);

    /* Initial position off-screen */
    transform: translateX(100%);
    
    /* Smooth slide-in animation with Apple's easing */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart.content-wrapper.open .cart.content {
    transform: translateX(0);
}

@media screen and (max-width: 767px) {
    .cart.content {
        width: 75%;
    }
}

@media screen and (max-width: 478px) {
    .cart.content {
        width: 100%;
        margin: 0px;

        border-radius: 0px;
    }
}

.cart.title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: start;

    padding: 24px;

    border-bottom: 1px solid var(--tertiary-background);
}

.cart.title {
    font-size: 24px;
    font-weight: 700;
}

.cart.action-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;

    width: 26px;
    height: 26px;

    border-radius: 100px;
    background-color: var(--secondary-background);
    color: var(--primary-text);
}

.cart.action-wrapper:hover {
    background-color: var(--warning);
    color: var(--primary-text-alt);
}

.cart.action-wrapper.mini {
    width: 14px;
    height: 14px;

    margin-top: -6px;
    margin-right: -6px;

    position: absolute;
}

.cart.action-wrapper.mini:hover {
    background-color: var(--warning);
    color: var(--primary-text-alt);

}

.cart.action-icon {
    width: 10px;
    height: 10px;

    color: inherit;
}

.cart.action-icon.mini {
    width: 6px;
    height: 6px;

    color: inherit;
}

.cart.items-list {
    display: flex;
    flex-direction: column;
    flex-grow: 1;

    margin: 0px 12px;

    overflow-y: auto;
}

.cart.item-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: end;

    margin-top: 12px;
    padding-bottom: 12px;

    border-bottom: 1px solid var(--secondary-background);
}

.cart.item.image-wrapper {
    display: flex;
    align-items: center;

    height: 100%;
}

.cart.item.image {
    min-width: 48px;
    min-height: 48px;
    max-width: 64px;
    max-height: 64px;

    aspect-ratio: 1 / 1;

    object-fit: cover;
}

.cart.item.details-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    width: 100%;

    padding: 12px 6px;

    
}

.cart.item.line {
    font-size: 12px;
}

.cart.item.brand {
    font-size: 14px;
    font-weight: 600;
}

.cart.item.variant {
    font-size: 14px;
    box-shadow: none !important;
}

.cart.item.amounts-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;

    padding: 12px 0px;
    padding-right: 12px;
    
    gap: 12px;

    font-size: 14px;

    
}

.cart.item.quantity-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    font-size: 12px;

    padding: 1px;

    border-radius: 4px;
    background-color: var(--secondary-background);
}

.cart.item.quantity {
    padding: 0px 6px;
}

.cart.item.quantity-button {
    display: flex;  
    align-items: center;
    justify-content: center;

    cursor: pointer;

    width: 24px;
    height: 24px;

    aspect-ratio: 1 / 1;

    color: var(--primary-text);
    background-color: var(--focus-background);

    border-radius: 4px;
    border: 1px solid var(--secondary-background);
}

.cart.item.quantity-button:hover {
    border: 1px solid var(--tertiary-background);
}

.cart.footer-wrapper {
    display: flex;
    flex-direction: column;

    padding: 24px;

    background-color: var(--focus-background);
}

.button.footer {
    width: 100%;

    color: var(--primary-text-alt);
    background-color: var(--primary-text);
}

.cart.footer-line {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-bottom: 12px;
}

.cart.footer-line.total {

    padding: 12px 0px;

    font-size: 18px;
    font-weight: 700;

    border-top: 1px solid var(--tertiary-background);
}

.cart.empty-message {
    padding: 24px;
    text-align: center;
    color: var(--secondary-text);
    font-size: 16px;
}