.cart-trigger {
    position: relative;
}

.cart-quantity-badge {
    position: absolute;
    top: 10px;
    right: 8px;
    display: grid;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #3c9f43;
    box-shadow: 0 2px 7px rgb(29 100 42 / 28%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    place-items: center;
}

.cart-update-button {
    border: 1px solid #3c9944 !important;
    background: #fff;
    color: #2d8236 !important;
}

.cart-update-button:hover {
    background: #eff8ed;
    box-shadow: 0 0 0 1px #3c9944;
}

.cart-checkout-button {
    border: 0;
    background: linear-gradient(135deg, #62b94b, #27863b) !important;
    box-shadow: 0 5px 13px rgb(38 127 58 / 21%);
    text-decoration: none;
}

.cart-checkout-button:hover {
    background: linear-gradient(135deg, #52aa40, #1e7733) !important;
}

.cart-line-quantity {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #dce8d9;
    border-radius: 9px;
    background: #f5f9f3;
}

.cart-product-link {
    display: block;
    color: #142d18;
    line-height: 1.45;
    text-decoration: none;
}

.cart-product-link:hover {
    color: #27863b;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cart-line-quantity button {
    display: grid;
    width: 32px;
    height: 32px;
    border: 0;
    background: #3c9f43;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    cursor: pointer;
    place-items: center;
}

.cart-line-quantity button:disabled {
    cursor: wait;
    opacity: .6;
}

.cart-line-quantity span {
    min-width: 34px;
    padding-inline: 5px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 760px) {
    .cart-quantity-badge {
        top: 5px;
        right: 4px;
    }

    .cart-trigger + div {
        position: fixed;
        top: 72px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
        max-height: calc(100dvh - 84px);
        margin: 0;
        padding: 24px 18px;
        overflow-y: auto;
        border-radius: 14px;
    }

    .cart-trigger + div li > div {
        min-width: 0;
    }

    .cart-trigger + div li .flex-1 {
        min-width: 0;
    }
}
