/* Header cart button (replaces the old "Call to Order" header button). */
.header-cart {
    position: relative;
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: linear-gradient(135deg, var(--gold-3), var(--gold));
    box-shadow: 0 14px 30px -14px rgba(138, 95, 28, .8);
    color: #fdfbf6;
    transition: transform .25s ease, box-shadow .25s ease
}

.header-cart:hover,
.header-cart:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -14px rgba(138, 95, 28, .85);
    color: #fff
}

.header-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 2px solid #fff;
    background: #2a1a12;
    color: #fff;
    font: 600 12px/1 var(--sans);
    box-sizing: border-box
}

.header-cart-count.is-bumped {
    animation: header-cart-bump .35s ease
}

@keyframes header-cart-bump {
    50% {
        transform: scale(1.3)
    }
}

@media (max-width: 900px) {
    .header-cart {
        order: 3;
        width: 42px;
        height: 42px;
        margin-left: 8px
    }

    .header-cart svg {
        width: 19px;
        height: 19px
    }

    .header-cart-count {
        min-width: 19px;
        height: 19px;
        font-size: 11px
    }
}

/* Phones: let the location button shorten its name so the cart always fits. */
@media (max-width: 620px) {
    .site-header .branch-switch {
        min-width: 0;
        flex-shrink: 1
    }

    .header-cart {
        margin-left: 6px
    }
}

@media (max-width: 400px) {
    .site-header .brand span {
        display: none
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-cart,
    .header-cart-count.is-bumped {
        transition: none;
        animation: none
    }
}
