.nav-cart-link {
    align-items: center;
    display: inline-flex !important;
    gap: 7px;
    position: relative;
    white-space: nowrap;
}

.nav-cart-link > i {
    font-size: 15px;
    line-height: 1;
}

.nav-cart-count {
    align-items: center;
    background: #f4d600;
    border-radius: 999px;
    color: #171717;
    display: inline-flex;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    height: 19px;
    justify-content: center;
    line-height: 1;
    min-width: 19px;
    padding: 0 5px;
}

.cart-item-details {
    min-width: 0;
}

.cart-item-details .paperback-specs {
    color: #4f625b;
    font-size: 11px;
    line-height: 1.55;
    margin-top: 7px;
}

.cart-item-controls {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quantity-label {
    color: #4e5b55;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.quantity-stepper {
    align-items: center;
    background: #fff;
    border: 1px solid #ddd5c7;
    border-radius: 12px;
    display: inline-flex;
    min-height: 44px;
    overflow: hidden;
}

.quantity-stepper button {
    align-items: center;
    align-self: stretch;
    background: #f8f5ef;
    border: 0;
    color: #153e32;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    justify-content: center;
    transition: background .2s ease, color .2s ease;
    width: 40px;
}

.quantity-stepper button:hover,
.quantity-stepper button:focus-visible {
    background: #195642;
    color: #fff;
    outline: none;
}

.quantity-stepper input {
    -moz-appearance: textfield;
    background: #fff;
    border: 0;
    color: #17241f;
    font: inherit;
    font-weight: 700;
    height: 42px;
    outline: 0;
    text-align: center;
    width: 45px;
}

.quantity-stepper input::-webkit-inner-spin-button,
.quantity-stepper input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.remove-item {
    align-items: center;
    background: transparent;
    border: 0;
    color: #a13f36;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    gap: 7px;
    padding: 3px 0;
}

.remove-item:hover,
.remove-item:focus-visible {
    color: #6e211b;
    text-decoration: underline;
}

.remove-item:disabled {
    cursor: default;
    opacity: .38;
    text-decoration: none;
}

.cart-updating {
    opacity: .68;
    pointer-events: none;
}

@media (max-width: 780px) {
    .nav-cart-link {
        width: max-content;
    }

    .cart-item-controls {
        align-items: flex-start;
        grid-column: 1 / -1;
        margin-left: 92px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quantity-stepper button { transition: none; }
}
