/**
 * Floating cart: the item count on the primary colour over the total, fixed
 * to the side of the screen.
 */
.noor-floating-cart {
    position: fixed;
    inset-block-start: 50%;
    inset-inline-end: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    inline-size: 4.25rem;
    overflow: hidden;
    border-start-start-radius: var(--wp--custom--radius--md, 6px);
    border-end-start-radius: var(--wp--custom--radius--md, 6px);
    box-shadow: var(--wp--preset--shadow--lift);
    font-size: var(--wp--preset--font-size--xs);
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transform: translateY(-50%);
}

.noor-floating-cart__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--wp--preset--spacing--20);
    padding: var(--wp--preset--spacing--20);
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

.noor-floating-cart__total {
    padding: var(--wp--preset--spacing--20);
    background: var(--wp--preset--color--surface);
    color: var(--wp--preset--color--primary-dark);
    font-weight: 700;
}

.noor-floating-cart:hover .noor-floating-cart__top,
.noor-floating-cart:focus-visible .noor-floating-cart__top {
    background: var(--wp--preset--color--primary-dark);
}

@media (max-width: 781px) {
    .noor-floating-cart { display: none; }
}
